Skip to content

Conversation

@VincentLanglet
Copy link

@VincentLanglet VincentLanglet commented May 22, 2024

Dans le cas du IN, on utilie $this->value et non la casted

case (SegmentConditions::IN):
                if (in_array($traitValueType, ['string', 'integer'])) {
                    $condition = in_array((string) $traitValue, explode(',', (string) $this->value), true);
                }
                break;

ca me semble mieux de faire pareil pour la regex.

Comme ça la "casted" est toujours casté @floranpagliai

EDIT: Et le même bug exist pour contains et not contains, j'ai ajouté un commit
9e87b78

@floranpagliai floranpagliai merged commit 6e43deb into floranpagliai:main May 23, 2024
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