1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/Zend/tests/attributes/008_wrong_attribution.phpt
T
2020-09-02 20:26:50 +02:00

11 lines
205 B
PHP

--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