-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Last PHP 8.1 chores #2560
Last PHP 8.1 chores #2560
Conversation
@@ -14,16 +14,12 @@ | |||
*/ | |||
class CollWithPHP81Types extends ArrayCollection | |||
{ | |||
/** | |||
* @param Collection<TKey, TElement>&ArrayCollection<TKey, TElement> $param |
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.
PHPCS somehow was producing [..]TElement> &ArrayCol[..]
(note the space) and I have no willpower to dig into why. Everyone's happy with no PHPDoc ;)
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.
Maybe prefixing with @psalm-
like @psalm-param
and @psalm-return
would make PHPCS do not fail, anyway I don't know why static analysis is not complaining 🤔
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 think it could be because they got better over time and now they can infer same thing from class' @template-extends
and return types? :)
@@ -14,16 +14,12 @@ | |||
*/ | |||
class CollWithPHP81Types extends ArrayCollection | |||
{ | |||
/** | |||
* @param Collection<TKey, TElement>&ArrayCollection<TKey, TElement> $param |
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.
Maybe prefixing with @psalm-
like @psalm-param
and @psalm-return
would make PHPCS do not fail, anyway I don't know why static analysis is not complaining 🤔
I think these are the last leftovers saying we need to do something once we're rocking PHP 8.1 :)