Skip to content

Commit 5468cfd

Browse files
Merge branch '4.1' into 4.2
* 4.1: Fix typos in doc blocks [Debug] ignore underscore vs backslash namespaces in DebugClassLoader [TwigBridge][Form] Prevent multiple rendering of form collection prototypes [FrameworkBundle] fix describing routes with no controllers [DI] move RegisterServiceSubscribersPass before DecoratorServicePass Update ValidationListener.php [Yaml] ensures that the mb_internal_encoding is reset to its initial value [WebLink] Fixed documentation link [Security] getTargetPath of TargetPathTrait must return string or null [Hackday][Serializer] Deserialization ignores argument type hint from phpdoc for array in constructor argument Optimize perf by replacing call_user_func with dynamic vars [Routing] fix dumping same-path routes with placeholders [Security] defer log message in guard authenticator [Validator] Added IBAN format for Vatican City State merge conflicts filter out invalid Intl values filter out invalid language values [Validator] Fixed grouped composite constraints [Form] Filter arrays out of scalar form types Fix HeaderBag::get phpdoc
2 parents a9c38e8 + 226d566 commit 5468cfd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Debug/OptionsResolverIntrospector.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(OptionsResolver $optionsResolver)
4747
*/
4848
public function getDefault(string $option)
4949
{
50-
return \call_user_func($this->get, 'defaults', $option, sprintf('No default value was set for the "%s" option.', $option));
50+
return ($this->get)('defaults', $option, sprintf('No default value was set for the "%s" option.', $option));
5151
}
5252

5353
/**
@@ -57,7 +57,7 @@ public function getDefault(string $option)
5757
*/
5858
public function getLazyClosures(string $option): array
5959
{
60-
return \call_user_func($this->get, 'lazy', $option, sprintf('No lazy closures were set for the "%s" option.', $option));
60+
return ($this->get)('lazy', $option, sprintf('No lazy closures were set for the "%s" option.', $option));
6161
}
6262

6363
/**
@@ -67,7 +67,7 @@ public function getLazyClosures(string $option): array
6767
*/
6868
public function getAllowedTypes(string $option): array
6969
{
70-
return \call_user_func($this->get, 'allowedTypes', $option, sprintf('No allowed types were set for the "%s" option.', $option));
70+
return ($this->get)('allowedTypes', $option, sprintf('No allowed types were set for the "%s" option.', $option));
7171
}
7272

7373
/**
@@ -77,15 +77,15 @@ public function getAllowedTypes(string $option): array
7777
*/
7878
public function getAllowedValues(string $option): array
7979
{
80-
return \call_user_func($this->get, 'allowedValues', $option, sprintf('No allowed values were set for the "%s" option.', $option));
80+
return ($this->get)('allowedValues', $option, sprintf('No allowed values were set for the "%s" option.', $option));
8181
}
8282

8383
/**
8484
* @throws NoConfigurationException on no configured normalizer
8585
*/
8686
public function getNormalizer(string $option): \Closure
8787
{
88-
return \call_user_func($this->get, 'normalizers', $option, sprintf('No normalizer was set for the "%s" option.', $option));
88+
return ($this->get)('normalizers', $option, sprintf('No normalizer was set for the "%s" option.', $option));
8989
}
9090

9191
/**
@@ -95,6 +95,6 @@ public function getNormalizer(string $option): \Closure
9595
*/
9696
public function getDeprecationMessage(string $option)
9797
{
98-
return \call_user_func($this->get, 'deprecated', $option, sprintf('No deprecation was set for the "%s" option.', $option));
98+
return ($this->get)('deprecated', $option, sprintf('No deprecation was set for the "%s" option.', $option));
9999
}
100100
}

0 commit comments

Comments
 (0)