File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lib/internal/Magento/Framework/Option Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,14 @@ public function __construct(\Magento\Framework\ObjectManagerInterface $objectMan
28
28
*
29
29
* @param string $model
30
30
* @throws \InvalidArgumentException
31
- * @return \Magento\Framework\Option\ArrayInterface
31
+ * @return \Magento\Framework\Data\OptionSourceInterface
32
32
*/
33
33
public function get ($ model )
34
34
{
35
35
$ modelInstance = $ this ->_objectManager ->get ($ model );
36
- if (false == $ modelInstance instanceof \Magento \Framework \Option \ArrayInterface) {
37
- throw new \InvalidArgumentException ($ model . 'doesn \'t implement \Magento\Framework\Option\ArrayInterface ' );
36
+ if (false == $ modelInstance instanceof \Magento \Framework \Data \OptionSourceInterface) {
37
+ throw new \InvalidArgumentException ($ model
38
+ . 'doesn \'t implement \Magento\Framework\Data\OptionSourceInterface ' );
38
39
}
39
40
return $ modelInstance ;
40
41
}
You can’t perform that action at this time.
0 commit comments