Skip to content

Commit

Permalink
update phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-rolland committed Aug 1, 2023
1 parent 15eb74b commit 4f508c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions phpstan-tmp-legacy-layout-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,3 @@ parameters:
message: "#^Namespace Link is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
count: 1
path: src/PrestaShopBundle/Twig/Component/QuickAccess.php

-
message: "#^Class Link is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
count: 1
path: src/PrestaShopBundle/Twig/Component/SearchForm.php

-
message: "#^Namespace Link is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
count: 1
path: src/PrestaShopBundle/Twig/Component/SearchForm.php
4 changes: 2 additions & 2 deletions src/PrestaShopBundle/Twig/Component/SearchForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public function __construct(private readonly RequestStack $requestStack)
public function mount(): void
{
$request = $this->requestStack->getCurrentRequest();
$this->boQuery = $request->query->get(self::BO_QUERY_PARAM) ?: '';
$this->searchType = (int) $request->query->get(self::BO_SEARCH_TYPE_PARAM) ?: 0;
$this->boQuery = $request->query->get(self::BO_QUERY_PARAM, '');
$this->searchType = (int) $request->query->get(self::BO_SEARCH_TYPE_PARAM, 0);
$this->showClearBtn = !empty($this->boQuery);
}
}

0 comments on commit 4f508c0

Please sign in to comment.