You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -809,7 +809,7 @@ public function offsetGet($option/*, bool $triggerDeprecation = true*/)
809
809
}
810
810
811
811
// Check whether the option is set at all
812
-
if (!array_key_exists($option, $this->defaults)) {
812
+
if (!isset($this->defaults[$option]) && !array_key_exists($option, $this->defaults)) {
813
813
if (!isset($this->defined[$option])) {
814
814
thrownewNoSuchOptionException(sprintf('The option "%s" does not exist. Defined options are: "%s".', $option, implode('", "', array_keys($this->defined))));
815
815
}
@@ -827,7 +827,7 @@ public function offsetGet($option/*, bool $triggerDeprecation = true*/)
827
827
}
828
828
829
829
if (!\is_array($value)) {
830
-
thrownewInvalidOptionsException(sprintf('The nested option "%s" with value %s is expected to be of type array, but is of type "%s".', $option, $this->formatValue($value), $this->formatTypeOf($value, 'array')));
830
+
thrownewInvalidOptionsException(sprintf('The nested option "%s" with value %s is expected to be of type array, but is of type "%s".', $option, $this->formatValue($value), $this->formatTypeOf($value)));
831
831
}
832
832
833
833
// The following section must be protected from cyclic calls.
@@ -872,7 +872,7 @@ public function offsetGet($option/*, bool $triggerDeprecation = true*/)
0 commit comments