Commit 86e00ce7 authored by Stefan Busemann's avatar Stefan Busemann

Apply suggestion to extensions/t3o_slack/Classes/ViewHelpers/ShowSlackLinkViewHelper.php

parent 8b0e7cdf
Pipeline #7071 passed with stages
in 2 minutes and 52 seconds
...@@ -26,7 +26,7 @@ class ShowSlackLinkViewHelper extends AbstractViewHelper ...@@ -26,7 +26,7 @@ class ShowSlackLinkViewHelper extends AbstractViewHelper
*/ */
public function render() public function render()
{ {
$feUser = $this->slackFrontendUserRepository->findByUid($this->arguments['frontendUserUID']); $feUser = $this->slackFrontendUserRepository->findByUid((int)$this->arguments['frontendUserUID']);
$slackUser = $this->slackUserRepository->findBySlackId($feUser->getSlackId()); $slackUser = $this->slackUserRepository->findBySlackId($feUser->getSlackId());
if ($slackUser) { if ($slackUser) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment