Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Fix phpstan class.notFound
Browse files Browse the repository at this point in the history
neznaika0 committed Jan 5, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 61741c5 commit e397292
Showing 4 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion tests/system/CommonFunctionsTest.php
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/system/Test/ControllerTestTraitTest.php
Original file line number Diff line number Diff line change
@@ -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');
}

13 changes: 0 additions & 13 deletions utils/phpstan-baseline/class.notFound.neon

This file was deleted.

1 change: 0 additions & 1 deletion utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e397292

Please sign in to comment.