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 1abff3e commit aadaa38Copy full SHA for aadaa38
tests/PHPStan/Analyser/AnalyserIntegrationTest.php
@@ -13,7 +13,6 @@
13
use PHPStan\Type\Constant\ConstantStringType;
14
use PHPUnit\Framework\Attributes\RequiresPhp;
15
use function extension_loaded;
16
-use function restore_error_handler;
17
use function sprintf;
18
use const PHP_VERSION_ID;
19
@@ -184,7 +183,6 @@ public function testClassExistsAutoloadingError(): void
184
183
185
public function testCollectWarnings(): void
186
{
187
- restore_error_handler();
188
$errors = $this->runAnalyse(__DIR__ . '/data/declaration-warning.php');
189
$this->assertCount(1, $errors);
190
$this->assertSame('Parameter #1 $i of method DeclarationWarning\Bar::doFoo() is not optional.', $errors[0]->getMessage());
0 commit comments