Skip to content

Bump respect/validation from 1.1.31 to 2.4.4#111

Open
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/composer/dev/respect/validation-2.4.4
Open

Bump respect/validation from 1.1.31 to 2.4.4#111
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/composer/dev/respect/validation-2.4.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 5, 2025

Copy link
Copy Markdown
Contributor

Bumps respect/validation from 1.1.31 to 2.4.4.

Release notes

Sourced from respect/validation's releases.

Update Regional Information

No release notes provided.

First release of the 2.4 series

This release just deprecates a few things to prepare users to the next major version. Migrating to this release will probably make migrating to version 3.0 a bit less painful, but feel free to skip this version as it has no new features.

Deprecations

Here are a few important changes coming into version 3.0.

Method validate() is now called isValid()

The method validate() will be repurposed to return an object with failures, so users can iterate over them and get more detailed information about the validation that just occurred.

Consider changing your code as indicated below:

- v::stringType()->validate($input)
+ v::stringType()->isValid($input)

In most cases, a single find and replace from your IDE should fix it. You could also run a a few commands in your command line to fix that too; here's an example:

rg '\->validate\(' --files-with-matches |
    xargs -n 1 sed --in-place 's,->validate(,->isValid(,g'

WARNING: the commands above will replace any method that is called validate in your codebase. Make sure that you only call the method validate from this library.

Calling rules directly

All existing methods in the class rules rules will be removed in favor of a single method that will return an object with the validation result. That will help us with providing more granularity control, more flexibility, and more rich and customisable validation messages.

Consider changing your code as indicated below:

Calling assert():

- (new Email())->assert($input)
+ Validator::create(new Email())->assert($input)

Calling check():

- (new Email())->check($input)
+ Validator::create(new Email())->check($input)

Calling validate():

... (truncated)

Changelog

Sourced from respect/validation's changelog.

Changes in Respect\Validation 2.x

2.3

Versioning Changes:

  • Dropped support for PHP 8.0 and below.
  • Updated dev dependencies

Deprecations:

  • Symfony façade validators are no longer supported and were removed.

Fixes:

  • KeySet now reports which extra keys are causing the rule to fail.
  • Ensure empty strings are never a valid currency code
  • Do not hide messages on EachException
  • Dot not throw exception when validating an uninitialized property

Changes:

  • You can no longer wrap KeySet in Not.
  • Phone now uses giggsey/libphonenumber-for-php, this package needs to be installed if you want to use this validator.
  • Phone now supports the parameter $countryCode to validate phones of a specific country.

2.2.4

Meta:

  • CHANGELOG.md is being written once again to provide an overview of active changes to the API and codebase.

Versioning Changes:

  • Dropped PHP 7.3 support.
  • Added support for PHP 8.0 and PHP 8.1. This will be the last release with PHP 7.4 support. Support for PHP 8.2 is considered experimental, local development should be done at 8.1.

Deprecations:

  • Zend Framework façade validators are no longer supported and were removed.
  • Symfony façade validators are no longer suggested, and will be removed in release 2.3.
  • v::dateTime('z') is not supported anymore in PHP8, and should not be relied upon

... (truncated)

Commits
  • f13f10f Update Regional Information
  • 7f4b3b3 Do not use array_unique() in the Unique rule
  • 8fd915c Update Regional Information
  • 894b5ac Update giggsey/libphonenumber-for-php-lite requirement || ^9.0
  • d1575eb Update Regional Information
  • 48b38bd Update Codecov settings
  • 8d989a7 Create a few classes the will be present in the next version
  • 3c04d1d Deprecate all exception classes
  • 9740e24 Prepare library for the next major version
  • 37736c4 Update Regional Information
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Aug 5, 2025
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Aug 5, 2025
@dependabot dependabot Bot force-pushed the dependabot/composer/dev/respect/validation-2.4.4 branch from bdab12c to e394272 Compare August 9, 2025 11:07
@dependabot dependabot Bot force-pushed the dependabot/composer/dev/respect/validation-2.4.4 branch 2 times, most recently from e1e5366 to 976aa8f Compare August 19, 2025 20:34
Bumps [respect/validation](https://github.com/Respect/Validation) from 1.1.31 to 2.4.4.
- [Release notes](https://github.com/Respect/Validation/releases)
- [Changelog](https://github.com/Respect/Validation/blob/2.4/CHANGELOG.md)
- [Commits](Respect/Validation@1.1.31...2.4.4)

---
updated-dependencies:
- dependency-name: respect/validation
  dependency-version: 2.4.4
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/composer/dev/respect/validation-2.4.4 branch from 976aa8f to 420dae5 Compare August 24, 2025 16:42
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants