Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6175d52

Browse filesBrowse files
committed
deal with errors being thrown on PHP 8
1 parent 6b8857c commit 6175d52
Copy full SHA for 6175d52

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎src/Symfony/Component/VarDumper/Caster/SplCaster.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/VarDumper/Caster/SplCaster.php
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ public static function castFileInfo(\SplFileInfo $c, array $a, Stub $stub, $isNe
108108

109109
$a[$prefix.''] = 'The parent constructor was not called: the object is in an invalid state';
110110

111+
return $a;
112+
} catch (\Error $e) {
113+
if ('Object not initialized' !== $e->getMessage()) {
114+
throw $e;
115+
}
116+
117+
$a[$prefix.''] = 'The parent constructor was not called: the object is in an invalid state';
118+
111119
return $a;
112120
}
113121
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.