xref: /php-src/Zend/tests/gh15976/trait-names.phpt (revision 34325c5e)
1--TEST--
2GH-15976: Bad trait names
3--FILE--
4<?php
5
6trait _ {}
7trait bool {}
8
9?>
10--EXPECTF--
11Deprecated: Using "_" as a trait name is deprecated since 8.4 in %strait-names.php on line 3
12
13Fatal error: Cannot use "bool" as a trait name as it is reserved in %strait-names.php on line 4
14