Skip to content

Commit aadaa38

Browse files
committed
Fix test
1 parent 1abff3e commit aadaa38

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use PHPStan\Type\Constant\ConstantStringType;
1414
use PHPUnit\Framework\Attributes\RequiresPhp;
1515
use function extension_loaded;
16-
use function restore_error_handler;
1716
use function sprintf;
1817
use const PHP_VERSION_ID;
1918

@@ -184,7 +183,6 @@ public function testClassExistsAutoloadingError(): void
184183

185184
public function testCollectWarnings(): void
186185
{
187-
restore_error_handler();
188186
$errors = $this->runAnalyse(__DIR__ . '/data/declaration-warning.php');
189187
$this->assertCount(1, $errors);
190188
$this->assertSame('Parameter #1 $i of method DeclarationWarning\Bar::doFoo() is not optional.', $errors[0]->getMessage());

0 commit comments

Comments
 (0)