function ReflectionCaster::addAttributes
5 calls to ReflectionCaster::addAttributes()
- ReflectionCaster::castClass in vendor/
symfony/ var-dumper/ Caster/ ReflectionCaster.php - ReflectionCaster::castClassConstant in vendor/
symfony/ var-dumper/ Caster/ ReflectionCaster.php - ReflectionCaster::castFunctionAbstract in vendor/
symfony/ var-dumper/ Caster/ ReflectionCaster.php - ReflectionCaster::castParameter in vendor/
symfony/ var-dumper/ Caster/ ReflectionCaster.php - ReflectionCaster::castProperty in vendor/
symfony/ var-dumper/ Caster/ ReflectionCaster.php
File
-
vendor/
symfony/ var-dumper/ Caster/ ReflectionCaster.php, line 440
Class
- ReflectionCaster
- Casts Reflector related classes to array representation.
Namespace
Symfony\Component\VarDumper\CasterCode
private static function addAttributes(array &$a, \Reflector $c, string $prefix = Caster::PREFIX_VIRTUAL) : void {
foreach ($c->getAttributes() as $n) {
$a[$prefix . 'attributes'][] = $n;
}
}