mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
12 lines
198 B
PHP
12 lines
198 B
PHP
--TEST--
|
|
The readonly class modifier can only be added once
|
|
--FILE--
|
|
<?php
|
|
|
|
readonly readonly class Foo
|
|
{
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Multiple readonly modifiers are not allowed in %s on line %d
|