Skip to content

Commit a683891

Browse files
committed
Remove OPTIONS_INTERFACE in favor of Options::class
1 parent 73853c4 commit a683891

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Symfony/Component/OptionsResolver/OptionsResolver.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@
2626
*/
2727
class 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;

0 commit comments

Comments
 (0)