Skip to content

Commit 3809ea4

Browse files
committed
PHPStan fixes
1 parent 50b6015 commit 3809ea4

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

Block/Tab/Product/Crosssell.php

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ protected function _prepareLayout()
5151
ObjectManager::getInstance()->create(PreparePostData::class)
5252
);
5353
}
54+
55+
return $this;
5456
}
5557

5658
private function getProductLinkField(): string

Controller/Adminhtml/AbstractMassStatus.php

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class AbstractMassStatus extends \Magento\Backend\App\Action
2727
*/
2828
const REDIRECT_URL = '*/*/';
2929

30+
const SUCCESS_MESSAGE = '';
31+
3032
/**
3133
* @var Filter
3234
*/

Controller/Adminhtml/Index/Save.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function execute()
4343

4444
if (isset($data['rule'])) {
4545
$data['conditions'] = $data['rule']['conditions'];
46-
unset($data['rule']);
46+
unset($data['rule']); // @phpstan-ignore-line
4747
}
4848

4949
$model->loadPost($data);

Model/ResourceModel/Entity/Grid/Collection.php

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public function getAggregations()
7575
public function setAggregations($aggregations)
7676
{
7777
$this->aggregations = $aggregations;
78+
return $this;
7879
}
7980

8081
/**

Setup/Patch/Data/InitialTabs.php

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function apply()
4343
[ 'tab_id' => $entityId, 'store_id' => Store::DEFAULT_STORE_ID ]
4444
);
4545
}
46+
return $this;
4647
}
4748

4849
/**

0 commit comments

Comments
 (0)