Mercurial > hg > cmmr2012-drupal-site
diff vendor/symfony/var-dumper/Caster/DoctrineCaster.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
line wrap: on
line diff
--- a/vendor/symfony/var-dumper/Caster/DoctrineCaster.php Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/symfony/var-dumper/Caster/DoctrineCaster.php Thu Feb 28 13:11:55 2019 +0000 @@ -12,8 +12,8 @@ namespace Symfony\Component\VarDumper\Caster; use Doctrine\Common\Proxy\Proxy as CommonProxy; +use Doctrine\ORM\PersistentCollection; use Doctrine\ORM\Proxy\Proxy as OrmProxy; -use Doctrine\ORM\PersistentCollection; use Symfony\Component\VarDumper\Cloner\Stub; /** @@ -25,7 +25,7 @@ { public static function castCommonProxy(CommonProxy $proxy, array $a, Stub $stub, $isNested) { - foreach (array('__cloner__', '__initializer__') as $k) { + foreach (['__cloner__', '__initializer__'] as $k) { if (array_key_exists($k, $a)) { unset($a[$k]); ++$stub->cut; @@ -37,7 +37,7 @@ public static function castOrmProxy(OrmProxy $proxy, array $a, Stub $stub, $isNested) { - foreach (array('_entityPersister', '_identifier') as $k) { + foreach (['_entityPersister', '_identifier'] as $k) { if (array_key_exists($k = "\0Doctrine\\ORM\\Proxy\\Proxy\0".$k, $a)) { unset($a[$k]); ++$stub->cut; @@ -49,7 +49,7 @@ public static function castPersistentCollection(PersistentCollection $coll, array $a, Stub $stub, $isNested) { - foreach (array('snapshot', 'association', 'typeClass') as $k) { + foreach (['snapshot', 'association', 'typeClass'] as $k) { if (array_key_exists($k = "\0Doctrine\\ORM\\PersistentCollection\0".$k, $a)) { $a[$k] = new CutStub($a[$k]); }