Skip to content

Conversation

@ryanmitchell
Copy link
Contributor

@ryanmitchell ryanmitchell commented Nov 12, 2024

Replaces #11113

This PR updates our stache whereJsonContains (etc) implementation to match every item in the values, not any as it currently does. This brings it inline with the behaviour on the Laravel side.

This is however a breaking change so I think targeting 6.x and master is right for this (?).

The current behaviour is comparable to whereJsonOverlaps, which I've opened a seperate PR for: #11112

@ryanmitchell ryanmitchell changed the title [6.x] Match how whereJsonContains to how Laravel handles it [6.x] Match whereJsonContains to how Laravel handles it Nov 13, 2024
@jasonvarga jasonvarga merged commit 34afee9 into statamic:master Sep 22, 2025
18 checks passed
@ryanmitchell ryanmitchell deleted the fix/where-json-contains branch September 23, 2025 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants