Skip to content

Clearly-defined "undefined property" #4330

Answered by spud
spud asked this question in Support
Discussion options

You must be logged in to vote

Interestingly, I cannot reproduce it on the site. I'm running PHPStan (0.12.64) against several directories of files within my codebase, and bootstrapping a bunch of stuff, so the errors between my execution and those on phpstan.org are quite different. The particular error that concerns me does not appear on phpstan.org.

I have two bootstrap files and 7 directories in my config path (phpstan.neon). If I remove those, I get 70+ errors, similar to phpstan.org, and I do not get the undefined property error.

Somehow, the error is the result of parsing more than just the single file.

I can make the error disappear in one of two ways:

  1. Remove the conditional if wrapper around the line containi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ondrejmirtes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants