Skip to content

Commit

Permalink
Resolve phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojdylak committed Nov 21, 2023
1 parent cf323fa commit 3dec414
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
Expand Up @@ -22,6 +22,7 @@
/** @experimental */
final class PromotionActionGroupValidator extends ConstraintValidator
{
/** @param PromotionActionInterface $value */
public function validate($value, Constraint $constraint): void
{
if (!$constraint instanceof PromotionActionGroup) {
Expand Down
Expand Up @@ -22,6 +22,7 @@
/** @experimental */
final class PromotionRuleGroupValidator extends ConstraintValidator
{
/** @param PromotionRuleInterface $value */
public function validate($value, Constraint $constraint): void
{
if (!$constraint instanceof PromotionRuleGroup) {
Expand Down
Expand Up @@ -30,6 +30,7 @@ public function __construct(private ChannelRepositoryInterface $channelRepositor
{
}

/** @param null|array<array-key, mixed> $value */
public function validate($value, Constraint $constraint): void
{
if (!$constraint instanceof ChannelCodeCollection) {
Expand Down
Expand Up @@ -28,6 +28,7 @@ public function __construct(private RepositoryInterface $countryRepository)
{
}

/** @param string $value */
public function validate($value, Constraint $constraint): void
{
if (!$constraint instanceof CountryCodeExists) {
Expand Down
Expand Up @@ -28,6 +28,7 @@ public function __construct(private CustomerGroupRepositoryInterface $customerGr
{
}

/** @param string $value */
public function validate($value, Constraint $constraint): void
{
if (!$constraint instanceof CustomerGroupCodeExists) {
Expand Down
Expand Up @@ -28,6 +28,7 @@ public function __construct(private ProductRepositoryInterface $productRepositor
{
}

/** @param string $value */
public function validate($value, Constraint $constraint): void
{
if (!$constraint instanceof ProductCodeExists) {
Expand Down
Expand Up @@ -28,6 +28,7 @@ public function __construct(private TaxonRepositoryInterface $taxonRepository)
{
}

/** @param string $value */
public function validate($value, Constraint $constraint): void
{
if (!$constraint instanceof TaxonCodeExists) {
Expand Down
Expand Up @@ -29,6 +29,7 @@ public function __construct(private array $actionTypes)
{
}

/** @param PromotionActionInterface $value */
public function validate($value, Constraint $constraint): void
{
if (!$constraint instanceof PromotionAction) {
Expand Down
Expand Up @@ -29,6 +29,7 @@ public function __construct(private array $ruleTypes)
{
}

/** @param PromotionRuleInterface $value */
public function validate($value, Constraint $constraint): void
{
if (!$constraint instanceof PromotionRule) {
Expand Down

0 comments on commit 3dec414

Please sign in to comment.