-
-
Notifications
You must be signed in to change notification settings - Fork 137
Phpstan level 6 #307
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
base: master
Are you sure you want to change the base?
Phpstan level 6 #307
Conversation
@@ -51,9 +61,7 @@ public function delete(string ...$comments): self | |||
foreach ($comments as $comment) { | |||
$key = array_search($comment, $this->comments); | |||
|
|||
if (is_int($key)) { |
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.
My previous question was more related to this change.
As far as I understand, should Comments::$comments
be an array of integer keys only? If that is correct, this condition would be unnecessary :)
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.
$key
can be false, if the comment wasn't found.
Depends on #306