Skip to content

(chore): Bump spatie/laravel-data from 4.22.1 to 4.23.0 in the composer group#59

Merged
yard-bot merged 1 commit into
mainfrom
dependabot/composer/composer-5172c59ffb
May 12, 2026
Merged

(chore): Bump spatie/laravel-data from 4.22.1 to 4.23.0 in the composer group#59
yard-bot merged 1 commit into
mainfrom
dependabot/composer/composer-5172c59ffb

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 12, 2026

Bumps the composer group with 1 update: spatie/laravel-data.

Updates spatie/laravel-data from 4.22.1 to 4.23.0

Release notes

Sourced from spatie/laravel-data's releases.

4.23.0

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 like required, required_if, and prohibited_if never fired. The skip in DataValidationRulesResolver was 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 wrote rules(), you own them. Thanks @​rubenvanassche.

Fix install conflict on PHP 8.4 with Pest installed (#1186)

composer require spatie/laravel-data failed when Pest was already installed, because Pest's chain pulls phpdocumentor/reflection-docblock 6.0.3 while the phpdocumentor/reflection ^6.0 meta package hard-pinned reflection-docblock ^5. The meta package is now dropped in favour of direct dependencies on the three sub-packages we use, with widened constraints:

-        "phpdocumentor/reflection" : "^6.0",
+        "phpdocumentor/type-resolver" : "^1.7 || ^2.0",
+        "phpdocumentor/reflection-common" : "^2.2",
+        "phpdocumentor/reflection-docblock" : "^5.3 || ^6.0",

The phpDocumentor APIs we call are identical across both majors, so no code changes are required. Thanks @​rubenvanassche.

Allow float values for Min, Max and Size validation 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)] became min:0, letting 0 pass validation, even though Laravel's validator accepts floats for these rules. Types are now widened to int|float|ExternalReference, mirroring MultipleOf:

#[Min(0.01), Max(99.99)]
public float $price;

Digit-count rules (Digits, MinDigits, MaxDigits, DigitsBetween) and Password length stay int. Thanks @​rubenvanassche.

What's Changed

Full Changelog: spatie/laravel-data@4.22.1...4.23.0

Changelog

Sourced from spatie/laravel-data's changelog.

4.23.0 - 2026-05-08

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 like required, required_if, and prohibited_if never fired. The skip in DataValidationRulesResolver was 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 wrote rules(), you own them. Thanks @​rubenvanassche.

Fix install conflict on PHP 8.4 with Pest installed (#1186)

composer require spatie/laravel-data failed when Pest was already installed, because Pest's chain pulls phpdocumentor/reflection-docblock 6.0.3 while the phpdocumentor/reflection ^6.0 meta package hard-pinned reflection-docblock ^5. The meta package is now dropped in favour of direct dependencies on the three sub-packages we use, with widened constraints:

-        "phpdocumentor/reflection" : "^6.0",
+        "phpdocumentor/type-resolver" : "^1.7 || ^2.0",
+        "phpdocumentor/reflection-common" : "^2.2",
+        "phpdocumentor/reflection-docblock" : "^5.3 || ^6.0",

The phpDocumentor APIs we call are identical across both majors, so no code changes are required. Thanks @​rubenvanassche.

Allow float values for Min, Max and Size validation 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)] became min:0, letting 0 pass validation, even though Laravel's validator accepts floats for these rules. Types are now widened to int|float|ExternalReference, mirroring MultipleOf:

#[Min(0.01), Max(99.99)]
public float $price;

Digit-count rules (Digits, MinDigits, MaxDigits, DigitsBetween) and Password length stay int. Thanks @​rubenvanassche.

What's Changed

Full Changelog: spatie/laravel-data@4.22.1...4.23.0

Commits
  • 2305437 Run rules() overrides regardless of property defaults (#1187)
  • ba02934 Fix install conflict on PHP 8.4 with Pest installed (#1186)
  • de6404a Merge pull request #1185 from spatie/fix/min-max-size-float-values
  • c50ca60 Allow float values for Min, Max and Size validation attributes
  • 71d9a10 Update CHANGELOG
  • See full diff in compare view

Dependabot compatibility score

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the composer group with 1 update: [spatie/laravel-data](https://github.com/spatie/laravel-data).


Updates `spatie/laravel-data` from 4.22.1 to 4.23.0
- [Release notes](https://github.com/spatie/laravel-data/releases)
- [Changelog](https://github.com/spatie/laravel-data/blob/main/CHANGELOG.md)
- [Commits](spatie/laravel-data@4.22.1...4.23.0)

---
updated-dependencies:
- dependency-name: spatie/laravel-data
  dependency-version: 4.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: composer
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels May 12, 2026
@yard-bot yard-bot merged commit a914186 into main May 12, 2026
4 checks passed
@yard-bot yard-bot deleted the dependabot/composer/composer-5172c59ffb branch May 12, 2026 04:39
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

Coverage report for commit: d3fb7ed
File: coverage.xml

Cover ┌─────────────────────────┐ Freq.
   0% │ ███████████████████████ │ 62.5%
  10% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  20% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  30% │ █████░░░░░░░░░░░░░░░░░░ │ 12.5%
  40% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  50% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  60% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  70% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  80% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  90% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
 100% │ ██████████░░░░░░░░░░░░░ │ 25.0%
      └─────────────────────────┘
 *Legend:* █ = Current Distribution 
Summary - Lines: 3.54% | Methods: 12.00%
FilesLinesMethodsBranches
src/Data
   IconData.php4.55%25.00%100.00%
   WebManifestData.php100.00%100.00%100.00%
   WebmanifestIconData.php100.00%100.00%100.00%
src/Http/Controllers
   IconController.php--100.00%
src
   MaskableIcon.php30.00%50.00%100.00%
   WebManifest.php--100.00%
   WebmanifestServiceProvider.php--100.00%
src/Traits
   Helpers.php--100.00%

🤖 comment via lucassabreu/comment-coverage-clover

@github-actions
Copy link
Copy Markdown

Composer package changes
Prod Packages Operation Base Target Link License
nette/utils Upgraded v4.1.3 v4.1.4 Compare BSD-3-Clause, GPL-2.0-only, GPL-3.0-only
spatie/laravel-data Upgraded 4.22.1 4.23.0 Compare MIT
symfony/console Upgraded v6.4.36 v6.4.37 Compare MIT
symfony/css-selector Upgraded v7.4.8 v7.4.9 Compare MIT
symfony/deprecation-contracts Upgraded v3.6.0 v3.7.0 Compare MIT
symfony/event-dispatcher Upgraded v7.4.8 v7.4.9 Compare MIT
symfony/event-dispatcher-contracts Upgraded v3.6.0 v3.7.0 Compare MIT
symfony/http-kernel Upgraded v6.4.36 v6.4.38 Compare MIT
symfony/mime Upgraded v6.4.36 v6.4.37 Compare MIT
symfony/routing Upgraded v6.4.34 v6.4.37 Compare MIT
symfony/service-contracts Upgraded v3.6.1 v3.7.0 Compare MIT
symfony/translation Upgraded v6.4.34 v6.4.38 Compare MIT
symfony/translation-contracts Upgraded v3.6.1 v3.7.0 Compare MIT
nikic/php-parser Removed v5.7.0 - Compare BSD-3-Clause
phpdocumentor/reflection Removed 6.6.0 - Compare MIT
Dev Packages Operation Base Target Link License
nikic/php-parser New - v5.7.0 Compare BSD-3-Clause

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.

1 participant