Fix some missed type hints
This commit is contained in:
parent
608b25207a
commit
16e50c3277
@ -30,7 +30,7 @@ class Driver extends AbstractDriver {
|
||||
* @param string $password
|
||||
* @param array $options
|
||||
*/
|
||||
public function __construct($dsn, $username=NULL, $password=NULL, array $options=[])
|
||||
public function __construct(string $dsn, string $username=NULL, string $password=NULL, array $options=[])
|
||||
{
|
||||
if (strpos($dsn, 'pgsql') === FALSE)
|
||||
{
|
||||
|
@ -119,14 +119,11 @@ class QueryBuilder implements QueryBuilderInterface {
|
||||
* @throws BadMethodCallException
|
||||
*/
|
||||
public function __call(string $name, array $params)
|
||||
{
|
||||
//foreach([$this, $this->driver] as $object)
|
||||
{
|
||||
if (method_exists($this->driver, $name))
|
||||
{
|
||||
return \call_user_func_array([$this->driver, $name], $params);
|
||||
}
|
||||
}
|
||||
|
||||
throw new BadMethodCallException('Method does not exist');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user