diff --git a/tests/system/CommonFunctionsTest.php b/tests/system/CommonFunctionsTest.php index d708b193f56b..deef63d79821 100644 --- a/tests/system/CommonFunctionsTest.php +++ b/tests/system/CommonFunctionsTest.php @@ -400,7 +400,7 @@ public function testCSRFMeta(): void public function testModelNotExists(): void { - $this->assertNull(model(UnexsistenceClass::class)); + $this->assertNull(model(UnexsistenceClass::class)); // @phpstan-ignore class.notFound } public function testModelExistsBasename(): void diff --git a/tests/system/Test/ControllerTestTraitTest.php b/tests/system/Test/ControllerTestTraitTest.php index c6c8ec32179f..ea323f933abc 100644 --- a/tests/system/Test/ControllerTestTraitTest.php +++ b/tests/system/Test/ControllerTestTraitTest.php @@ -51,7 +51,7 @@ public function testBadController(): void $logger = new Logger(new LoggerConfig()); $this->withUri('http://example.com') ->withLogger($logger) - ->controller(NeverHeardOfIt::class) + ->controller(NeverHeardOfIt::class) // @phpstan-ignore class.notFound ->execute('index'); } diff --git a/utils/phpstan-baseline/class.notFound.neon b/utils/phpstan-baseline/class.notFound.neon deleted file mode 100644 index 52bbdf2d632b..000000000000 --- a/utils/phpstan-baseline/class.notFound.neon +++ /dev/null @@ -1,13 +0,0 @@ -# total 2 errors - -parameters: - ignoreErrors: - - - message: '#^Class CodeIgniter\\UnexsistenceClass not found\.$#' - count: 1 - path: ../../tests/system/CommonFunctionsTest.php - - - - message: '#^Class App\\Controllers\\NeverHeardOfIt not found\.$#' - count: 1 - path: ../../tests/system/Test/ControllerTestTraitTest.php diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index 566c272bd3bb..feab1b53df83 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -2,7 +2,6 @@ includes: - argument.type.neon - assign.propertyType.neon - booleanAnd.rightAlwaysTrue.neon - - class.notFound.neon - codeigniter.cacheHandlerInstance.neon - codeigniter.configArgumentInstanceof.neon - codeigniter.frameworkExceptionInstance.neon