The PDO::__wakeup() method is marked as final, but it looks like the final flag of magic methods is not checked as it is for other methods. Hence the code below produces a fatal error:
$factory = new ProxyManager\Factory\LazyLoadingValueHolderFactory();
$factory->createProxy(
'PDO',
function () {}
);
Fatal error: Cannot override final method PDO::__wakeup() in ... on line 5
The
PDO::__wakeup()method is marked as final, but it looks like the final flag of magic methods is not checked as it is for other methods. Hence the code below produces a fatal error: