Update dependency spatie/laravel-data to v4.23.0#29
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.17.1→4.23.0Release Notes
spatie/laravel-data (spatie/laravel-data)
v4.23.0Compare Source
A round of bug fixes for validation rules, install resolution, and rule overrides.
Run
rules()overrides regardless of property defaults (#1187)Properties with a default value were silently dropping rules declared in the
rules()method when the property was missing from the payload, so conditional rules likerequired,required_if, andprohibited_ifnever fired. The skip inDataValidationRulesResolverwas originally there to stop auto-generated rules from rejecting empty payloads on all-default data classes (#441), but it also short-circuited explicit overrides.Overrides are now resolved upfront, and the default-value skip only applies when no override exists for that property.
#[WithoutValidation]no longer suppresses an override for the same key. If you wroterules(), you own them. Thanks @rubenvanassche.Fix install conflict on PHP 8.4 with Pest installed (#1186)
composer require spatie/laravel-datafailed when Pest was already installed, because Pest's chain pullsphpdocumentor/reflection-docblock 6.0.3while thephpdocumentor/reflection ^6.0meta package hard-pinnedreflection-docblock ^5. The meta package is now dropped in favour of direct dependencies on the three sub-packages we use, with widened constraints:The phpDocumentor APIs we call are identical across both majors, so no code changes are required. Thanks @rubenvanassche.
Allow float values for
Min,MaxandSizevalidation attributes (#1185)The constructors typed their value as
int|ExternalReference, and because those classes don't declare strict types, PHP silently coerced floats to int.#[Min(0.01)]becamemin:0, letting0pass validation, even though Laravel's validator accepts floats for these rules. Types are now widened toint|float|ExternalReference, mirroringMultipleOf:Digit-count rules (
Digits,MinDigits,MaxDigits,DigitsBetween) andPasswordlength stayint. Thanks @rubenvanassche.What's Changed
Full Changelog: spatie/laravel-data@4.22.1...4.23.0
v4.22.1Compare Source
What's Changed
Full Changelog: spatie/laravel-data@4.22.0...4.22.1
v4.22.0Compare Source
What's Changed
Full Changelog: spatie/laravel-data@4.21.0...4.22.0
v4.21.0Compare Source
What's Changed
Full Changelog: spatie/laravel-data@4.20.1...4.21.0
v4.20.1Compare Source
v4.20.0Compare Source
v4.19.1Compare Source
What's Changed
Full Changelog: spatie/laravel-data@4.19.0...4.19.1
v4.19.0Compare Source
What's Changed
Full Changelog: spatie/laravel-data@4.18.0...4.19.0
v4.18.0Compare Source
What's Changed
Full Changelog: spatie/laravel-data@4.17.1...4.18.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.