8000 feature #28954 [Debug] Mark ErrorHandler and ExceptionHandler classes… · symfony/symfony@8aee36d · GitHub
[go: up one dir, main page]

Skip to content

Commit 8aee36d

Browse files
feature #28954 [Debug] Mark ErrorHandler and ExceptionHandler classes as final (fancyweb)
This PR was merged into the 4.3-dev branch. Discussion ---------- [Debug] Mark ErrorHandler and ExceptionHandler classes as final | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | not yet | Deprecations? | yes | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - The goal of marking this method final is to be able to change the argument signature to `\Throwable` in Symfony 5.0 We will then be able to convert the incoming `\Throwable` to `\ErrorException` thanks to the `FatalThrowableError` class. The use case is when you use the `ExceptionHandler::register()` method of the `Debug` component with a custom `set_error_handler()` that don't handle this conversion. This is for example the case of the `Drupal` one. Commits ------- 2a4e2e6 [Debug] Mark the ErrorHandler and ExceptionHandler classes as final
2 parents d63b3e3 + 2a4e2e6 commit 8aee36d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/Symfony/Component/Debug/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
4.3.0
5+
-----
6+
7+
* made the `ErrorHandler` and `ExceptionHandler` classes final
8+
49
4.0.0
510
-----
611

src/Symfony/Component/Debug/ErrorHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
*
4646
* @author Nicolas Grekas <p@tchwork.com>
4747
* @author Grégoire Pineau <lyrixx@lyrixx.info>
48+
*
49+
* @final since Symfony 4.3
4850
*/
4951
class ErrorHandler
5052
{

src/Symfony/Component/Debug/ExceptionHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
*
2727
* @author Fabien Potencier <fabien@symfony.com>
2828
* @author Nicolas Grekas <p@tchwork.com>
29+
*
30+
* @final since Symfony 4.3
2931
*/
3032
class ExceptionHandler
3133
{

0 commit comments

Comments
 (0)
0