diff --git a/tests/PHPStan/Rules/Methods/CallStaticMethodsRuleTest.php b/tests/PHPStan/Rules/Methods/CallStaticMethodsRuleTest.php index 282415af6f..bd53eca6e0 100644 --- a/tests/PHPStan/Rules/Methods/CallStaticMethodsRuleTest.php +++ b/tests/PHPStan/Rules/Methods/CallStaticMethodsRuleTest.php @@ -885,6 +885,14 @@ public function testDynamicCall(): void ]); } + public function testBug13267(): void + { + $this->checkThisOnly = false; + $this->checkExplicitMixed = false; + + $this->analyse([__DIR__ . '/data/bug-13267.php'], []); + } + public function testRestrictedInternalClassNameUsage(): void { $this->checkThisOnly = false; diff --git a/tests/PHPStan/Rules/Methods/data/bug-13267.php b/tests/PHPStan/Rules/Methods/data/bug-13267.php new file mode 100644 index 0000000000..f49948300e --- /dev/null +++ b/tests/PHPStan/Rules/Methods/data/bug-13267.php @@ -0,0 +1,16 @@ +getMessage(), + $e->getCode(), + 1, + $e->getFile(), + $e->getLine(), + $e->getPrevious(), + ); + } +}