Skip to content

Commit e123cd9

Browse files
Fix CS/WS issues
1 parent 30c164c commit e123cd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Runner/ErrorHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ public function enable(): void
168168

169169
set_error_handler($this);
170170

171-
$this->enabled = true;
172-
171+
$this->enabled = true;
173172
$this->originalErrorReportingLevel = error_reporting();
173+
174174
error_reporting($this->originalErrorReportingLevel & self::UNHANDLEABLE_LEVELS);
175175
}
176176

@@ -182,9 +182,9 @@ public function disable(): void
182182

183183
restore_error_handler();
184184

185-
$this->enabled = false;
186-
187185
error_reporting(error_reporting() | $this->originalErrorReportingLevel);
186+
187+
$this->enabled = false;
188188
$this->originalErrorReportingLevel = null;
189189
}
190190

0 commit comments

Comments
 (0)