summaryrefslogtreecommitdiff
path: root/Zend/tests/enum/__get.phpt
blob: 885cc2f2c8302c5b49e7e0027b89b8e6dc0764bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Enum __get
--FILE--
<?php

enum Foo {
    case Bar;

    public function __get(string $name)
    {
        return '__get';
    }
}

?>
--EXPECTF--
Fatal error: Enum may not include __get in %s on line %d