X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/symfony/var-dumper/Caster
home
/
prisjneg
/
public_html
/
vendor
/
symfony
/
var-dumper
/
Caster
/
📁
..
📄
AmqpCaster.php
(6.72 KB)
📄
ArgsStub.php
(2.24 KB)
📄
Caster.php
(6.73 KB)
📄
ClassStub.php
(3.76 KB)
📄
ConstStub.php
(740 B)
📄
CutArrayStub.php
(696 B)
📄
CutStub.php
(1.89 KB)
📄
DOMCaster.php
(9.03 KB)
📄
DateCaster.php
(4.94 KB)
📄
DoctrineCaster.php
(1.74 KB)
📄
DsCaster.php
(1.55 KB)
📄
DsPairStub.php
(625 B)
📄
EnumStub.php
(637 B)
📄
ExceptionCaster.php
(16.38 KB)
📄
FFICaster.php
(5.53 KB)
📄
FiberCaster.php
(1.07 KB)
📄
FrameStub.php
(740 B)
📄
GmpCaster.php
(749 B)
📄
ImagineCaster.php
(949 B)
📄
ImgStub.php
(637 B)
📄
IntlCaster.php
(8.9 KB)
📄
LinkStub.php
(3.29 KB)
📄
MemcachedCaster.php
(2.27 KB)
📄
MysqliCaster.php
(691 B)
📄
PdoCaster.php
(3.54 KB)
📄
PgSqlCaster.php
(5.46 KB)
📄
ProxyManagerCaster.php
(758 B)
📄
RdKafkaCaster.php
(4.97 KB)
📄
RedisCaster.php
(5.43 KB)
📄
ReflectionCaster.php
(15.35 KB)
📄
ResourceCaster.php
(3.07 KB)
📄
ScalarStub.php
(554 B)
📄
SplCaster.php
(8.13 KB)
📄
StubCaster.php
(2.47 KB)
📄
SymfonyCaster.php
(3.69 KB)
📄
TraceStub.php
(964 B)
📄
UninitializedStub.php
(615 B)
📄
UuidCaster.php
(668 B)
📄
XmlReaderCaster.php
(3.33 KB)
📄
XmlResourceCaster.php
(2.52 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 { /** * @return array */ 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; } /** * @return array */ public static function castCutArray(CutArrayStub $c, array $a, Stub $stub, bool $isNested) { return $isNested ? $c->preservedSubset : $a; } /** * @return array */ public static function cutInternals($obj, array $a, Stub $stub, bool $isNested) { if ($isNested) { $stub->cut += \count($a); return []; } return $a; } /** * @return array */ 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; } /** * @return array */ public static function castScalar(ScalarStub $scalarStub, array $a, Stub $stub) { $stub->type = Stub::TYPE_SCALAR; $stub->attr['value'] = $scalarStub->value; return $a; } }
Upload File
Create Folder