Skip to content

Conversation

@sirbrillig
Copy link
Owner

When a foreach loop variable (eg: $foo in foreach($data as $foo)) is a reference (eg: foreach($data as &$foo)), then any write to that variable should also count as a read, since it has the side-effect of modifying the original data (eg: $data in foreach($data as &$foo)).

Fixes part of #219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants