public function getItemsWithUnhandledErrors()
    {
        $list = [];
        foreach ($this->getItems() as $item) {
            if ($item->hasUnhandledError()) {
                $list[] = $item;
            }
        }

        return $list;
    }
public function getItemsWithUnhandledErrors()
    {
        $list = [];
        foreach ($this->getItems() as $item) {
            if ($item->hasUnhandledError()) {
                $list[] = $item;
            }
        }

        return $list;
    }
public function getItemsWithUnhandledErrors ( ) { $ list = [ ] ; foreach ( $ this -> getItems ( ) as $ item ) { if ( $ item -> hasUnhandledError ( ) ) { $ list [ ] = $ item ; } } return $ list ; }
Returns cart items with errors

@return OrderItem[]
Returns cart items with errors