Skip to content

Commit 80aa859

Browse files
committed
Prevent global side-effect in Bug13813IntegrationTest
1 parent 9ab9647 commit 80aa859

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/PHPStan/Analyser/Bug13813IntegrationTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class Bug13813IntegrationTest extends PHPStanTestCase
1717

1818
public function testBug13813(): void
1919
{
20+
$oldReporting = error_reporting();
21+
2022
error_reporting(E_ALL);
2123
$analyzerResult = $this->runAnalyse([
2224
__DIR__ . '/data/bug-13813.php',
@@ -44,6 +46,8 @@ public function testBug13813(): void
4446
$analyzerResult->getAllPhpErrors()[1]->getMessage(),
4547
);
4648
}
49+
50+
error_reporting($oldReporting);
4751
}
4852

4953
/**

0 commit comments

Comments
 (0)