phpstan-wordpress icon indicating copy to clipboard operation
phpstan-wordpress copied to clipboard

Switch to stubFiles

Open johnbillion opened this issue 3 years ago • 4 comments

This doesn't work, but I don't know why.

Ref: https://phpstan.org/user-guide/stub-files

johnbillion avatar Aug 31 '22 17:08 johnbillion

I don't know why

Good for you! This is a very dirty subject. Source of bad feelings.

You are better off closing this PR.

szepeviktor avatar Aug 31 '22 18:08 szepeviktor

Actually my brain's self-defense kicked in and I forgot the technical details.

Good for me too! :) I do not want to participate in a Mission Impossible.

szepeviktor avatar Aug 31 '22 18:08 szepeviktor

Maybe something similar as https://github.com/szepeviktor/phpstan-wordpress/issues/99#issuecomment-1112832557

Not sure if it explains the errors here though. Also: looks like you referenced mission impossible there too haha

herndlm avatar Aug 31 '22 20:08 herndlm

Or could it be the discovering symbols related part from what John linked? Feels related to what Viktor mentioned with autoloading too.

Using a debugger or messing around with phpstan-src should tell what errors are actually behind the error type.

herndlm avatar Aug 31 '22 20:08 herndlm