Repository navigation
Give a foreach over an IteratorAggregate the taints of what getIterator() returns - #14687
Merged
Merged
Conversation
Contributor
✅ Performance: unchanged · Types: unchanged · Taint: +61 −1
How to read this table
✅ laravel: issues +34 −1Memory 1 769 → 1 771 MB (+0.1 %) · Wall 100.1 → 102.1 s (+1.9 %) Taint 682 → 715 (+34 −1)
Added (34)
Removed (1)
✅ symfony: issues +4 −0Memory 3 629 → 3 619 MB (−0.3 %) · Wall 167.9 → 165.3 s (−1.5 %) Taint 1 572 → 1 576 (+4 −0)
Added (4)
✅ tempest: issues +23 −0Memory 896 → 898 MB (+0.3 %) · Wall 36.1 → 36.3 s (+0.5 %) Taint 252 → 275 (+23 −0)
Added (23)
head 2bfad0e · base be56c19 (merge-base) · workflow run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A
foreachover anIteratorAggregateonly got the taint of the object itself, not of the iterator itsgetIterator()returns, so the sources and flows ofgetIterator()(and the taint of its analysed body) were lost, while an explicit->getIterator()kept them. The loop now gets what that iterator gives, following anIteratorAggregatereturned in turn.This is what Symfony's request bags (
foreach ($request->query as $value)) need in psalm-plugin-symfony.