1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Ignore resources

This commit is contained in:
Matthew Brown 2016-09-01 20:27:16 -04:00
parent 0f5f4c3029
commit f86c396115
2 changed files with 2 additions and 1 deletions

View File

@ -128,6 +128,7 @@ abstract class FunctionLikeChecker implements StatementsSource
foreach ($param_type->types as $atomic_type) {
if ($atomic_type->isObjectType()
&& !$atomic_type->isObject()
&& ClassLikeChecker::checkAbsoluteClassOrInterface(
$atomic_type->value,
$this->file_name,

View File

@ -432,7 +432,7 @@ abstract class Type
public function isObjectType()
{
return $this->isObject() || (!$this->isScalarType() && !$this->isCallable() && !$this->isArray() && !$this->isMixed() && !$this->isNull());
return $this->isObject() || (!$this->isScalarType() && !$this->isCallable() && !$this->isArray() && !$this->isMixed() && !$this->isNull() && !$this->isResource());
}
/**