summaryrefslogtreecommitdiff
path: root/Zend/tests/attributes/008_wrong_attribution.phpt
blob: 5a3ec54a6fd1cb7ae462d9afdd1041235b111416 (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