mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
16 lines
247 B
PHP
16 lines
247 B
PHP
--TEST--
|
|
The readonly and final class modifiers can be defined in the same time
|
|
--FILE--
|
|
<?php
|
|
|
|
final readonly class Foo
|
|
{
|
|
}
|
|
|
|
readonly class Bar extends Foo
|
|
{
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class Bar cannot extend final class Foo in %s on line %d
|