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 2d24f6d commit 19229f9Copy full SHA for 19229f9
Inpsyde/Helpers/FunctionDocBlock.php
@@ -170,11 +170,10 @@ public static function normalizeTypesString(string $typesString): array
170
if (strpos($splitType, '&') !== false) {
171
$splitType = rtrim(ltrim($splitType, '('), ')');
172
} elseif (strpos($splitType, '?') === 0) {
173
- $splitType = substr($splitType, 1);
174
- $hasNull = $hasNull || (($splitType !== '') && ($splitType !== false));
+ $splitType = (string) substr($splitType, 1);
+ $hasNull = $hasNull || ($splitType !== '');
175
}
176
- /** @psalm-suppress DocblockTypeContradiction */
177
- if (($splitType === false) || ($splitType === '')) {
+ if ($splitType === '') {
178
continue;
179
180
if (strtolower($splitType) === 'null') {
0 commit comments