summaryrefslogtreecommitdiff
path: root/Zend/tests/attributes/032_attribute_validation_scope.phpt
blob: 039a427254f4d8e1beae35d56702dfc82c775bbd (plain)
1
2
3
4
5
6
7
8
9
--TEST--
Validation for "Attribute" does not use a scope when evaluating constant ASTs
--FILE--
<?php
#[Attribute(parent::x)]
class x extends y {}
?>
--EXPECTF--
Fatal error: Cannot access "parent" when no class scope is active in %s on line %d