Skip to content

Commit edd7f7d

Browse files
committed
Simplify
1 parent cfbd8f0 commit edd7f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static function (Exception $e, Request $request, $code, GetResponseForExceptionE
136136
++$expectations[$pos]['runs'];
137137
$app['storage']->store($request, 'expectations', $expectations);
138138

139-
if ($event && method_exists($event, 'allowCustomResponseCode')) {
139+
if (method_exists($event, 'allowCustomResponseCode')) {
140140
$event->allowCustomResponseCode();
141141
}
142142

0 commit comments

Comments
 (0)