Skip to content

Commit

Permalink
refactor: Fix phpstan expr.resultUnused
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Jan 8, 2025
1 parent dd08f95 commit 06e47f0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion tests/system/Cookie/CookieTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function testArrayAccessOfCookie(): void
$this->assertSame($cookie['path'], $cookie->getPath());

$this->expectException('InvalidArgumentException');
$cookie['expiry'];
$cookie['expiry']; // @phpstan-ignore expr.resultUnused
}

public function testCannotSetPropertyViaArrayAccess(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Entity/EntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public function testCastTimestampException(): void
$entity = $this->getCastEntity();
$entity->ninth = 'some string';

$entity->ninth;
$entity->ninth; // @phpstan-ignore expr.resultUnused
}

public function testCastArray(): void
Expand Down
13 changes: 0 additions & 13 deletions utils/phpstan-baseline/expr.resultUnused.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 @@ -14,7 +14,6 @@ includes:
- deadCode.unreachable.neon
- empty.notAllowed.neon
- empty.property.neon
- expr.resultUnused.neon
- function.alreadyNarrowedType.neon
- generator.valueType.neon
- isset.offset.neon
Expand Down

0 comments on commit 06e47f0

Please sign in to comment.