Skip to content

Commit

Permalink
Bump phpstan/phpstan from 1.10.21 to 1.10.22 (OpenMage#3359)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
  • Loading branch information
dependabot[bot] and fballiano committed Jul 4, 2023
1 parent 1b032ac commit 6892dee
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Paypal/Model/Ipn.php
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ protected function _registerPaymentRefund()
->setTransactionId($this->getRequestData('txn_id'))
->setParentTransactionId($this->getRequestData('parent_txn_id'))
->setIsTransactionClosed($isRefundFinal)
->registerRefundNotification(-1 * $this->getRequestData('mc_gross'));
->registerRefundNotification(-1 * (float)$this->getRequestData('mc_gross'));
$this->_order->addStatusHistoryComment($comment, false);
$this->_order->save();

Expand Down
5 changes: 1 addition & 4 deletions app/code/core/Mage/Rule/Model/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,7 @@ protected function _convertFlatToRecursive(array $data)
$path = explode('--', $id);
$node =& $arr;
for ($i = 0, $l = count($path); $i < $l; $i++) {
if (!isset($node[$key][$path[$i]])) {
$node[$key][$path[$i]] = [];
}
$node =& $node[$key][$path[$i]];
$node =& $node[$key][$path[$i]] ?? [];
}
foreach ($data as $k => $v) {
$node[$k] = $v;
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions phpstan.dist.baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3670,11 +3670,6 @@ parameters:
count: 1
path: app/code/core/Mage/Rss/Helper/Data.php

-
message: "#^Offset 'actions'\\|'conditions' on array\\{\\} in isset\\(\\) does not exist\\.$#"
count: 1
path: app/code/core/Mage/Rule/Model/Abstract.php

-
message: "#^Property Mage_Rule_Model_Abstract\\:\\:\\$_conditions \\(Mage_Rule_Model_Condition_Combine\\) in empty\\(\\) is not falsy\\.$#"
count: 1
Expand Down

0 comments on commit 6892dee

Please sign in to comment.