Skip to content

Commit 3c52796

Browse files
committed
Fix psalm errors
1 parent 2a56b03 commit 3c52796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/InMemoryCachedParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
final class InMemoryCachedParser implements ParserInterface
1515
{
1616
/**
17-
* @var array<non-empty-string, TypeStatement|null>
17+
* @var array<non-empty-string, TypeStatement>
1818
*/
1919
private array $types = [];
2020

@@ -28,7 +28,7 @@ public function __construct(
2828
* @throws SourceExceptionInterface
2929
* @throws \Throwable
3030
*/
31-
public function parse(#[Language('PHP')] mixed $source): ?TypeStatement
31+
public function parse(#[Language('PHP')] mixed $source): TypeStatement
3232
{
3333
$instance = $this->sources->create($source);
3434

0 commit comments

Comments
 (0)