-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPStan configuration treats files relative to itself #3
Comments
I see you want a central "default configuration" but an extension cannot do that because configuration is project-level stuff. For example you can have a file in this repo called includes:
- vendor/figuren-theater/phpstan/phpstan-defaults.neon But this is not the task of an extension. Paths do not work in included configuration files! |
One more thing. PHPStan does not look at the value of constants, only their type. BTW Storing values in constants smells like PHP 4 :) ... you could use an object in 2023 and archive this repo. |
Dear @szepeviktor thank you very, very much for opening this issue and just coming in contact. I really appreciate it, because I'm often not brave enough to just that.
Thank you! for creating and publicly sharing so many great ideas within your repositories! You probably understood better what I wanted to approach than I did and do.
Exactly that. I wanted to prepare some future-proof and well-known guiding for my cowboycoding.
🙏 Yes & thank you. I learned this already in the last couple of hours . I'm going to add I will open up some more Issues to bring your enlightments to life within my code. |
P.S. Having you @szepeviktor here as a guest and contributor is a stunning moment for me and a valid proof that it is great to be part of the open source community. |
Hello! 👋🏻 Thank you for following.
This goes into an extension.
Like here https://github.com/szepeviktor/phpstan-wordpress/blob/6eccde1161f46f95aa1e3fe6cf1eb46efc557344/extension.neon#L117
Other settings go into projects using this extension.
The text was updated successfully, but these errors were encountered: