@@ -39,7 +39,6 @@ class DebugHandlersListener implements EventSubscriberInterface
39
39
private $ levels ;
40
40
private $ throwAt ;
41
41
private $ scream ;
42
- private $ fileLinkFormat ;
43
42
private $ scope ;
44
43
private $ firstCall = true ;
45
44
private $ hasTerminatedWithException ;
@@ -49,11 +48,15 @@ class DebugHandlersListener implements EventSubscriberInterface
49
48
* @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants
50
49
* @param int|null $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value
51
50
* @param bool $scream Enables/disables screaming mode, where even silenced errors are logged
52
- * @param string|FileLinkFormatter|null $fileLinkFormat The format for links to source files
53
51
* @param bool $scope Enables/disables scoping mode
52
+ * @param string|FileLinkFormatter|null $fileLinkFormat The format for links to source files
54
53
*/
55
- public function __construct (callable $ exceptionHandler = null , LoggerInterface $ logger = null , $ levels = \E_ALL , ?int $ throwAt = \E_ALL , bool $ scream = true , $ fileLinkFormat = null , bool $ scope = true , LoggerInterface $ deprecationLogger = null )
54
+ public function __construct (callable $ exceptionHandler = null , LoggerInterface $ logger = null , $ levels = \E_ALL , ?int $ throwAt = \E_ALL , bool $ scream = true , $ scope = true , $ deprecationLogger = null )
56
55
{
56
+ if (!is_bool ($ scope )) {
57
+ trigger_deprecation ('symfony/http-kernel ' , '5.4 ' , 'Passing a $fileLinkFormat is deprecated. ' );
58
+ }
59
+
57
60
$ handler = set_exception_handler ('var_dump ' );
58
61
$ this ->earlyHandler = \is_array ($ handler ) ? $ handler [0 ] : null ;
59
62
restore_exception_handler ();
@@ -63,7 +66,6 @@ public function __construct(callable $exceptionHandler = null, LoggerInterface $
63
66
$ this ->levels = $ levels ?? \E_ALL ;
64
67
$ this ->throwAt = \is_int ($ throwAt ) ? $ throwAt : (null === $ throwAt ? null : ($ throwAt ? \E_ALL : null ));
65
68
$ this ->scream = $ scream ;
66
- $ this ->fileLinkFormat = $ fileLinkFormat ;
67
69
$ this ->scope = $ scope ;
68
70
$ this ->deprecationLogger = $ deprecationLogger ;
69
71
}
0 commit comments