X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar-X/vendor/symfony/var-dumper/Caster
home
/
gfecatvj
/
sites
/
realesbar-X
/
vendor
/
symfony
/
var-dumper
/
Caster
/
📁
..
📄
AmqpCaster.php
(6.52 KB)
📄
ArgsStub.php
(2.24 KB)
📄
Caster.php
(5.91 KB)
📄
ClassStub.php
(3.75 KB)
📄
ConstStub.php
(748 B)
📄
CutArrayStub.php
(696 B)
📄
CutStub.php
(1.88 KB)
📄
DOMCaster.php
(9.83 KB)
📄
DateCaster.php
(4.61 KB)
📄
DoctrineCaster.php
(1.63 KB)
📄
DsCaster.php
(1.55 KB)
📄
DsPairStub.php
(613 B)
📄
EnumStub.php
(637 B)
📄
ExceptionCaster.php
(15.73 KB)
📄
FrameStub.php
(740 B)
📄
GmpCaster.php
(749 B)
📄
ImagineCaster.php
(949 B)
📄
ImgStub.php
(637 B)
📄
IntlCaster.php
(8.72 KB)
📄
LinkStub.php
(3.29 KB)
📄
MemcachedCaster.php
(2.29 KB)
📄
PdoCaster.php
(3.48 KB)
📄
PgSqlCaster.php
(5.33 KB)
📄
ProxyManagerCaster.php
(721 B)
📄
RdKafkaCaster.php
(4.47 KB)
📄
RedisCaster.php
(5.1 KB)
📄
ReflectionCaster.php
(12.6 KB)
📄
ResourceCaster.php
(3.11 KB)
📄
SplCaster.php
(6.9 KB)
📄
StubCaster.php
(2.09 KB)
📄
SymfonyCaster.php
(1.76 KB)
📄
TraceStub.php
(963 B)
📄
UuidCaster.php
(668 B)
📄
XmlReaderCaster.php
(2.94 KB)
📄
XmlResourceCaster.php
(2.46 KB)
Editing: StubCaster.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\VarDumper\Caster; use Symfony\Component\VarDumper\Cloner\Stub; /** * Casts a caster's Stub. * * @author Nicolas Grekas <p@tchwork.com> * * @final */ class StubCaster { public static function castStub(Stub $c, array $a, Stub $stub, bool $isNested) { if ($isNested) { $stub->type = $c->type; $stub->class = $c->class; $stub->value = $c->value; $stub->handle = $c->handle; $stub->cut = $c->cut; $stub->attr = $c->attr; if (Stub::TYPE_REF === $c->type && !$c->class && \is_string($c->value) && !preg_match('//u', $c->value)) { $stub->type = Stub::TYPE_STRING; $stub->class = Stub::STRING_BINARY; } $a = []; } return $a; } public static function castCutArray(CutArrayStub $c, array $a, Stub $stub, bool $isNested) { return $isNested ? $c->preservedSubset : $a; } public static function cutInternals($obj, array $a, Stub $stub, bool $isNested) { if ($isNested) { $stub->cut += \count($a); return []; } return $a; } public static function castEnum(EnumStub $c, array $a, Stub $stub, bool $isNested) { if ($isNested) { $stub->class = $c->dumpKeys ? '' : null; $stub->handle = 0; $stub->value = null; $stub->cut = $c->cut; $stub->attr = $c->attr; $a = []; if ($c->value) { foreach (array_keys($c->value) as $k) { $keys[] = !isset($k[0]) || "\0" !== $k[0] ? Caster::PREFIX_VIRTUAL.$k : $k; } // Preserve references with array_combine() $a = array_combine($keys, $c->value); } } return $a; } }
Upload File
Create Folder