diff --git a/tests/PHPStan/Analyser/NodeScopeResolverTest.php b/tests/PHPStan/Analyser/NodeScopeResolverTest.php index e0a8eaa2ccb..8806119792f 100644 --- a/tests/PHPStan/Analyser/NodeScopeResolverTest.php +++ b/tests/PHPStan/Analyser/NodeScopeResolverTest.php @@ -1136,6 +1136,7 @@ public function dataFileAsserts(): iterable yield from $this->gatherAssertTypes(__DIR__ . '/data/imagick-pixel.php'); yield from $this->gatherAssertTypes(__DIR__ . '/../Rules/Arrays/data/bug-8467a.php'); yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-8467b.php'); + yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-8442.php'); } /** diff --git a/tests/PHPStan/Analyser/data/bug-8442.php b/tests/PHPStan/Analyser/data/bug-8442.php new file mode 100644 index 00000000000..a6dd50bad77 --- /dev/null +++ b/tests/PHPStan/Analyser/data/bug-8442.php @@ -0,0 +1,8 @@ +