Home
last modified time | relevance | path

Searched refs:class (Results 101 – 125 of 4799) sorted by path

12345678910>>...192

/php-src/Zend/tests/attributes/
H A D014_class_const_group.phpt2 Attributes can be applied to groups of class constants
6 class C
H A D015_property_group.phpt6 class C
H A D017_closure_scope.phpt6 class Test1
11 class C1
17 return #[A1(self::class, self::FOO)] function (#[A1(self::class, self::FOO)] $p) { };
27 $ref = new \ReflectionFunction(C1::foo()->bindTo(null, Test1::class));
H A D018_fatal_error_in_argument.phpt11 Fatal error: Dynamic class names are not allowed in compile-time class constant references in %s on…
H A D019_variable_attribute_name.phpt7 class A {}
H A D020_userland_attribute_validation.phpt7 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)"
H A D021_attribute_flags_type_is_validated.phpt7 class A1 { }
10 class Foo {}
13 (new ReflectionClass(Foo::class))->getAttributes()[0]->newInstance();
H A D022_attribute_flags_value_is_validated.phpt7 class A1 { }
10 class Foo { }
13 var_dump((new ReflectionClass(Foo::class))->getAttributes()[0]->newInstance());
H A D023_ast_node_in_validation.phpt7 class A1 { }
10 class Bar { }
13 var_dump((new ReflectionClass(Bar::class))->getAttributes()[0]->newInstance());
H A D024_internal_target_validation.phpt11 Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s
H A D025_internal_repeatable_validation.phpt8 class A1 { }
H A D026_unpack_in_args.phpt7 class Foo { }
H A D027_trailing_comma_args.phpt12 class Foo { }
14 $ref = new \ReflectionClass(Foo::class);
H A D028_grouped.phpt7 class Foo
22 new \ReflectionClass(Foo::class),
H A D030_strict_types.inc5 class TestStrict {}
H A D030_strict_types.phpt7 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());
H A D031_backtrace.phpt7 class MyAttribute {
16 class Test {}
18 (new ReflectionClass(Test::class))->getAttributes()[0]->newInstance();
33 ["class"]=>
52 ["class"]=>
75 ["class"]=>
91 ["class"]=>
H A D032_attribute_validation_scope.phpt2 Validation for "Attribute" uses the class scope when evaluating constant ASTs
6 class x extends y {}
8 class y {
13 class z {}
15 var_dump((new ReflectionClass(z::class))->getAttributes()[0]->newInstance());
H A D033_attribute_flags_type_is_not_validated_at_comp_time.phpt7 class A1 { }
H A Dgh8421.phpt6 class FunctionAttribute
16 class ClosureHolder
43 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()…
/php-src/Zend/tests/attributes/override/
H A D001.phpt15 class P {
22 class PP extends P {
30 class C extends PP implements I {
H A D002.phpt6 class Foo implements IteratorAggregate
H A D003.phpt2 #[\Override]: No parent class.
6 class C
H A D004.phpt2 #[\Override]: No parent class, but child implements matching interface.
10 class P {
15 class C extends P implements I {}
H A D005.phpt2 #[\Override]: No parent class, but child implements matching interface (2).
10 class C extends P implements I {}
12 class P {

Completed in 19 milliseconds

12345678910>>...192