Skip to content

Commit

Permalink
EZEE-3189: Improved nullable type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
mikadamczyk committed Jun 22, 2020
1 parent 901eb93 commit 1faec98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/lib/Siteaccess/NonAdminSiteaccessResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public function getSiteaccessesForLocation(
*/
public function getSiteAccessesListForLocation(
Location $location,
int $versionNo = null,
string $languageCode = null
?int $versionNo = null,
?string $languageCode = null
): array {
return array_filter(
$this->siteaccessResolver->getSiteAccessesListForLocation($location, $versionNo, $languageCode),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Siteaccess/SiteaccessResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public function getSiteaccessesForLocation(
*/
public function getSiteAccessesListForLocation(
Location $location,
int $versionNo = null,
string $languageCode = null
?int $versionNo = null,
?string $languageCode = null
): array {
$contentInfo = $location->getContentInfo();
$versionInfo = $this->contentService->loadVersionInfo($contentInfo, $versionNo);
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Siteaccess/SiteaccessResolverInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public function getSiteaccessesForLocation(
*/
public function getSiteAccessesListForLocation(
Location $location,
int $versionNo = null,
string $languageCode = null
?int $versionNo = null,
?string $languageCode = null
): array;

/**
Expand Down

0 comments on commit 1faec98

Please # to comment.