-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Some phpstan issues #2393
Some phpstan issues #2393
Conversation
An example:
Some of those problems are a little more complex and I could not find how to solve them easily:
Don't want to be sound negative ;) just some thoughts |
I really like the idea of utilizing |
Looks good to me. So for the config:
For the bugs:
To go forward, I would like to know if it's possible to run coverage. I saw that c3 is not installed. I can enable but I'd like to be sure it does not end in public directory. Let me know if you already have already something (codecov...) ? Will feel more confident about what I can work on ;) From there, I can help with:
and with PHP7.3
The next issues will need to be tackled in separate P/R. For that I suggest to merge this one in 1.6 as soon as you feel good with it. (to not be trapped in rebase nightmares) |
FYI, current report with PHP7.3
|
Also this one is a little tricky:
This one is a definitely a bug... better to make a separate P/R |
I think for now I'll wait for merge or comments ;) Thanks a lot for your work. |
This is looking really good so far! I'm going to test it a little today. |
Level 0 has only a single error left, @rhukster can take a look into it. :) |
Level 1 issues sorted! |
I see you're super motivated ;) Nice ! |
Hey Grav Team
Would you be interested in adding phpstan ?
Here's a little example of setup and few fixes.
If you're not used to phpstan, have a look to the
composer.json
script section or runFor now, I've just setup level 0 (it goes to 7, but there will be a lot of alerts then). I would be happy to help to fix some alerts... and help increase the level.
Let me know.