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/special_name_error3.phpt

11 lines
181 B
PHP

--TEST--
Cannot use special class name as trait name
--FILE--
<?php
trait self {}
?>
--EXPECTF--
Fatal error: Cannot use "self" as a trait name as it is reserved in %s on line %d