summaryrefslogtreecommitdiff
path: root/Zend/tests/attributes/008_wrong_attribution.phpt
blob: af61bcf10503737f3b637873fd48c9075e3fb46a (plain)
1
2
3
4
5
6
7
8
9
10
--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