dis-bench / src /php /php-src /Zend /tests /attributes /008_wrong_attribution.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
205 Bytes
--TEST--
Attributes: Prevent Attribute on non classes
--FILE--
<?php
#[Attribute]
function foo() {}
?>
--EXPECTF--
Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s