<?php
namespace Foo;
class PDO extends \PDO {
public function getDriverName()
{
return parent::getAttribute(\PDO::ATTR_DRIVER_NAME);
}
}
$pdo = new PDO;
Fatal error: Uncaught ArgumentCountError: PDO::__construct() expects at least 1 argument, 0 given in /in/cnFEC:12
Stack trace:
#0 /in/cnFEC(12): PDO->__construct()
#1 {main}
thrown in /in/cnFEC on line 12
Process exited with code 255.
Fatal error: Uncaught ArgumentCountError: PDO::__construct() expects at least 1 parameter, 0 given in /in/cnFEC:12
Stack trace:
#0 /in/cnFEC(12): PDO->__construct()
#1 {main}
thrown in /in/cnFEC on line 12
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Fatal error: Uncaught TypeError: PDO::__construct() expects at least 1 parameter, 0 given in /in/cnFEC:12
Stack trace:
#0 /in/cnFEC(12): PDO->__construct()
#1 {main}
thrown in /in/cnFEC on line 12
Process exited with code 255.