-
Notifications
You must be signed in to change notification settings - Fork 16
ci: add phpstan #236
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
ci: add phpstan #236
Conversation
| $key, | ||
| is_array( $data ) ? $data : $data->toArray(), | ||
| $this->group_name, | ||
| // phpcs:ignore WordPressVIPMinimum.Performance.LowExpiryCacheTime.CacheTimeUndetermined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure there are ways to satisfy phpcs on this $expire paramter. Or just ignore the warning and move on.
jasonbahl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markkelnar sweet!
I confirmed this is working by pulling the repo locally, running composer install, then running composer phpstan.
I was able to "break" it by going to Results.php and adding a call to a non-existing method: $this->test() and I saw the following output:
Now we can start working toward higher levels!

Add PHP static analyzer to run in github workflow action.
closes #232