Skip to content

Commit

Permalink
Add types to resolve SA issue with Symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Feb 4, 2024
1 parent 1883c60 commit 5b9546c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Validator/Constraints/MoneyEqualTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class MoneyEqualTo extends AbstractMoneyComparison
];

/**
* @var array<string, string>
*
* @deprecated to be removed when dropping support for Symfony 6.1 and older
*/
protected static $errorNames = self::ERROR_NAMES;
Expand Down
2 changes: 2 additions & 0 deletions src/Validator/Constraints/MoneyGreaterThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class MoneyGreaterThan extends AbstractMoneyComparison
];

/**
* @var array<string, string>
*
* @deprecated to be removed when dropping support for Symfony 6.1 and older
*/
protected static $errorNames = self::ERROR_NAMES;
Expand Down
2 changes: 2 additions & 0 deletions src/Validator/Constraints/MoneyGreaterThanOrEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class MoneyGreaterThanOrEqual extends AbstractMoneyComparison
];

/**
* @var array<string, string>
*
* @deprecated to be removed when dropping support for Symfony 6.1 and older
*/
protected static $errorNames = self::ERROR_NAMES;
Expand Down
2 changes: 2 additions & 0 deletions src/Validator/Constraints/MoneyLessThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class MoneyLessThan extends AbstractMoneyComparison
];

/**
* @var array<string, string>
*
* @deprecated to be removed when dropping support for Symfony 6.1 and older
*/
protected static $errorNames = self::ERROR_NAMES;
Expand Down
2 changes: 2 additions & 0 deletions src/Validator/Constraints/MoneyLessThanOrEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class MoneyLessThanOrEqual extends AbstractMoneyComparison
];

/**
* @var array<string, string>
*
* @deprecated to be removed when dropping support for Symfony 6.1 and older
*/
protected static $errorNames = self::ERROR_NAMES;
Expand Down
2 changes: 2 additions & 0 deletions src/Validator/Constraints/MoneyNotEqualTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class MoneyNotEqualTo extends AbstractMoneyComparison
];

/**
* @var array<string, string>
*
* @deprecated to be removed when dropping support for Symfony 6.1 and older
*/
protected static $errorNames = self::ERROR_NAMES;
Expand Down

0 comments on commit 5b9546c

Please sign in to comment.