diff --git a/tests/system/CommonHelperTest.php b/tests/system/CommonHelperTest.php index 04e6c9eebb1f..2b614b316572 100644 --- a/tests/system/CommonHelperTest.php +++ b/tests/system/CommonHelperTest.php @@ -142,13 +142,13 @@ public function testHelperLoadsAppHelperFirst(): void // this chunk is not needed really; just added so that IDEs will be happy if (! function_exists('foo_bar_baz')) { - function foo_bar_baz(): string + function foo_bar_baz(): string // @phpstan-ignore function.inner { return __FILE__; } } - $this->assertSame($this->dummyHelpers[0], foo_bar_baz()); // @phpstan-ignore-line function.notFound + $this->assertSame($this->dummyHelpers[0], foo_bar_baz()); // @phpstan-ignore function.notFound } public function testNamespacedHelperNotFound(): void diff --git a/utils/phpstan-baseline/function.inner.neon b/utils/phpstan-baseline/function.inner.neon deleted file mode 100644 index c51d5a2f1a87..000000000000 --- a/utils/phpstan-baseline/function.inner.neon +++ /dev/null @@ -1,8 +0,0 @@ -# total 1 error - -parameters: - ignoreErrors: - - - message: '#^Inner named functions are not supported by PHPStan\. Consider refactoring to an anonymous function, class method, or a top\-level\-defined function\. See issue \#165 \(https\://github\.com/phpstan/phpstan/issues/165\) for more details\.$#' - count: 1 - path: ../../tests/system/CommonHelperTest.php diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index 7a758b2b8e94..566c272bd3bb 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -17,7 +17,6 @@ includes: - empty.property.neon - expr.resultUnused.neon - function.alreadyNarrowedType.neon - - function.inner.neon - generator.valueType.neon - isset.offset.neon - isset.property.neon