Skip to content

Commit 09dd7fc

Browse files
committed
refactor: Fix phpstan expr.resultUnused
1 parent e475fd8 commit 09dd7fc

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

tests/system/Cookie/CookieTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public function testArrayAccessOfCookie(): void
303303
$this->assertSame($cookie['path'], $cookie->getPath());
304304

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

309309
public function testCannotSetPropertyViaArrayAccess(): void

tests/system/Entity/EntityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ public function testCastTimestampException(): void
500500
$entity = $this->getCastEntity();
501501
$entity->ninth = 'some string';
502502

503-
$entity->ninth;
503+
$entity->ninth; // @phpstan-ignore expr.resultUnused
504504
}
505505

506506
public function testCastArray(): void

utils/phpstan-baseline/expr.resultUnused.neon

Lines changed: 0 additions & 13 deletions
This file was deleted.

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ includes:
1414
- deadCode.unreachable.neon
1515
- empty.notAllowed.neon
1616
- empty.property.neon
17-
- expr.resultUnused.neon
1817
- function.alreadyNarrowedType.neon
1918
- generator.valueType.neon
2019
- isset.offset.neon

0 commit comments

Comments
 (0)