From ab687e8696bc4ae007b2fb146e66c179d2a640b8 Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Fri, 3 Jan 2025 22:13:08 +0300 Subject: [PATCH] refactor: phpstan function.notFound --- tests/system/CommonHelperTest.php | 2 +- utils/phpstan-baseline/function.notFound.neon | 8 -------- utils/phpstan-baseline/loader.neon | 1 - 3 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 utils/phpstan-baseline/function.notFound.neon diff --git a/tests/system/CommonHelperTest.php b/tests/system/CommonHelperTest.php index 8a41f7972a9e..04e6c9eebb1f 100644 --- a/tests/system/CommonHelperTest.php +++ b/tests/system/CommonHelperTest.php @@ -148,7 +148,7 @@ function foo_bar_baz(): string } } - $this->assertSame($this->dummyHelpers[0], foo_bar_baz()); + $this->assertSame($this->dummyHelpers[0], foo_bar_baz()); // @phpstan-ignore-line function.notFound } public function testNamespacedHelperNotFound(): void diff --git a/utils/phpstan-baseline/function.notFound.neon b/utils/phpstan-baseline/function.notFound.neon deleted file mode 100644 index 8cc185754011..000000000000 --- a/utils/phpstan-baseline/function.notFound.neon +++ /dev/null @@ -1,8 +0,0 @@ -# total 1 error - -parameters: - ignoreErrors: - - - message: '#^Function foo_bar_baz not found\.$#' - count: 1 - path: ../../tests/system/CommonHelperTest.php diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index 789d5ef7e1ef..b81067460d0e 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -18,7 +18,6 @@ includes: - expr.resultUnused.neon - function.alreadyNarrowedType.neon - function.inner.neon - - function.notFound.neon - generator.returnType.neon - generator.valueType.neon - greaterOrEqual.invalid.neon