You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using Psalm v6.0.0 (Problem already happening in Psalm v5.2) configured at errorLevel 3, with the psalm/plugin-symfony and weirdan/doctrine-psalm-plugin plugins installed.
Psalm reports several PossiblyUnusedParam as ERRORS despite these parameters being used (seemingly can't be unused).
The documentation recommends prefixing such parameters with _ to ignore this error, which I tried but to no avail.
It resembles a clear false positive to me given the following example :
ERROR: PossiblyUnusedParam
at /home/project/src/Repository/ApiTokenRepository.php:12:49
Param #1 is never referenced in this method (see https://psalm.dev/134)
public function __construct(ManagerRegistry $registry)
ERROR: PossiblyUnusedParam
at /home/project/src/Repository/ApiTokenRepository.php:17:40
Param #1 is never referenced in this method (see https://psalm.dev/134)
public function getApiToken(string $token): ?ApiToken
Hi there !
I'm currently using Psalm v6.0.0 (Problem already happening in Psalm v5.2) configured at
errorLevel
3, with thepsalm/plugin-symfony
andweirdan/doctrine-psalm-plugin
plugins installed.Psalm reports several PossiblyUnusedParam as
ERRORS
despite these parameters being used (seemingly can't be unused).The documentation recommends prefixing such parameters with
_
to ignore this error, which I tried but to no avail.It resembles a clear false positive to me given the following example :
Thank you for your insight !
The text was updated successfully, but these errors were encountered: