Home
last modified time | relevance | path

Searched refs:getAttributes (Results 1 – 25 of 56) sorted by relevance

123

/PHP-8.2/Zend/tests/attributes/
H A D011_inheritance.phpt25 print_r(array_map(fn ($a) => $a->getName(), $ref->getAttributes()));
26 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes()));
29 print_r(array_map(fn ($a) => $a->getName(), $ref->getAttributes()));
30 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes()));
33 print_r(array_map(fn ($a) => $a->getName(), $ref->getAttributes()));
34 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes()));
57 print_r(array_map(fn ($a) => $a->getName(), $ref->getProperty('a')->getAttributes()));
60 print_r(array_map(fn ($a) => $a->getName(), $ref->getProperty('a')->getAttributes()));
63 print_r(array_map(fn ($a) => $a->getName(), $ref->getProperty('a')->getAttributes()));
H A D029_reflect_internal_symbols.phpt7 var_dump($rf->getAttributes());
10 var_dump($rc->getAttributes());
13 var_dump($rm->getAttributes());
16 var_dump($rcc->getAttributes());
19 var_dump($rp->getAttributes());
H A D006_filter.phpt7 $attr = $ref->getAttributes(A3::class);
12 $attr = $ref->getAttributes(A2::class);
17 $attr = $ref->getAttributes(A2::class);
29 $attr = $ref->getAttributes(\stdClass::class, \ReflectionAttribute::IS_INSTANCEOF);
34 $attr = $ref->getAttributes(A1::class, \ReflectionAttribute::IS_INSTANCEOF);
39 $attr = $ref->getAttributes(Base::class, \ReflectionAttribute::IS_INSTANCEOF);
44 $attr = $ref->getAttributes(A2::class, \ReflectionAttribute::IS_INSTANCEOF);
49 $attr = $ref->getAttributes(Base::class, \ReflectionAttribute::IS_INSTANCEOF);
58 $ref->getAttributes(A1::class, 3);
66 $ref->getAttributes(SomeMissingClass::class, \ReflectionAttribute::IS_INSTANCEOF);
[all …]
H A D013_class_scope.phpt20 print_r($ref->getAttributes()[0]->getArguments());
21 print_r($ref->getReflectionConstant('FOO')->getAttributes()[0]->getArguments());
22 print_r($ref->getProperty('a')->getAttributes()[0]->getArguments());
23 print_r($ref->getMethod('bar')->getAttributes()[0]->getArguments());
24 print_r($ref->getMethod('bar')->getParameters()[0]->getAttributes()[0]->getArguments());
42 print_r($ref->getMethod('foo')->getAttributes()[0]->getArguments());
45 $attr = $ref->getMethod('foo')->getAttributes()[0];
72 $args = $ref->getAttributes()[0]->getArguments();
75 $args = $ref->getMethod('bar')->getAttributes()[0]->getArguments();
H A Dgh8421.phpt43 var_dump((new ReflectionFunction($globalClosure))->getAttributes(FunctionAttribute::class)[0]->newI…
44 var_dump((new ReflectionFunction($globalStaticClosure))->getAttributes(FunctionAttribute::class)[0]…
45 …ectionFunction(ClosureHolder::getClosureDefinedInScopeStatically()))->getAttributes(FunctionAttrib…
46 …Function(ClosureHolder::getStaticClosureDefinedInScopeStatically()))->getAttributes(FunctionAttrib…
50 var_dump((new ReflectionFunction($holder->getClosureDefinedInScope()))->getAttributes(FunctionAttri…
51 var_dump((new ReflectionFunction($holder->getStaticClosureDefinedInScope()))->getAttributes(Functio…
H A D017_closure_scope.phpt22 print_r($ref->getAttributes()[0]->getArguments());
23 print_r($ref->getParameters()[0]->getAttributes()[0]->getArguments());
28 print_r($ref->getAttributes()[0]->getArguments());
29 print_r($ref->getParameters()[0]->getAttributes()[0]->getArguments());
H A D005_objects.phpt21 foreach ($ref->getAttributes() as $attr) {
32 $ref->getAttributes()[0]->newInstance();
42 $ref->getAttributes()[0]->newInstance();
52 $ref->getAttributes()[0]->newInstance();
68 $ref->getAttributes()[0]->newInstance();
81 $ref->getAttributes()[0]->newInstance();
93 $ref->getAttributes()[0]->newInstance();
H A D003_ast_nodes.phpt15 $attr = $ref->getAttributes();
27 $attr = $ref->getAttributes();
45 $attr = $ref->getAttributes();
58 var_dump($ref->getAttributes()[0]->getArguments());
69 $attr = $ref->getAttributes();
H A D020_userland_attribute_validation.phpt10 $attr = $ref->getAttributes()[0];
17 $attr = $ref->getAttributes()[0];
29 $attr = $ref->getAttributes()[0];
44 $attr = $ref->getAttributes()[0];
H A D014_class_const_group.phpt15 $ra1 = $rp1->getAttributes()[0];
18 $ra2 = $rp2->getAttributes()[0];
H A D015_property_group.phpt15 $ra1 = $rp1->getAttributes()[0];
18 $ra2 = $rp2->getAttributes()[0];
H A D030_strict_types.phpt16 var_dump((new ReflectionClass(TestWeak::class))->getAttributes()[0]->newInstance());
17 var_dump((new ReflectionClass(TestStrict::class))->getAttributes()[0]->newInstance());
/PHP-8.2/ext/reflection/tests/
H A DReflectionAttribute_toString.phpt10 echo $refl->getAttributes()[0];
11 echo $refl->getAttributes()[1];
12 echo $refl->getAttributes()[2];
13 echo $refl->getAttributes()[3];
14 echo $refl->getAttributes()[4];
H A Dbug80370.phpt2 Bug #80370: Segfault on ReflectionProperty::getAttributes of dynamic property
15 var_dump($reflectionProperty->getAttributes());
H A Dnew_in_attributes.phpt16 $ra = $rc->getAttributes()[0];
33 $ra = $rc->getAttributes()[0];
/PHP-8.2/ext/zend_test/tests/
H A Dattribute_arguments.phpt9 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
14 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
19 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
24 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
29 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
41 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
46 var_dump(count($reflection->getParameters()[0]->getAttributes()));
56 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
61 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
78 $attribute = $reflection->getParameters()[0]->getAttributes()[0];
[all …]
H A Dobserver_bug81430_1.phpt24 call_user_func([$r->getAttributes(A::class)[0], 'newInstance']);
32 <!-- init ReflectionFunctionAbstract::getAttributes() -->
33 <ReflectionFunctionAbstract::getAttributes>
34 </ReflectionFunctionAbstract::getAttributes>
H A Dobserver_bug81430_2.phpt28 call_user_func([$r->getAttributes(A::class)[0], 'newInstance']);
36 <!-- init ReflectionFunctionAbstract::getAttributes() -->
37 <ReflectionFunctionAbstract::getAttributes>
38 </ReflectionFunctionAbstract::getAttributes>
H A Dattribute-promotion-parameter-only.phpt16 $attr = $ref->getConstructor()->getParameters()[0]->getAttributes();
22 $attr = $ref->getProperty('param')->getAttributes();
H A Dattribute-promotion-property-only.phpt16 $attr = $ref->getConstructor()->getParameters()[0]->getAttributes();
20 $attr = $ref->getProperty('param')->getAttributes();
/PHP-8.2/Zend/tests/
H A Dbug79897.phpt23 var_dump((new ReflectionParameter(['A', '__construct'], 'b'))->getAttributes()[0]->getArguments());
24 var_dump((new ReflectionProperty('A', 'b'))->getAttributes()[0]->getArguments());
H A Dctor_promotion_attributes.phpt14 var_dump($prop->getAttributes()[0]->getName());
17 var_dump($param->getAttributes()[0]->getName());
/PHP-8.2/Zend/tests/traits/
H A Dconstant_020.phpt20 var_dump($reflection->getReflectionConstant('Constant')->getAttributes('TestAttribute')[0]->getArgu…
23 var_dump($reflection->getReflectionConstant('Constant')->getAttributes('TestAttribute')[0]->getArgu…
/PHP-8.2/Zend/tests/named_params/
H A Dattributes.phpt21 $attr = (new ReflectionClass(Test1::class))->getAttributes()[0];
26 $attr = (new ReflectionClass(Test2::class))->getAttributes()[0];
/PHP-8.2/Zend/tests/enum/
H A Denum-attributes.phpt16 var_dump((new \ReflectionClass(Foo::class))->getAttributes(EnumAttribute::class)[0]->newInstance());

Completed in 25 milliseconds

123