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\CasterCode
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;
}