We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a56b03 commit 3c52796Copy full SHA for 3c52796
src/InMemoryCachedParser.php
@@ -14,7 +14,7 @@
14
final class InMemoryCachedParser implements ParserInterface
15
{
16
/**
17
- * @var array<non-empty-string, TypeStatement|null>
+ * @var array<non-empty-string, TypeStatement>
18
*/
19
private array $types = [];
20
@@ -28,7 +28,7 @@ public function __construct(
28
* @throws SourceExceptionInterface
29
* @throws \Throwable
30
31
- public function parse(#[Language('PHP')] mixed $source): ?TypeStatement
+ public function parse(#[Language('PHP')] mixed $source): TypeStatement
32
33
$instance = $this->sources->create($source);
34
0 commit comments