Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
check access token existence
  • Loading branch information
halnique committed Jun 7, 2019
commit 2059d3a20274961aaf9b6dfd44b041e35029df68
4 changes: 2 additions & 2 deletions src/WebAPI/Endpoints/WithAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ public function token(): string
{
$token = getenv('SLACK_API_ACCESS_TOKEN');

if (!$token) {
if ($token === null) {
throw new \RuntimeException('Require Slack Api Access Token to set env: SLACK_API_ACCESS_TOKEN');
}

return $token;
}
}
}