mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Don’t warn about traversable objects
This commit is contained in:
parent
a99135c4d0
commit
4ff9ec2853
@ -198,6 +198,12 @@ class ForeachChecker
|
||||
} else {
|
||||
$value_type = Type::getMixed();
|
||||
}
|
||||
} elseif (ClassChecker::classImplements(
|
||||
$project_checker,
|
||||
$iterator_type->value,
|
||||
'Traversable'
|
||||
)) {
|
||||
// @todo try and get value type
|
||||
} else {
|
||||
if (IssueBuffer::accepts(
|
||||
new RawObjectIteration(
|
||||
|
Loading…
Reference in New Issue
Block a user