Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitdaa8283

Browse files
bug#45675 [Runtime] Fix passing $debug parameter toErrorHandler (Kocal)
This PR was merged into the 5.4 branch.Discussion----------[Runtime] Fix passing $debug parameter to `ErrorHandler`| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | yes| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | yes/no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->| License | MIT| Doc PR | symfony/symfony-docs#... <!-- required for new features -->As discussed with `@nicolas`-grekas on Slack, we think we should pass `$debug` parameter instead of `true`, since the 2nd argument of [`ErrorHandler`](https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/ErrorHandler/ErrorHandler.php#L184) is called `$debug`.Commits-------a39f4f3 [Runtime] Fix passing $debug parameter to `ErrorHandler`
2 parents5f1e0c8 +a39f4f3 commitdaa8283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Runtime/Internal/SymfonyErrorHandler.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function register(bool $debug): void
2929
if (class_exists(ErrorHandler::class)) {
3030
DebugClassLoader::enable();
3131
restore_error_handler();
32-
ErrorHandler::register(newErrorHandler(newBufferingLogger(),true));
32+
ErrorHandler::register(newErrorHandler(newBufferingLogger(),$debug));
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp