Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

[Bug] Fetch property on non object #107

Closed
ddmler opened this issue Sep 8, 2016 · 0 comments · Fixed by #158
Closed

[Bug] Fetch property on non object #107

ddmler opened this issue Sep 8, 2016 · 0 comments · Fixed by #158
Labels

Comments

@ddmler
Copy link
Collaborator

ddmler commented Sep 8, 2016

Running phpsa on phpsa:
It's not possible to fetch property on not object in ./src/Analyzer/Pass/Statement/UnexpectedUseOfThis.php on 89

What's happening: We have an array of objects and loop through it with foreach. On each object we fetch a property. So it actually is an object.

Same here:
./src/Compiler/Expression/BinaryOp/Equal.php on 29
Here it's the $context variable that got injected via the method signature.

@ddmler ddmler added the bug label Sep 26, 2016
ddmler pushed a commit to ddmler/phpsa that referenced this issue Oct 3, 2016
ddmler pushed a commit to ddmler/phpsa that referenced this issue Oct 3, 2016
ddmler pushed a commit to ddmler/phpsa that referenced this issue Oct 3, 2016
@ddmler ddmler mentioned this issue Oct 3, 2016
8 tasks
@ovr ovr closed this as completed in #158 Oct 3, 2016
ovr added a commit that referenced this issue Oct 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant