Skip to content

Pass context array key as string at validate0101()#158

Open
boryn wants to merge 1 commit intobzikarsky:masterfrom
boryn:patch-1
Open

Pass context array key as string at validate0101()#158
boryn wants to merge 1 commit intobzikarsky:masterfrom
boryn:patch-1

Conversation

@boryn
Copy link

@boryn boryn commented Jul 19, 2024

MessageValidator fails when we use an array with keys as integers as the context. Let's look at the example:

$files[] = 'file_0.php';
$files[] = 'file_1.php';

Log::info("Files", $files);

then, preg_match() complains it needs the second argument to be a string at validate0101() in MessageValidator

@PDXfoster
Copy link

Has anyone looked at this? It's a simple fix, and is causing a major headache.

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