Skip to content

Commit 90ebda5

Browse files
Merge branch '5.0'
* 5.0: [VarDumper] fix for change in PHP 7.4.6 Added regression test for AccountStatusException behavior (ref #36822) [HttpClient] fix PHP warning + accept status code >= 600 [Security/Core] fix compat of `NativePasswordEncoder` with pre-PHP74 values of `PASSWORD_*` consts embed resource name in error message [FrameworkBundle] fix stringable annotation Change priority of KernelEvents::RESPONSE subscriber Fix register event listeners compiler pass Missing description in `messenger:setup-transports` command [Serializer] fix issue with PHP 8 [WebProfiler] Remove 'none' when appending CSP tokens [TwigBundle] FormExtension does not have a constructor anymore since sf 4.0 [Yaml] Fix escaped quotes in quoted multi-line string
2 parents 8d1f467 + d7d017f commit 90ebda5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Caster/SplCaster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public static function castFileInfo(\SplFileInfo $c, array $a, Stub $stub, bool
9191
];
9292

9393
$prefix = Caster::PREFIX_VIRTUAL;
94+
unset($a["\0SplFileInfo\0fileName"]);
95+
unset($a["\0SplFileInfo\0pathName"]);
9496

9597
if (false === $c->getPathname()) {
9698
$a[$prefix.''] = 'The parent constructor was not called: the object is in an invalid state';

0 commit comments

Comments
 (0)