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 0c320fe

Browse filesBrowse files
[Debug] fix ClassNotFoundFatalErrorHandler
1 parent 4b419f2 commit 0c320fe
Copy full SHA for 0c320fe

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+16
-0
lines changed

‎src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ public function flattenDataProvider()
199199

200200
public function testArguments()
201201
{
202+
if (\PHP_VERSION_ID >= 70400) {
203+
$this->markTestSkipped('PHP 7.4 removes arguments from exception traces.');
204+
}
205+
202206
$dh = opendir(__DIR__);
203207
$fh = tmpfile();
204208

@@ -261,6 +265,10 @@ function () {},
261265

262266
public function testRecursionInArguments()
263267
{
268+
if (\PHP_VERSION_ID >= 70400) {
269+
$this->markTestSkipped('PHP 7.4 removes arguments from exception traces.');
270+
}
271+
264272
$a = null;
265273
$a = ['foo', [2, &$a]];
266274
$exception = $this->createException($a);
@@ -272,6 +280,10 @@ public function testRecursionInArguments()
272280

273281
public function testTooBigArray()
274282
{
283+
if (\PHP_VERSION_ID >= 70400) {
284+
$this->markTestSkipped('PHP 7.4 removes arguments from exception traces.');
285+
}
286+
275287
$a = [];
276288
for ($i = 0; $i < 20; ++$i) {
277289
for ($j = 0; $j < 50; ++$j) {

‎src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public static function setUpBeforeClass()
2929
// get class loaders wrapped by DebugClassLoader
3030
if ($function[0] instanceof DebugClassLoader) {
3131
$function = $function[0]->getClassLoader();
32+
33+
if (!\is_array($function)) {
34+
continue;
35+
}
3236
}
3337

3438
if ($function[0] instanceof ComposerClassLoader) {

0 commit comments

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