mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: Fix phpstan class.notFound (#9376)
This commit is contained in:
parent
08540f7688
commit
cd27b6aa7f
@ -400,7 +400,7 @@ final class CommonFunctionsTest extends CIUnitTestCase
|
||||
|
||||
public function testModelNotExists(): void
|
||||
{
|
||||
$this->assertNull(model(UnexsistenceClass::class));
|
||||
$this->assertNull(model(UnexsistenceClass::class)); // @phpstan-ignore class.notFound
|
||||
}
|
||||
|
||||
public function testModelExistsBasename(): void
|
||||
|
@ -51,7 +51,7 @@ final class ControllerTestTraitTest extends CIUnitTestCase
|
||||
$logger = new Logger(new LoggerConfig());
|
||||
$this->withUri('http://example.com')
|
||||
->withLogger($logger)
|
||||
->controller(NeverHeardOfIt::class)
|
||||
->controller(NeverHeardOfIt::class) // @phpstan-ignore class.notFound
|
||||
->execute('index');
|
||||
}
|
||||
|
||||
|
@ -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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user