File tree 3 files changed +3
-3
lines changed
Bridge/Monolog/Handler/FingersCrossed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public function isHandlerActivated(array $record)
42
42
$ isActivated
43
43
&& isset ($ record ['context ' ]['exception ' ])
44
44
&& $ record ['context ' ]['exception ' ] instanceof HttpException
45
- && $ record ['context ' ]['exception ' ]->getStatusCode () == 404
45
+ && 404 == $ record ['context ' ]['exception ' ]->getStatusCode ()
46
46
&& ($ request = $ this ->requestStack ->getMasterRequest ())
47
47
) {
48
48
return !preg_match ($ this ->blacklist , $ request ->getPathInfo ());
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public function top($bit)
104
104
array_unshift ($ this ->bits , $ bit );
105
105
106
106
foreach ($ this ->labels as $ label => $ index ) {
107
- $ this ->labels [$ label ] += 1 ;
107
+ ++ $ this ->labels [$ label ];
108
108
}
109
109
110
110
return $ this ;
Original file line number Diff line number Diff line change @@ -1301,7 +1301,7 @@ public function getRealMethod()
1301
1301
*
1302
1302
* @param string $format The format
1303
1303
*
1304
- * @return string The associated mime type (null if not found)
1304
+ * @return string|null The associated mime type (null if not found)
1305
1305
*/
1306
1306
public function getMimeType ($ format )
1307
1307
{
You can’t perform that action at this time.
0 commit comments