diff --git a/src/FqnUtilities.php b/src/FqnUtilities.php index f4b5375..40cb487 100644 --- a/src/FqnUtilities.php +++ b/src/FqnUtilities.php @@ -29,10 +29,10 @@ class FqnUtilities /** * Returns all possible FQNs in a type * - * @param Type $type + * @param Type|null $type * @return string[] */ - public static function getFqnsFromType(Type $type): array + public static function getFqnsFromType($type): array { $fqns = []; if ($type instanceof Types\Object_) { diff --git a/src/TolerantDefinitionResolver.php b/src/TolerantDefinitionResolver.php index 38d2ce7..810eb9f 100644 --- a/src/TolerantDefinitionResolver.php +++ b/src/TolerantDefinitionResolver.php @@ -537,9 +537,9 @@ class TolerantDefinitionResolver * If the type could not be resolved, returns Types\Mixed. * * @param Tolerant\Node\Expression $expr - * @return \phpDocumentor\Reflection\Type + * @return \phpDocumentor\Reflection\Type|null */ - public function resolveExpressionNodeToType($expr): Type + public function resolveExpressionNodeToType($expr) { if ($expr == null || $expr instanceof Tolerant\MissingToken || $expr instanceof Tolerant\SkippedToken) { // TODO some members are null or Missing/SkippedToken