Skip to content

Commit

Permalink
Ensure all ALLOWED_PATTERNS values are strings
Browse files Browse the repository at this point in the history
Addresses
#148 (comment)
  • Loading branch information
johnbacon committed Oct 16, 2023
1 parent 2ae2ef1 commit 67c53ce
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public function configure(array $configuration): void
{
$allowedPatterns = $configuration[self::ALLOWED_PATTERNS] ?? [];
Assert::isArray($allowedPatterns);
Assert::allString($allowedPatterns);

$this->allowedPatterns = $allowedPatterns;
}
Expand Down

0 comments on commit 67c53ce

Please sign in to comment.