1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00
Files

13 lines
217 B
PHP

--TEST--
Traits cannot be readonly
--FILE--
<?php
readonly trait Foo
{
}
?>
--EXPECTF--
Parse error: syntax error, unexpected token "trait", expecting "abstract" or "final" or "readonly" or "class" in %s on line %d