-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
When phpstan-prestashop analyzes https://github.com/PrestaShop/PrestaShop/blob/develop/src/Core/ConstraintValidator/NoTagsValidator.php
It is output
------ -----------------------------------------------------------------------------------------
Line src/Core/ConstraintValidator/NoTagsValidator.php
------ -----------------------------------------------------------------------------------------
45 Every parameter of function validate should be type hinted (untyped parameters: value).
------ -----------------------------------------------------------------------------------------
The issue is that $value is of type mixed. PHPStan can acknowledge this type if PHPDoc is used
/**
* @param mixed $value
* @param Constraint $constraint
*/
public function validate($value, Constraint $constraint): void
But the extension phpstan-prestashop does not acknowledge the PHPDoc.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels