summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/typed_properties_022.phpt
blob: 7e947825c954b318684e926de31ad50b672544e6 (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