-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
According to https://docs.phpdoc.org/3.0/guide/references/phpdoc/tags/param.html, the type may be omitted. This is especially useful in PHP 8 applications, which can almost fully typehint all arguments. The type in the PHPdoc in this case is redundant and may only lead to out-of-sync types.
PHPstorm and Psalm already appear to support this. However, this is not yet the case with PHPstan: https://phpstan.org/r/691a2424-e087-45a0-a9ce-774a57f887ec
(fyi, we're about to remove the types in Symfony, which is why I checked support in the popular static analysis libraries)
Metadata
Metadata
Assignees
Labels
No labels