Skip to content

Commit dbfc9f7

Browse files
committed
remove dead code
Call to function is_array() with array<int, string>&nonEmpty will always evaluate to true.
1 parent 7fefa4e commit dbfc9f7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Type/Php/StrSplitFunctionReturnTypeExtension.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ public function getTypeFromFunctionCall(FunctionReflection $functionReflection,
101101
$items = isset($encoding)
102102
? mb_str_split($stringValue, $splitLength, $encoding)
103103
: str_split($stringValue, $splitLength);
104-
if (!is_array($items)) {
105-
throw new \PHPStan\ShouldNotHappenException();
106-
}
107104

108105
return self::createConstantArrayFrom($items, $scope);
109106
}

0 commit comments

Comments
 (0)