From e658b4459f56976c255687a7e921ed6bb8e2e811 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sun, 24 Jul 2022 12:53:24 +0200 Subject: [PATCH] Regression test Closes https://github.com/phpstan/phpstan/issues/7676 --- .../Rules/Functions/CallToFunctionParametersRuleTest.php | 5 +++++ tests/PHPStan/Rules/Functions/data/bug-7676.php | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/PHPStan/Rules/Functions/data/bug-7676.php diff --git a/tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php b/tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php index a642855c05..80259fa54d 100644 --- a/tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php +++ b/tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php @@ -1128,4 +1128,9 @@ public function testBug2343(): void $this->analyse([__DIR__ . '/data/bug-2343.php'], []); } + public function testBug7676(): void + { + $this->analyse([__DIR__ . '/data/bug-7676.php'], []); + } + } diff --git a/tests/PHPStan/Rules/Functions/data/bug-7676.php b/tests/PHPStan/Rules/Functions/data/bug-7676.php new file mode 100644 index 0000000000..0f34f2aa31 --- /dev/null +++ b/tests/PHPStan/Rules/Functions/data/bug-7676.php @@ -0,0 +1,7 @@ +