Skip to content

Commit 3eb8a09

Browse files
authored
refactor: Fix phpstan expr.resultUnused (#9385)
1 parent dd08f95 commit 3eb8a09

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

tests/system/Cookie/CookieTest.php

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public function testCastTimestampException(): void
479479
$entity = $this->getCastEntity();
480480
$entity->ninth = 'some string';
481481

482-
$entity->ninth;
482+
$entity->ninth; // @phpstan-ignore expr.resultUnused
483483
}
484484

485485
public function testCastArray(): void

utils/phpstan-baseline/expr.resultUnused.neon

-13
This file was deleted.

utils/phpstan-baseline/loader.neon

-1
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)