Home
last modified time | relevance | path

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

12

/PHP-8.0/Zend/tests/attributes/
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 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 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());
H A D027_trailing_comma_args.phpt15 $attr = $ref->getAttributes()[0];
H A D007_self_reflect_attribute.phpt7 $attributes = $reflection->getAttributes();
H A D002_rfcexample.phpt27 $attributes = $reflectionClass->getAttributes();
H A D028_grouped.phpt28 $attr = $ref->getAttributes();
/PHP-8.0/ext/reflection/tests/
H A Dbug80370.phpt2 Bug #80370: Segfault on ReflectionProperty::getAttributes of dynamic property
14 var_dump($reflectionProperty->getAttributes());
H A Dbug81208.phpt18 foreach ($z->getProperty("property")->getAttributes() as $attribute) {
/PHP-8.0/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.0/Zend/tests/named_params/
H A Dattributes.phpt21 $attr = (new ReflectionClass(Test1::class))->getAttributes()[0];
26 $attr = (new ReflectionClass(Test2::class))->getAttributes()[0];
H A Dattributes_named_flags.phpt13 (new ReflectionFunction('test'))->getAttributes()[0]->newInstance();
H A Dattributes_named_flags_incorrect.phpt14 (new ReflectionFunction('test'))->getAttributes()[0]->newInstance();
/PHP-8.0/ext/reflection/
H A Dphp_reflection.stub.php103 public function getAttributes(?string $name = null, int $flags = 0): array {} function in ReflectionFunctionAbstract
365 public function getAttributes(?string $name = null, int $flags = 0): array {} function in ReflectionClass
435 public function getAttributes(?string $name = null, int $flags = 0): array {} function in ReflectionProperty
472 public function getAttributes(?string $name = null, int $flags = 0): array {} function in ReflectionClassConstant
551 public function getAttributes(?string $name = null, int $flags = 0): array {} function in ReflectionParameter
/PHP-8.0/ext/zend_test/tests/
H A Dobserver_bug81430_1.phpt25 call_user_func([$r->getAttributes(A::class)[0], 'newInstance']);

Completed in 39 milliseconds

12