Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ReflectionCaster.php

function ReflectionCaster::castAttribute

File

vendor/symfony/var-dumper/Caster/ReflectionCaster.php, line 117

Class

ReflectionCaster
Casts Reflector related classes to array representation.

Namespace

Symfony\Component\VarDumper\Caster

Code

public static function castAttribute(\ReflectionAttribute $c, array $a, Stub $stub, bool $isNested) : array {
    $map = [
        'name' => 'getName',
        'arguments' => 'getArguments',
    ];
    if (\PHP_VERSION_ID >= 80400) {
        unset($map['name']);
    }
    self::addMap($a, $c, $map);
    return $a;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal