mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 20:18:52 +02:00
N°8910 - Upgrade Symfony packages (#811)
This commit is contained in:
@@ -803,7 +803,7 @@ class OptionsResolver implements Options
|
||||
|
||||
foreach ((array) $optionNames as $option) {
|
||||
unset($this->defined[$option], $this->defaults[$option], $this->required[$option], $this->resolved[$option]);
|
||||
unset($this->lazy[$option], $this->normalizers[$option], $this->allowedTypes[$option], $this->allowedValues[$option], $this->info[$option]);
|
||||
unset($this->lazy[$option], $this->normalizers[$option], $this->allowedTypes[$option], $this->allowedValues[$option], $this->info[$option], $this->deprecated[$option]);
|
||||
}
|
||||
|
||||
return $this;
|
||||
@@ -964,6 +964,11 @@ class OptionsResolver implements Options
|
||||
$resolver = new self();
|
||||
$resolver->prototype = false;
|
||||
$resolver->parentsOptions = $this->parentsOptions;
|
||||
|
||||
if ($this->prototype && null !== $this->prototypeIndex && null !== ($parentOptionKey = array_key_last($resolver->parentsOptions))) {
|
||||
$resolver->parentsOptions[$parentOptionKey] .= \sprintf('[%s]', $this->prototypeIndex);
|
||||
}
|
||||
|
||||
$resolver->parentsOptions[] = $option;
|
||||
foreach ($this->nested[$option] as $closure) {
|
||||
$closure($resolver, $this);
|
||||
|
||||
Reference in New Issue
Block a user