Skip to content

Commit 9145a5c

Browse files
committed
refactor: Fix phpstan class.notFound
1 parent 33110c5 commit 9145a5c

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

tests/system/CommonFunctionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public function testCSRFMeta(): void
400400

401401
public function testModelNotExists(): void
402402
{
403-
$this->assertNull(model(UnexsistenceClass::class));
403+
$this->assertNull(model(UnexsistenceClass::class)); // @phpstan-ignore class.notFound
404404
}
405405

406406
public function testModelExistsBasename(): void

tests/system/Test/ControllerTestTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testBadController(): void
5151
$logger = new Logger(new LoggerConfig());
5252
$this->withUri('http://example.com')
5353
->withLogger($logger)
54-
->controller(NeverHeardOfIt::class)
54+
->controller(NeverHeardOfIt::class) // @phpstan-ignore class.notFound
5555
->execute('index');
5656
}
5757

utils/phpstan-baseline/class.notFound.neon

Lines changed: 0 additions & 13 deletions
This file was deleted.

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ includes:
22
- argument.type.neon
33
- assign.propertyType.neon
44
- booleanAnd.rightAlwaysTrue.neon
5-
- class.notFound.neon
65
- codeigniter.cacheHandlerInstance.neon
76
- codeigniter.configArgumentInstanceof.neon
87
- codeigniter.frameworkExceptionInstance.neon

0 commit comments

Comments
 (0)