We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad1d2af commit 4e26bffCopy full SHA for 4e26bff
src/Services/Validators/Meta.php
@@ -101,9 +101,11 @@ private function selectMetaParameterMissing(): bool
101
102
private function invalidOptions($options): bool
103
{
104
- return ! $options
105
- || enum_exists($options) && ! (new ReflectionEnum($options))
+ return $options
+ && (
106
+ enum_exists($options) && ! (new ReflectionEnum($options))
107
->implementsInterface(Select::class)
- || ! is_array($options) && ! method_exists($options, 'toArray');
108
+ || ! class_exists($options) && ! is_array($options) && ! method_exists($options, 'toArray')
109
+ );
110
}
111
0 commit comments