8000 [2.6] Remove possible call_user_func() · nicolas-grekas/symfony@1de4920 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1de4920

Browse files
[2.6] Remove possible call_user_func()
1 parent f288a69 commit 1de4920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/OptionsResolver/OptionsResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ public function offsetGet($option)
833833
// BEGIN
834834
$this->calling[$option] = true;
835835
foreach ($this->lazy[$option] as $closure) {
836-
$value = call_user_func($closure, $this, $value);
836+
$value = $closure($this, $value);
837837
}
838838
unset($this->calling[$option]);
839839
// END
@@ -929,7 +929,7 @@ public function offsetGet($option)
929929
// dependency
930930
// BEGIN
931931
$this->calling[$option] = true;
932-
$value = call_user_func($normalizer, $this, $value);
932+
$value = $normalizer($this, $value);
933933
unset($this->calling[$option]);
934934
// END
935935
}

0 commit comments

Comments
 (0)
0