mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
22 lines
314 B
PHP
22 lines
314 B
PHP
--TEST--
|
|
Final private constructors cannot be overridden
|
|
--FILE--
|
|
<?php
|
|
|
|
class Base
|
|
{
|
|
private final function __construct()
|
|
{
|
|
}
|
|
}
|
|
class Extended extends Base
|
|
{
|
|
public function __construct()
|
|
{
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot override final method Base::__construct() in %s on line %d
|