Skip to content

Commit

Permalink
FIX TESTS
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlavtox committed Nov 11, 2023
1 parent 5784db6 commit a1bb291
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ps_facetedsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -966,12 +966,9 @@ private function getExistingFiltersOverview()
$filters_templates[$k]['controllers'] = implode(', ', $tmp);

// Format date for different core versions. Since 8.0, it has only two arguments.
// PHPStan ignores are added because it doesn't seem to understand the condition.
if (version_compare(_PS_VERSION_, '8.0.0', '>=')) {
/** @phpstan-ignore-next-line */
$filters_templates[$k]['date_add'] = Tools::displayDate($v['date_add'], true);
} else {
/** @phpstan-ignore-next-line */
$filters_templates[$k]['date_add'] = Tools::displayDate($v['date_add'], null, true);
}
}
Expand Down

0 comments on commit a1bb291

Please sign in to comment.