Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 13, 2025

Bumps dshafik/bag from 2.5.4 to 2.6.2.

Release notes

Sourced from dshafik/bag's releases.

Remove caching when resolving Bags during request injection

What's Changed

Full Changelog: beacon-hq/bag@2.6.1...2.6.2

Fix built-in cast support for Optionals

What's Changed

Full Changelog: beacon-hq/bag@2.6.0...2.6.1

Improve Validation of Optionals

This release changes the behavior of validation when Optionals are involved. Prior to this release, if your validation for an Optional field was a simple presence requirement (e.g. required, present), an Optional value would pass, whereas a type/format validator would fail.

After this change, unless you use the OptionalOr validator, Optional values are stripped from the validated values, allowing rules like required to fail as expected.

This is a minor backward incompatible change, but the behavior is now what would have been expected previously.

Full documentation on Optional and the validation of Optionals can be found here

Commits
  • f0c0a8b fix: do not cache request resolution, it breaks in some scenarios
  • e126880 build: Update to PHP 8.4
  • fdf908c fix: Collection return type set correctly
  • 3aa18ba fix: Support Optionals in built-in casts
  • 704db39 docs: Update for 2.6
  • 91ea5ab fix: make Optional validation more intuitive
  • 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 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)

Bumps [dshafik/bag](https://github.com/dshafik/bag) from 2.5.4 to 2.6.2.
- [Release notes](https://github.com/dshafik/bag/releases)
- [Commits](beacon-hq/bag@2.5.4...2.6.2)

---
updated-dependencies:
- dependency-name: dshafik/bag
  dependency-version: 2.6.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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 Oct 13, 2025
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