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 26
26
*/
27
27
class OptionsResolver implements Options
28
28
{
29
- /**
30
- * The fully qualified name of the {@link Options} interface.
31
- *
32
- * @internal
33
- */
34
- const OPTIONS_INTERFACE = 'Symfony \\Component \\OptionsResolver \\Options ' ;
35
-
36
29
/**
37
30
* The names of all defined options.
38
31
*
@@ -171,7 +164,7 @@ public function setDefault($option, $value)
171
164
$ reflClosure = new \ReflectionFunction ($ value );
172
165
$ params = $ reflClosure ->getParameters ();
173
166
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 ) {
175
168
// Initialize the option if no previous value exists
176
169
if (!isset ($ this ->defaults [$ option ])) {
177
170
$ this ->defaults [$ option ] = null ;
You can’t perform that action at this time.
0 commit comments