php-src/Zend/tests/special_name_error3.phpt

11 lines
179 B
Plaintext
Raw Normal View History

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