-
Notifications
You must be signed in to change notification settings - Fork 16
add phpstan to ci build #74
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
Conversation
@@ -2,6 +2,8 @@ name: tests | |||
|
|||
on: | |||
push: | |||
branches: | |||
- master |
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.
this prevents us from running every build twice
|
||
return new FulfilledPromise($response); | ||
} | ||
if (is_array($data)) { |
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.
phpstan does not complain, but CacheItem::get is defined to return mixed
. in some situations, the cache might return something that is not an array.
What's in this PR?
Run phpstan on the codebase and fix things that phpstan discovers.
Why?
#73 reported that some cache implementations can have
null
data even if the cache is a hit.