Skip to content

Commit

Permalink
Dev: Short hack to remove warning about private function
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 3, 2022
1 parent 77d7d22 commit 0dc6aa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/models/services/QuestionAttributeHelper.php
Expand Up @@ -225,8 +225,9 @@ public function getQuestionAttributesWithValues($question, $language = null, $qu
* @param array<string,mixed> $a First question attribute to compare
* @param array<string,mixed> $b Second question attribute to compare
* @return int
* @todo No state used, so no OOP needed, move to function at some point.
*/
private function categorySort($a, $b)
protected function categorySort($a, $b)
{
$categoryOrders = $this->getCategoryOrders();
$orderA = isset($categoryOrders[$a['category']]) ? $categoryOrders[$a['category']] : PHP_INT_MAX;
Expand Down

0 comments on commit 0dc6aa6

Please sign in to comment.