Skip to content

Commit 431dca8

Browse files
committed
Update TypeSpecifier.php
1 parent f38718a commit 431dca8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Analyser/TypeSpecifier.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1954,8 +1954,9 @@ private function createSpecifierContextReturnType(
19541954
TypeSpecifierContext $context,
19551955
): TypeSpecifierContext
19561956
{
1957-
//if ($context->true()) {
1957+
if (!$context->null()) {
19581958
return TypeSpecifierContext::createTrue($contextReturnType);
1959+
}
19591960
//} elseif ($context->false()) {
19601961
// return TypeSpecifierContext::createFalse($contextReturnType);
19611962
//}

0 commit comments

Comments
 (0)