Skip to content

Commit ff4d0d9

Browse files
Add missing expressions for @var-psalm
1 parent a167010 commit ff4d0d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/OptionalTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function it_should_throw_exception_when_empty(): void
2626
/** @test */
2727
public function it_should_return_stored_value(): void
2828
{
29-
/** @psalm-var Optional<int> */
29+
/** @psalm-var Optional<int> $optional */
3030
$optional = Optional::from(1234);
3131

3232
$this->assertSame(1234, $optional->getOrThrow());
@@ -44,7 +44,7 @@ public function it_should_throw_when_null_passed(): void
4444
/** @test */
4545
public function it_should_return_stored_value_when_not_empty(): void
4646
{
47-
/** @psalm-var Optional<string> */
47+
/** @psalm-var Optional<string> $optional */
4848
$optional = Optional::from('Foo');
4949

5050
$this->assertSame('Foo', $optional->getOrThrow());

0 commit comments

Comments
 (0)