Skip to content

Commit

Permalink
🧑‍💻 Remove validation deprecation notice
Browse files Browse the repository at this point in the history
Before: using the validation constraint as annotation were leading to a
trigger of a deprecation notice concerning the "format" argument
(besides it was actually working properly)

After: no more deprecation notice, learn more on issue #113
  • Loading branch information
Nek- committed Jul 1, 2022
1 parent 19c37e4 commit 9fb9904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Name of the catalan translation file is now accurate #116
- Remove deprecation notice when using annotations

## [3.6.3] - 2022-06-14

Expand Down
1 change: 1 addition & 0 deletions src/Validator/Constraints/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Phone number constraint.
*
* @Annotation
* @NamedArgumentConstructor
*/
#[\Attribute(\Attribute::TARGET_PROPERTY)]
class PhoneNumber extends Constraint
Expand Down

0 comments on commit 9fb9904

Please sign in to comment.