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

Breadcrumb

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

function IntlCaster::castError

5 calls to IntlCaster::castError()
IntlCaster::castIntlCalendar in vendor/symfony/var-dumper/Caster/IntlCaster.php
IntlCaster::castIntlDateFormatter in vendor/symfony/var-dumper/Caster/IntlCaster.php
IntlCaster::castIntlTimeZone in vendor/symfony/var-dumper/Caster/IntlCaster.php
IntlCaster::castMessageFormatter in vendor/symfony/var-dumper/Caster/IntlCaster.php
IntlCaster::castNumberFormatter in vendor/symfony/var-dumper/Caster/IntlCaster.php

File

vendor/symfony/var-dumper/Caster/IntlCaster.php, line 161

Class

IntlCaster
@author Nicolas Grekas <p@tchwork.com> @author Jan Schädlich <jan.schaedlich@sensiolabs.de>

Namespace

Symfony\Component\VarDumper\Caster

Code

private static function castError(object $c, array $a) : array {
    if ($errorCode = $c->getErrorCode()) {
        $a += [
            Caster::PREFIX_VIRTUAL . 'error_code' => $errorCode,
            Caster::PREFIX_VIRTUAL . 'error_message' => $c->getErrorMessage(),
        ];
    }
    return $a;
}

API Navigation

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