Commit acacc990 authored by Kim Hemsø Rasmussen's avatar Kim Hemsø Rasmussen

Removed nearly all call_user_* from core( not drivers )

parent b3ffe1db
......@@ -923,17 +923,7 @@ class Connection implements DriverConnection
}
try {
switch (func_num_args()) {
case 1:
$statement = $this->_conn->query($args[0]);
break;
case 2:
$statement = $this->_conn->query($args[0], $args[1]);
break;
default:
$statement = call_user_func_array(array($this->_conn, 'query'), $args);
break;
}
$statement = $this->_conn->query(...$args);
} catch (Exception $ex) {
throw DBALException::driverExceptionDuringQuery($this->_driver, $ex, $args[0]);
}
......
......@@ -368,8 +368,8 @@ class MasterSlaveConnection extends Connection
if ($logger) {
$logger->startQuery($args[0]);
}
$statement = call_user_func_array(array($this->_conn, 'query'), $args);
$statement = $this->_conn->query(...$args);
if ($logger) {
$logger->stopQuery();
......
......@@ -141,7 +141,7 @@ class Connection extends \Doctrine\DBAL\Connection
{
$this->connect();
$stmt = call_user_func_array(array($this->_conn, 'query'), func_get_args());
$stmt = $this->_conn->query(...func_get_args());
$stmt = new Statement($stmt, $this);
$stmt->setFetchMode($this->defaultFetchMode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment