1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/attributes/override/007.phpt
Tim Düsterhus 49ef6e209d RFC: Add #[Override] attribute (#9836)
* Add #[Override] attribute

* Move #[\Override] tests into Zend/tests/attributes/override/

* Check `check_only` before removing `ZEND_ACC_OVERRIDE`

* NEWS/UPGRADING for #[\Override]
2023-06-29 20:23:53 +02:00

16 lines
145 B
PHP

--TEST--
#[\Override]: On trait.
--FILE--
<?php
trait T {
#[\Override]
public function t(): void {}
}
echo "Done";
?>
--EXPECT--
Done