mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

This is a follow-up to #15990, as it turns out there was a second place that emits this kind of error message.
10 lines
210 B
PHP
10 lines
210 B
PHP
--TEST--
|
|
Interface cannot extend static, as it is reserved
|
|
--FILE--
|
|
<?php
|
|
|
|
interface Foo extends static {}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use "static" as interface name, as it is reserved in %s on line %d
|