mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Ignore resources
This commit is contained in:
parent
0f5f4c3029
commit
f86c396115
@ -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,
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user