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 07205a1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 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
2 changes: 1 addition & 1 deletion tests/system/DebugTraceableTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class DebugTraceableTraitTest extends CIUnitTestCase
{
public function testFactoryInstanceReturnsWhereItIsRaised(): void
{
$e1 = new FrameworkException('Hello.');
$e1 = FrameworkException::forInvalidFile('./file.txt');
$e2 = FrameworkException::forEnabledZlibOutputCompression();

$this->assertContainsEquals(DebugTraceableTrait::class, class_uses(FrameworkException::class));
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 07205a1

Please sign in to comment.