File size: 205 Bytes
1e94262
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
--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