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
------ -----------------------------------------------------------------------------------------
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.
The text was updated successfully, but these errors were encountered:
When phpstan-prestashop analyzes https://github.com/PrestaShop/PrestaShop/blob/develop/src/Core/ConstraintValidator/NoTagsValidator.php
It is output
The issue is that
$value
is of typemixed
. PHPStan can acknowledge this type if PHPDoc is usedBut the extension phpstan-prestashop does not acknowledge the PHPDoc.
The text was updated successfully, but these errors were encountered: