diff --git a/tests/PHPStan/Analyser/NodeScopeResolverTest.php b/tests/PHPStan/Analyser/NodeScopeResolverTest.php index 4d382775455..caf6b47887c 100644 --- a/tests/PHPStan/Analyser/NodeScopeResolverTest.php +++ b/tests/PHPStan/Analyser/NodeScopeResolverTest.php @@ -1116,8 +1116,8 @@ public function dataFileAsserts(): iterable yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-8225.php'); yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-8242.php'); yield from $this->gatherAssertTypes(__DIR__ . '/data/composer-treatPhpDocTypesAsCertainBug.php'); - yield from $this->gatherAssertTypes(__DIR__ . '/data/closure-retain-expression-types.php'); + yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-7913.php'); } /** diff --git a/tests/PHPStan/Analyser/data/bug-7913.php b/tests/PHPStan/Analyser/data/bug-7913.php new file mode 100644 index 00000000000..7afd5511db1 --- /dev/null +++ b/tests/PHPStan/Analyser/data/bug-7913.php @@ -0,0 +1,25 @@ +analyse([__DIR__ . '/data/bug-7913.php'], []); + } + } diff --git a/tests/PHPStan/Rules/Arrays/data/bug-7913.php b/tests/PHPStan/Rules/Arrays/data/bug-7913.php new file mode 100644 index 00000000000..1bd3465b0bc --- /dev/null +++ b/tests/PHPStan/Rules/Arrays/data/bug-7913.php @@ -0,0 +1,17 @@ +