Home
last modified time | relevance | path

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

123

/php-src/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();
80 $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];
/php-src/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 DReflectionAttribute_newInstance_deprecated.phpt23 var_dump($reflection->getAttributes()[0]->newInstance());
26 var_dump($reflection->getAttributes()[0]->newInstance());
29 var_dump($reflection->getAttributes()[0]->newInstance());
32 var_dump($reflection->getAttributes()[0]->newInstance());
H A Dbug80370.phpt2 Bug #80370: Segfault on ReflectionProperty::getAttributes of dynamic property
15 var_dump($reflectionProperty->getAttributes());
/php-src/ext/zend_test/tests/
H A Dgen_stub_test_03.phpt9 var_dump($reflectionConstant->getAttributes()[0]->newInstance());
10 var_dump($reflectionConstant->getAttributes()[1]->newInstance());
13 var_dump($reflectionProperty->getAttributes()[0]->newInstance());
14 var_dump($reflectionProperty->getAttributes()[1]->newInstance());
17 var_dump($reflectionMethod->getAttributes()[0]->newInstance());
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-src/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());
/php-src/Zend/tests/ctor_promotion/
H A Dctor_promotion_attributes.phpt14 var_dump($prop->getAttributes()[0]->getName());
17 var_dump($param->getAttributes()[0]->getName());
/php-src/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-src/Zend/tests/property_hooks/
H A Dattributes.phpt19 …r = (new ReflectionProperty(C::class, 'prop'))->getHook(PropertyHookType::Get)->getAttributes()[0];
24 …r = (new ReflectionProperty(C::class, 'prop'))->getHook(PropertyHookType::Set)->getAttributes()[0];
/php-src/Zend/tests/named_params/
H A Dattributes.phpt21 $attr = (new ReflectionClass(Test1::class))->getAttributes()[0];
26 $attr = (new ReflectionClass(Test2::class))->getAttributes()[0];

Completed in 12 milliseconds

123