Searched refs:class (Results 101 – 125 of 4799) sorted by path
12345678910>>...192
2 Attributes can be applied to groups of class constants6 class C
6 class C
6 class Test111 class C117 return #[A1(self::class, self::FOO)] function (#[A1(self::class, self::FOO)] $p) { };27 $ref = new \ReflectionFunction(C1::foo()->bindTo(null, Test1::class));
11 Fatal error: Dynamic class names are not allowed in compile-time class constant references in %s on…
7 class A {}
7 class A1 { }16 $ref = new \ReflectionObject(new #[A1] class() { });41 class A2 { }43 $ref = new \ReflectionObject(new #[A2] #[A2] class() { });59 string(70) "Attribute "A1" cannot target class (allowed targets: function, method)"
7 class A1 { }10 class Foo {}13 (new ReflectionClass(Foo::class))->getAttributes()[0]->newInstance();
7 class A1 { }10 class Foo { }13 var_dump((new ReflectionClass(Foo::class))->getAttributes()[0]->newInstance());
7 class A1 { }10 class Bar { }13 var_dump((new ReflectionClass(Bar::class))->getAttributes()[0]->newInstance());
11 Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s
8 class A1 { }
7 class Foo { }
12 class Foo { }14 $ref = new \ReflectionClass(Foo::class);
7 class Foo22 new \ReflectionClass(Foo::class),
5 class TestStrict {}
7 class MyAttribute {12 class TestWeak {}16 var_dump((new ReflectionClass(TestWeak::class))->getAttributes()[0]->newInstance());17 var_dump((new ReflectionClass(TestStrict::class))->getAttributes()[0]->newInstance());
7 class MyAttribute {16 class Test {}18 (new ReflectionClass(Test::class))->getAttributes()[0]->newInstance();33 ["class"]=>52 ["class"]=>75 ["class"]=>91 ["class"]=>
2 Validation for "Attribute" uses the class scope when evaluating constant ASTs6 class x extends y {}8 class y {13 class z {}15 var_dump((new ReflectionClass(z::class))->getAttributes()[0]->newInstance());
7 class A1 { }
6 class FunctionAttribute16 class ClosureHolder43 var_dump((new ReflectionFunction($globalClosure))->getAttributes(FunctionAttribute::class)[0]->newI…44 var_dump((new ReflectionFunction($globalStaticClosure))->getAttributes(FunctionAttribute::class)[0]…45 …:getClosureDefinedInScopeStatically()))->getAttributes(FunctionAttribute::class)[0]->newInstance()…46 …aticClosureDefinedInScopeStatically()))->getAttributes(FunctionAttribute::class)[0]->newInstance()…50 …n($holder->getClosureDefinedInScope()))->getAttributes(FunctionAttribute::class)[0]->newInstance()…51 …der->getStaticClosureDefinedInScope()))->getAttributes(FunctionAttribute::class)[0]->newInstance()…
15 class P {22 class PP extends P {30 class C extends PP implements I {
6 class Foo implements IteratorAggregate
2 #[\Override]: No parent class.6 class C
2 #[\Override]: No parent class, but child implements matching interface.10 class P {15 class C extends P implements I {}
2 #[\Override]: No parent class, but child implements matching interface (2).10 class C extends P implements I {}12 class P {
Completed in 19 milliseconds