Skip to content

Conversation

@mabar
Copy link
Contributor

@mabar mabar commented Oct 25, 2025

Before

[ICollection::AND, 'id' => 1, 'name=' => 'John'] // ok
[ICollection::AND, ['id' => 1], ['name' => 'John']] // ok
[ICollection::AND, 'id' => 1, ['name=' => 'John']] // some exception about collection function

Now - all variants work

Why? We have some lengthy conditions accross multiple functions and conditions, written in the first syntax. To add a collection function to conditions, we have to rewrite them all to the second syntax. With this PR, rewriting everything is no longer necessary.

@hrach hrach merged commit a4971a5 into nextras:main Oct 26, 2025
9 checks passed
@mabar mabar deleted the mixed-array-key-value-syntax branch October 26, 2025 15:54
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