8000 validateOptionTypes checking existence of key rather than value · sun/symfony@aa890ae · GitHub
[go: up one dir, main page]

Skip to content

Commit aa890ae

Browse files
committed
validateOptionTypes checking existence of key rather than value
1 parent c6a9638 commit aa890ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/OptionsResolver/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)
0