mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
12 lines
217 B
PHP
12 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
|