We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 029914a commit fa55758Copy full SHA for fa55758
FormFieldRegistry.php
@@ -57,7 +57,7 @@ public function remove($name)
57
$target = &$this->fields;
58
while (\count($segments) > 1) {
59
$path = array_shift($segments);
60
- if (!\array_key_exists($path, $target)) {
+ if (!\is_array($target) || !\array_key_exists($path, $target)) {
61
return;
62
}
63
$target = &$target[$path];
@@ -80,7 +80,7 @@ public function &get($name)
80
81
while ($segments) {
82
83
84
throw new \InvalidArgumentException(sprintf('Unreachable field "%s"', $path));
85
86
0 commit comments