Merge branch 'develop' into trunk

This commit is contained in:
Noah Lancien 2025-06-11 14:44:33 +02:00
commit b53880938d

View file

@ -571,10 +571,10 @@ class ProductController extends Controller
* Delete the "sub" start filter to avoid "subsubrange" when user has some filters
* and hard visit a total different product filter
*
* @param string $filter
* @param string|null $filter
* @return mixed
*/
private function cleanSubSubFilter(string $filter): mixed
private function cleanSubSubFilter(string|null $filter = null): mixed
{
return str_starts_with($filter, "sub") ? preg_replace('/^sub/', '', $filter) : $filter;
}