xref: /PHP-8.2/Zend/tests/class_uses_static.phpt (revision d2110e98)
1--TEST--
2Class cannot use static as a trait, as it is reserved
3--FILE--
4<?php
5
6class Test {
7    use static;
8}
9
10?>
11--EXPECTF--
12Fatal error: Cannot use 'static' as trait name, as it is reserved in %s on line %d
13