Skip to content

Commit 55ee43e

Browse files
ENGCOM-3846: Magento widgets source models forced to use deprecated interface #20064 #20248
- Merge Pull Request #20248 from cedcommerce/magento2:2.3-develop-issue-fix-20064 - Merged commits: 1. a958f5b
2 parents d1f9c6b + a958f5b commit 55ee43e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/Magento/Framework/Option/ArrayPool.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ public function __construct(\Magento\Framework\ObjectManagerInterface $objectMan
2828
*
2929
* @param string $model
3030
* @throws \InvalidArgumentException
31-
* @return \Magento\Framework\Option\ArrayInterface
31+
* @return \Magento\Framework\Data\OptionSourceInterface
3232
*/
3333
public function get($model)
3434
{
3535
$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 . 'doesn\'t implement \Magento\Framework\Data\OptionSourceInterface');
3838
}
3939
return $modelInstance;
4040
}

0 commit comments

Comments
 (0)