Skip to content

Commit

Permalink
[BUGFIX] Convert function argument to int to match signature (#1705)
Browse files Browse the repository at this point in the history
The identifier field of AbstractProvider is defined as being of type string.
The RootPageResolver expects an int as argument for the call to getIsRootPageId(). This mismatch
causes a check for pageId 0 to fail
  • Loading branch information
pschriner authored and timohund committed Oct 27, 2017
1 parent 93da871 commit c3f8f0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function canHandle(): bool

/** @var $rootPageResolver RootPageResolver */
$rootPageResolver = GeneralUtility::makeInstance(RootPageResolver::class);
return $rootPageResolver->getIsRootPageId($this->identifier);
return $rootPageResolver->getIsRootPageId((int)$this->identifier);
}

/**
Expand Down

0 comments on commit c3f8f0d

Please sign in to comment.