We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c978828 + fea3764 commit 0fdb8a7Copy full SHA for 0fdb8a7
src/WebAPI/Endpoints/WithAuthenticate.php
@@ -9,10 +9,10 @@ public function token(): string
9
{
10
$token = getenv('SLACK_API_ACCESS_TOKEN');
11
12
- if (!$token) {
+ if ($token === false) {
13
throw new \RuntimeException('Require Slack Api Access Token to set env: SLACK_API_ACCESS_TOKEN');
14
}
15
16
return $token;
17
18
-}
+}
tests/WebAPI/Endpoints/WithAuthenticateTest.php
@@ -22,7 +22,7 @@ public function testToken()
22
*/
23
public function testTokenException()
24
25
- putenv('SLACK_API_ACCESS_TOKEN=');
+ putenv('SLACK_API_ACCESS_TOKEN');
26
/** @var WithAuthenticate $withAuthenticate */
27
$withAuthenticate = $this->getMockForTrait(WithAuthenticate::class);
28
$this->expectException(\RuntimeException::class);
0 commit comments