Skip to content

Commit 19de842

Browse files
author
Carlos Lizaga
committed
Fix PHPDoc for _saveValidatedBunches(). Return shall be declared as
$this|\Magento\ImportExport\Model\Import\Entity\AbstractEntity Removed 'void' as declaration from _saveValidatedBunches() function as it shall return $this [\Magento\ImportExport\Model\Import\Entity\AbstractEntity]
1 parent 41a43c1 commit 19de842

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2758,7 +2758,7 @@ private function _customFieldsMapping($rowData)
27582758
/**
27592759
* Validate data rows and save bunches to DB
27602760
*
2761-
* @return $this
2761+
* @return $this|\Magento\ImportExport\Model\Import\Entity\AbstractEntity
27622762
*/
27632763
protected function _saveValidatedBunches()
27642764
{

app/code/Magento/ImportExport/Model/Import/Entity/AbstractEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ protected function addErrors($code, $errors)
378378
/**
379379
* Validate data rows and save bunches to DB.
380380
*
381-
* @return $this|void
381+
* @return $this
382382
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
383383
*/
384384
protected function _saveValidatedBunches()

0 commit comments

Comments
 (0)