Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 2c89f05

Browse files
author
sathielemann
committed
Make check for authKey more expressive
1 parent 5f3ce19 commit 2c89f05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function setTimeout($timeout)
192192
*/
193193
public function buildBaseUrl(string $resource = 'translate'): string
194194
{
195-
if ($this->authKey) {
195+
if (!empty($this->authKey)) {
196196
return sprintf(
197197
self::API_URL_BASE,
198198
self::API_URL_SCHEMA,

0 commit comments

Comments
 (0)