Skip to content

Magento 2 : ERROR | Identical operator === is not used for testing the return value of strpos function

foreach ($statusCollection as $statusModel)
        {
            if ($statusModel->getId() == substr($status, strpos($status, '_') + 1))
            {
                // this is it!
                $this->_frameworkRegistry = $om->get('MagentoFrameworkRegistry');
                
            }
        }