1--TEST--
2Attribute flags value is validated.
3--FILE--
4<?php
5
6#[Attribute(Foo::BAR)]
7class A1 { }
8
9#[A1]
10class Bar { }
11
12try {
13    var_dump((new ReflectionClass(Bar::class))->getAttributes()[0]->newInstance());
14} catch (Error $e) {
15    echo $e->getMessage(), "\n";
16}
17
18?>
19--EXPECT--
20Class "Foo" not found
21