We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a205938 commit e44856dCopy full SHA for e44856d
tests/PHPStan/Analyser/Bug13813IntegrationTest.php
@@ -17,11 +17,17 @@ class Bug13813IntegrationTest extends PHPStanTestCase
17
18
public function testBug13813(): void
19
{
20
- error_reporting(E_ALL);
21
- $analyzerResult = $this->runAnalyse([
22
- __DIR__ . '/data/bug-13813.php',
23
- __DIR__ . '/Bug13813Rule.php',
24
- ]);
+ $oldReporting = error_reporting();
+
+ try {
+ error_reporting(E_ALL);
+ $analyzerResult = $this->runAnalyse([
25
+ __DIR__ . '/data/bug-13813.php',
26
+ __DIR__ . '/Bug13813Rule.php',
27
+ ]);
28
+ } finally {
29
+ error_reporting($oldReporting);
30
+ }
31
$this->assertCount(2, $analyzerResult->getAllPhpErrors());
32
$this->assertCount(2, $analyzerResult->getFilteredPhpErrors());
33
0 commit comments