Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Jul 2, 2020
1 parent 0b61142 commit 7730b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bundle/API/Repository/Values/Tags/TagUpdateStruct.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class TagUpdateStruct extends TagStruct
/**
* Indicates if the tag is shown in the main language if it's not present in an other requested language.
*
* @var bool
* @var bool|null
*/
public $alwaysAvailable;
}
2 changes: 1 addition & 1 deletion bundle/Core/REST/Controller/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function redirectTag(Request $request): BaseValues\TemporaryRedirect
}

if ($request->query->has('id')) {
$tag = $this->tagsService->loadTag($request->query->get('id'));
$tag = $this->tagsService->loadTag($request->query->getInt('id'));
} else {
$tag = $this->tagsService->loadTagByRemoteId($request->query->get('remoteId'));
}
Expand Down

0 comments on commit 7730b77

Please sign in to comment.