Skip to content

Commit 72aa8ca

Browse files
ycerutofabpot
authored andcommitted
Removed legacy code and cleanup
1 parent a30d7cb commit 72aa8ca

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

OptionsResolver.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,6 @@ public function offsetGet($option, bool $triggerDeprecation = true)
846846
throw new AccessException('Array access is only supported within closures of lazy options and normalizers.');
847847
}
848848

849-
$triggerDeprecation = 1 === \func_num_args() || func_get_arg(1);
850-
851849
// Shortcut for resolved options
852850
if (isset($this->resolved[$option]) || \array_key_exists($option, $this->resolved)) {
853851
if ($triggerDeprecation && isset($this->deprecated[$option]) && (isset($this->given[$option]) || $this->calling) && \is_string($this->deprecated[$option])) {

0 commit comments

Comments
 (0)