1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/interface_underscore_as_name.phpt
Daniel Scherzer 79d708cfca GH-15976: clarify error messages for enum/trait/interface/alias names
Instead of always saying that a name is reserved or deprecated and
cannot/should not be used as a class name, take the usage into account and say
the name cannot be used as an enum name, trait name, etc. In the process, for
class names add a missing "a".
2024-09-22 19:14:57 +01:00

19 lines
330 B
PHP

--TEST--
Using "_" as an interface name is deprecated
--FILE--
<?php
namespace Foo\Bar {
interface _ {}
}
namespace {
interface _ {}
}
?>
--EXPECTF--
Deprecated: Using "_" as an interface name is deprecated since 8.4 in %s on line %d
Deprecated: Using "_" as an interface name is deprecated since 8.4 in %s on line %d