File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/Symfony/Component/OptionsResolver Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 2626 */
2727class OptionsResolver implements Options
2828{
29- /**
30- * The fully qualified name of the {@link Options} interface.
31- *
32- * @internal
33- */
34- const OPTIONS_INTERFACE = 'Symfony \\Component \\OptionsResolver \\Options ' ;
35-
3629 /**
3730 * The names of all defined options.
3831 *
@@ -171,7 +164,7 @@ public function setDefault($option, $value)
171164 $ reflClosure = new \ReflectionFunction ($ value );
172165 $ params = $ reflClosure ->getParameters ();
173166
174- if (isset ($ params [0 ]) && null !== ($ class = $ params [0 ]->getClass ()) && self :: OPTIONS_INTERFACE === $ class ->name ) {
167+ if (isset ($ params [0 ]) && null !== ($ class = $ params [0 ]->getClass ()) && Options::class === $ class ->name ) {
175168 // Initialize the option if no previous value exists
176169 if (!isset ($ this ->defaults [$ option ])) {
177170 $ this ->defaults [$ option ] = null ;
You can’t perform that action at this time.
0 commit comments