Skip to content

Commit

Permalink
Remove type declarations for properties due to supporting PHP 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Mar 7, 2022
1 parent 691b700 commit 08d0f5a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

final class AdminSectionCacheControlSubscriber implements EventSubscriberInterface
{
private SectionProviderInterface $sectionProvider;
/** @var SectionProviderInterface */
private $sectionProvider;

public function __construct(SectionProviderInterface $sectionProvider)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

final class ShopCustomerAccountSubSectionCacheControlSubscriber implements EventSubscriberInterface
{
private SectionProviderInterface $sectionProvider;
/** @var SectionProviderInterface */
private $sectionProvider;

public function __construct(SectionProviderInterface $sectionProvider)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@

final class ShopUriBasedSectionResolver implements UriBasedSectionResolverInterface
{
private string $shopCustomerAccountResourceUri;
/** @var string */
private $shopCustomerAccountUri;

public function __construct(string $shopCustomerAccountResourceUri = 'account')
public function __construct(string $shopCustomerAccountUri = 'account')
{
$this->shopCustomerAccountResourceUri = $shopCustomerAccountResourceUri;
$this->shopCustomerAccountUri = $shopCustomerAccountUri;
}

public function getSection(string $uri): SectionInterface
{
if (str_contains($uri, $this->shopCustomerAccountResourceUri)) {
if (str_contains($uri, $this->shopCustomerAccountUri)) {
return new ShopCustomerAccountSubSection();
}

Expand Down

0 comments on commit 08d0f5a

Please sign in to comment.