Skip to content

Commit 4606099

Browse files
committed
[OptionsResolver] Fix deprecation message access
1 parent d275150 commit 4606099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OptionsResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ public function offsetGet($option, bool $triggerDeprecation = true)
10671067

10681068
// Check whether the option is deprecated
10691069
// and it is provided by the user or is being called from a lazy evaluation
1070-
if ($triggerDeprecation && isset($this->deprecated[$option]) && (isset($this->given[$option]) || ($this->calling && \is_string($this->deprecated[$option])))) {
1070+
if ($triggerDeprecation && isset($this->deprecated[$option]) && (isset($this->given[$option]) || ($this->calling && \is_string($this->deprecated[$option]['message'])))) {
10711071
$deprecation = $this->deprecated[$option];
10721072
$message = $this->deprecated[$option]['message'];
10731073

0 commit comments

Comments
 (0)