Check namespace + class to see if it exists

main issue : https://github.com/barryvdh/laravel-ide-helper/issues/1273

Adds support for psaml and php-stan specific params and other possible problems.
This commit is contained in:
Steve Moretz
2021-10-27 00:08:57 +03:30
committed by GitHub
parent 144140cd39
commit 7f729dc9a7
@@ -176,7 +176,11 @@ class Collection extends \ArrayObject
if ('' !== $namespace) {
$namespace .= self::OPERATOR_NAMESPACE;
}
return self::OPERATOR_NAMESPACE . $namespace . $type;
$with_name_space = self::OPERATOR_NAMESPACE . $namespace . $type;
if($this->shouldBeAbsolute($with_name_space)){
return $with_name_space;
}
return $type;
}
if (strpos($type_parts[0], '::')) {