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 abca375 commit 5edebd7Copy full SHA for 5edebd7
app/code/Magento/Ui/Model/ColorPicker/ColorModesProvider.php
@@ -58,16 +58,8 @@ public function getModes(): array
58
*/
59
private function createModeProvider(string $instance): ModeInterface
60
{
61
- if (!is_subclass_of(
62
- $instance,
63
- ModeInterface::class
64
- )
65
- ) {
66
- throw new \InvalidArgumentException(
67
- $instance .
68
- ' does not implement ' .
69
70
- );
+ if (!is_subclass_of($instance, ModeInterface::class)) {
+ throw new \InvalidArgumentException($instance . ' does not implement ' . ModeInterface::class);
71
}
72
return $this->objectManager->create($instance);
73
0 commit comments