Commit 7aa02d0a authored by javer's avatar javer

HHVM compatibility: implement declared interfaces

HHVM does not allow declaration of interface implementation without
real implementation of methods which parameters differs from parent
class.
parent ed7c1c0b
......@@ -41,4 +41,39 @@ class PDOConnection extends PDO implements Connection
$this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('Doctrine\DBAL\Driver\PDOStatement', array()));
$this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
/**
* {@inheritdoc}
*/
public function prepare($prepareString)
{
return parent::prepare($prepareString);
}
/**
* {@inheritdoc}
*/
public function query()
{
$args = func_get_args();
$sql = $args[0];
return parent::query($sql);
}
/**
* {@inheritdoc}
*/
public function quote($input, $type=\PDO::PARAM_STR)
{
return parent::quote($input, $type);
}
/**
* {@inheritdoc}
*/
public function lastInsertId($name = null)
{
return parent::lastInsertId($name);
}
}
......@@ -28,9 +28,9 @@ namespace Doctrine\DBAL\Driver;
class PDOStatement extends \PDOStatement implements Statement
{
/**
* Private constructor.
* Protected constructor.
*/
private function __construct()
protected function __construct()
{
}
......@@ -53,4 +53,52 @@ class PDOStatement extends \PDOStatement implements Statement
return parent::setFetchMode($fetchMode, $arg2, $arg3);
}
/**
* {@inheritdoc}
*/
public function bindValue($param, $value, $type = null)
{
return parent::bindValue($param, $value, $type);
}
/**
* {@inheritdoc}
*/
public function bindParam($column, &$variable, $type = null, $length = null)
{
return parent::bindParam($column, $variable, $type, $length);
}
/**
* {@inheritdoc}
*/
public function execute($params = null)
{
return parent::execute($params);
}
/**
* {@inheritdoc}
*/
public function fetch($fetchMode = null)
{
return parent::fetch($fetchMode);
}
/**
* {@inheritdoc}
*/
public function fetchAll($fetchMode = null)
{
return parent::fetchAll($fetchMode);
}
/**
* {@inheritdoc}
*/
public function fetchColumn($columnIndex = 0)
{
return parent::fetchColumn($columnIndex);
}
}
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