Skip to content

Commit

Permalink
refactor: Fix phpstan class.notFound (#9376)
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 authored Jan 6, 2025
1 parent 08540f7 commit cd27b6a
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Test/ControllerTestTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
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
Expand Up @@ -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
Expand Down

0 comments on commit cd27b6a

Please sign in to comment.