@@ -47,7 +47,7 @@ public function __construct(OptionsResolver $optionsResolver)
47
47
*/
48
48
public function getDefault (string $ option )
49
49
{
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 ));
51
51
}
52
52
53
53
/**
@@ -57,7 +57,7 @@ public function getDefault(string $option)
57
57
*/
58
58
public function getLazyClosures (string $ option ): array
59
59
{
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 ));
61
61
}
62
62
63
63
/**
@@ -67,7 +67,7 @@ public function getLazyClosures(string $option): array
67
67
*/
68
68
public function getAllowedTypes (string $ option ): array
69
69
{
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 ));
71
71
}
72
72
73
73
/**
@@ -77,14 +77,14 @@ public function getAllowedTypes(string $option): array
77
77
*/
78
78
public function getAllowedValues (string $ option ): array
79
79
{
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 ));
81
81
}
82
82
83
83
/**
84
84
* @throws NoConfigurationException on no configured normalizer
85
85
*/
86
86
public function getNormalizer (string $ option ): \Closure
87
87
{
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 ));
89
89
}
90
90
}
0 commit comments