php-src/Zend/tests/attributes/024_internal_target_validation.phpt
2020-09-02 20:26:50 +02:00

12 lines
203 B
PHP

--TEST--
Internal attribute targets are validated.
--FILE--
<?php
#[Attribute]
function a1() { }
?>
--EXPECTF--
Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s