Skip to content

Commit 6377548

Browse files
authored
Update PhpStanType.php
1 parent 321fe9e commit 6377548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/src/PhpStanFunctions/PhpStanType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function getSignatureType(?int $errorType = null): string
107107
} elseif (\strpos($type, '[]') !== false) {
108108
$type = 'iterable'; //generics cannot be typehinted and have to be turned into iterable
109109
} elseif (\strpos($type, 'resource') !== false) {
110-
$type = '\resource'; // Compatibilty with php8
110+
$type = ''; // resource cant be typehinted
111111
}
112112
}
113113

0 commit comments

Comments
 (0)