1--TEST--
2Attributes: Prevent Attribute on non classes
3--FILE--
4<?php
5
6#[Attribute]
7function foo() {}
8?>
9--EXPECTF--
10Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s
11