Skip to content

Commit

Permalink
refactor: Fix phpstan codeigniter.frameworkExceptionInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Jan 9, 2025
1 parent 42a00ff commit df17203
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion tests/system/Debug/ExceptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function testDetermineCodes(): void
$this->assertSame([500, EXIT_ERROR], $determineCodes(new RuntimeException('There.', 404)));
$this->assertSame([500, EXIT_ERROR], $determineCodes(new RuntimeException('This.', 167)));
$this->assertSame([500, EXIT_CONFIG], $determineCodes(new ConfigException('This.')));
$this->assertSame([500, EXIT_CONFIG], $determineCodes(new CastException('This.')));
$this->assertSame([500, EXIT_CONFIG], $determineCodes(CastException::forInvalidInterface('This.')));
$this->assertSame([500, EXIT_DATABASE], $determineCodes(new DatabaseException('This.')));
}

Expand Down
1 change: 1 addition & 0 deletions tests/system/DebugTraceableTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ final class DebugTraceableTraitTest extends CIUnitTestCase
{
public function testFactoryInstanceReturnsWhereItIsRaised(): void
{
/** @phpstan-ignore codeigniter.frameworkExceptionInstance */
$e1 = new FrameworkException('Hello.');
$e2 = FrameworkException::forEnabledZlibOutputCompression();

Expand Down
13 changes: 0 additions & 13 deletions utils/phpstan-baseline/codeigniter.frameworkExceptionInstance.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 @@ -4,7 +4,6 @@ includes:
- booleanAnd.rightAlwaysTrue.neon
- codeigniter.cacheHandlerInstance.neon
- codeigniter.configArgumentInstanceof.neon
- codeigniter.frameworkExceptionInstance.neon
- codeigniter.getReassignArray.neon
- codeigniter.modelArgumentInstanceof.neon
- codeigniter.modelArgumentType.neon
Expand Down

0 comments on commit df17203

Please sign in to comment.