Skip to content

Commit

Permalink
Fix psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Apr 2, 2024
1 parent 2a56b03 commit 3c52796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InMemoryCachedParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
final class InMemoryCachedParser implements ParserInterface
{
/**
* @var array<non-empty-string, TypeStatement|null>
* @var array<non-empty-string, TypeStatement>
*/
private array $types = [];

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

Expand Down

0 comments on commit 3c52796

Please sign in to comment.