Skip to content

Commit 05252bc

Browse files
committed
fix
1 parent c193a0a commit 05252bc

File tree

1 file changed

+2
-2
lines changed
  • app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab

1 file changed

+2
-2
lines changed

app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/History.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function getFullHistory()
109109
);
110110
}
111111

112-
usort($history, $this->_sortHistoryByTimestamp(...));
112+
usort($history, [self::class, '_sortHistoryByTimestamp']);
113113
return $history;
114114
}
115115

@@ -284,7 +284,7 @@ public function isCustomerNotificationNotApplicable($historyItem)
284284
* @return int
285285
*/
286286
// phpcs:ignore Ecg.PHP.PrivateClassMember.PrivateClassMemberError
287-
private function _sortHistoryByTimestamp($a, $b)
287+
private static function _sortHistoryByTimestamp($a, $b)
288288
{
289289
$createdAtA = $a['created_at'];
290290
$createdAtB = $b['created_at'];

0 commit comments

Comments
 (0)