Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yiisoft/validator of version ^2.0 support #24

Merged
merged 5 commits into from
Aug 6, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 2, 2024

Updates the requirements on yiisoft/validator to permit the latest version.

Release notes

Sourced from yiisoft/validator's releases.

Version 2.0.0

  • New #615: Add the Each::PARAMETER_EACH_KEY validation context parameter that available during Each rule handling and containing the current key (@​dood-)
  • New #630, #718: Include attribute name in error messages when it's present (@​dood-, @​arogachev)
  • New #633: Add PHP attribute that sets property label for usage in error messages (@​dood-)
  • New #734: Add InEnum rule (@​samdark)
  • Chg #583: Change "attribute" to "property" in class/trait/method/variable/placeholder names (@​vjik)
  • Chg #613: Change type of $escape argument in Error::getValuePath() from bool|string|null to string|null (@​arogachev)
  • Chg #623: List translated attributes in error message for OneOf and AtLeast rules (@​arogachev)
  • Chg #624: Fix meaning of error message in OneOf rule (@​arogachev)
  • Chg #625: Improve meaning and use pluralization in error message for OneOf and AtLeast rules (@​arogachev)
  • Chg #626: Disallow $min greater than amount of $attributes in AtLeast configuration (@​arogachev)
  • Chg #634: Move getName() method from RuleInterface to RuleWithOptionsInterface (@​arogachev)
  • Chg #634: Rename RuleWithOptionsInterface to DumpedRuleInterface (@​arogachev)
  • Chg #634: Use FQCN as a name for built-in rules during export with RulesDumper (@​arogachev)
  • Chg #634: Use FQCN as a name for rules not implementing DumpedRuleInterface during export with RulesDumper (@​arogachev)
  • Chg #660: Change type of $skipOnEmpty argument in rules' constructors from mixed to bool|callable|null (@​arogachev)
  • Chg #679: Change type of $rule argument in RuleHandlerInterface::validate() from object to RuleInterface (@​arogachev)
  • Chg #694: Rename AtLeast rule to FilledAtLeast and OneOf rule to FilledOnlyOneOf (@​arogachev)
  • Enh #492: Add type to error messages related with incorrect input (@​arogachev)
  • Enh #622: Use json_validate() built-in PHP function in JsonHandler if code is run with PHP 8.3 (@​arogachev)
  • Enh #636: Improve psalm annotations in Result class (@​vjik)
  • Enh #637: Add German translation (@​took)
  • Enh #639: Simplify validation of JSON in JsonHandler using built-in PHP functions for PHP versions below 8.3 (@​arogachev)
  • Enh #648: Raise the minimum version of PHP to 8.1 (@​pamparam83)
  • Enh #726: Refactor Result::add(): took array_merge() out of the foreach (@​lav45)
  • Enh #733: Make parameter $rules in RulesNormalizer::normalize() optional (@​vjik)
  • Enh #735: Make Json::$message a bit more clear (@​arogachev)
  • Bug #632: Fix property name usage in error messages of rules in Nested rule (@​vjik)
  • Bug #733: Rules provided by data object PHP attributes were not used in RulesNormalizer::normalize() (@​vjik)
  • Bug #736: Fix wrong value for type parameter for Each::$incorrectInputKeyMessage (@​arogachev)
Changelog

Sourced from yiisoft/validator's changelog.

2.0.0 August 02, 2024

  • New #615: Add the Each::PARAMETER_EACH_KEY validation context parameter that available during Each rule handling and containing the current key (@​dood-)
  • New #630, #718: Include attribute name in error messages when it's present (@​dood-, @​arogachev)
  • New #633: Add PHP attribute that sets property label for usage in error messages (@​dood-)
  • New #734: Add InEnum rule (@​samdark)
  • Chg #583: Change "attribute" to "property" in class/trait/method/variable/placeholder names (@​vjik)
  • Chg #613: Change type of $escape argument in Error::getValuePath() from bool|string|null to string|null (@​arogachev)
  • Chg #623: List translated attributes in error message for OneOf and AtLeast rules (@​arogachev)
  • Chg #624: Fix meaning of error message in OneOf rule (@​arogachev)
  • Chg #625: Improve meaning and use pluralization in error message for OneOf and AtLeast rules (@​arogachev)
  • Chg #626: Disallow $min greater than amount of $attributes in AtLeast configuration (@​arogachev)
  • Chg #634: Move getName() method from RuleInterface to RuleWithOptionsInterface (@​arogachev)
  • Chg #634: Rename RuleWithOptionsInterface to DumpedRuleInterface (@​arogachev)
  • Chg #634: Use FQCN as a name for built-in rules during export with RulesDumper (@​arogachev)
  • Chg #634: Use FQCN as a name for rules not implementing DumpedRuleInterface during export with RulesDumper (@​arogachev)
  • Chg #660: Change type of $skipOnEmpty argument in rules' constructors from mixed to bool|callable|null (@​arogachev)
  • Chg #679: Change type of $rule argument in RuleHandlerInterface::validate() from object to RuleInterface (@​arogachev)
  • Chg #694: Rename AtLeast rule to FilledAtLeast and OneOf rule to FilledOnlyOneOf (@​arogachev)
  • Enh #492: Add type to error messages related with incorrect input (@​arogachev)
  • Enh #622: Use json_validate() built-in PHP function in JsonHandler if code is run with PHP 8.3 (@​arogachev)
  • Enh #636: Improve psalm annotations in Result class (@​vjik)
  • Enh #637: Add German translation (@​took)
  • Enh #639: Simplify validation of JSON in JsonHandler using built-in PHP functions for PHP versions below 8.3 (@​arogachev)
  • Enh #648: Raise the minimum version of PHP to 8.1 (@​pamparam83)
  • Enh #726: Refactor Result::add(): took array_merge() out of the foreach (@​lav45)
  • Enh #733: Make parameter $rules in RulesNormalizer::normalize() optional (@​vjik)
  • Enh #735: Make Json::$message a bit more clear (@​arogachev)
  • Bug #632: Fix property name usage in error messages of rules in Nested rule (@​vjik)
  • Bug #733: Rules provided by data object PHP attributes were not used in RulesNormalizer::normalize() (@​vjik)
  • Bug #736: Fix wrong value for type parameter for Each::$incorrectInputKeyMessage (@​arogachev)

1.4.1 June 11, 2024

  • Bug #719: Fix parameters leak in context validation (@​vjik)

1.4.0 May 22, 2024

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [yiisoft/validator](https://github.com/yiisoft/validator) to permit the latest version.
- [Release notes](https://github.com/yiisoft/validator/releases)
- [Changelog](https://github.com/yiisoft/validator/blob/master/CHANGELOG.md)
- [Commits](yiisoft/validator@1.1.0...2.0.0)

---
updated-dependencies:
- dependency-name: yiisoft/validator
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Aug 2, 2024
@vjik vjik changed the title Update yiisoft/validator requirement from ^1.1 to ^2.0 Add yiisoft/validator of version ^2.0 support Aug 3, 2024
@vjik vjik requested a review from a team August 3, 2024 12:54
@vjik vjik added the status:code review The pull request needs review. label Aug 3, 2024
@vjik vjik merged commit 1499720 into master Aug 6, 2024
21 checks passed
@vjik vjik deleted the dependabot/composer/yiisoft/validator-tw-2.0 branch August 6, 2024 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file php Pull requests that update Php code status:code review The pull request needs review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants