summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/typed_properties_022.phpt
blob: aeed60dcacca9fad9c17568ce79f85b28e90fa0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Test typed properties delay type check on ast
--FILE--
<?php
class Foo {
    public int $bar = BAR::BAZ * 2;
}

$foo = new Foo();
?>
--EXPECTF--
Fatal error: Uncaught Error: Class "BAR" not found in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d