Skip to content

Commit

Permalink
Fix error reported by phpstan.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 29, 2018
1 parent 37d6da0 commit cc9307d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TestSuite/TestCase.php
Expand Up @@ -96,9 +96,9 @@ public function skipIf($shouldSkip, $message = '')
*/
public function withErrorReporting($errorLevel, $callable)
{
$default = error_reporting();
error_reporting($errorLevel);
try {
$default = error_reporting();
error_reporting($errorLevel);
$callable();
} finally {
error_reporting($default);
Expand All @@ -113,9 +113,9 @@ public function withErrorReporting($errorLevel, $callable)
*/
public function deprecated($callable)
{
$errorLevel = error_reporting();
error_reporting(E_ALL ^ E_USER_DEPRECATED);
try {
$errorLevel = error_reporting();
error_reporting(E_ALL ^ E_USER_DEPRECATED);
$callable();
} finally {
error_reporting($errorLevel);
Expand Down

0 comments on commit cc9307d

Please sign in to comment.