Skip to content

Commit 6a1159e

Browse files
committed
validateOptionTypes checking existence of key rather than value
1 parent c9b7afc commit 6a1159e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OptionsResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ private function validateOptionValues(array $options)
312312
private function validateOptionTypes(array $options)
313313
{
314314
foreach ($this->allowedTypes as $option => $allowedTypes) {
315-
if (!isset($options[$option])) {
315+
if (!array_key_exists($option, $options)) {
316316
continue;
317317
}
318318

0 commit comments

Comments
 (0)