From 637754836d60f5d3776af493196114ab04340e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane?= Date: Thu, 9 Jul 2020 09:05:49 +0200 Subject: [PATCH] Update PhpStanType.php --- generator/src/PhpStanFunctions/PhpStanType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/src/PhpStanFunctions/PhpStanType.php b/generator/src/PhpStanFunctions/PhpStanType.php index a7ffa0ab..7d199ee8 100644 --- a/generator/src/PhpStanFunctions/PhpStanType.php +++ b/generator/src/PhpStanFunctions/PhpStanType.php @@ -107,7 +107,7 @@ public function getSignatureType(?int $errorType = null): string } elseif (\strpos($type, '[]') !== false) { $type = 'iterable'; //generics cannot be typehinted and have to be turned into iterable } elseif (\strpos($type, 'resource') !== false) { - $type = '\resource'; // Compatibilty with php8 + $type = ''; // resource cant be typehinted } }