mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Add abstract __construct() test for #[\Override] (024.phpt)
This commit is contained in:
19
Zend/tests/attributes/override/024.phpt
Normal file
19
Zend/tests/attributes/override/024.phpt
Normal file
@@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
#[\Override]: abstract __construct
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
abstract class P {
|
||||
public abstract function __construct();
|
||||
}
|
||||
|
||||
class C extends P {
|
||||
#[\Override]
|
||||
public function __construct() {}
|
||||
}
|
||||
|
||||
echo "Done";
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
Done
|
||||
Reference in New Issue
Block a user