1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/Zend/tests/enum/__get.phpt
2022-08-23 13:32:34 +02:00

18 lines
229 B
PHP

--TEST--
Enum __get
--FILE--
<?php
enum Foo {
case Bar;
public function __get(string $name)
{
return '__get';
}
}
?>
--EXPECTF--
Fatal error: Enum Foo cannot include magic method __get in %s on line %d