Skip to content

Commit 188a7c0

Browse files
feat: Support path in STACKKIT_CLOUD_TASKS_HANDLER
1 parent dc54faa commit 188a7c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static function getHandler($handler): string
6666
$trimmedHandlerUrl = rtrim($handler, '/');
6767

6868
if (!str_ends_with($trimmedHandlerUrl, '/handle-task')) {
69-
return $trimmedHandlerUrl . '/handle-task';
69+
return "$trimmedHandlerUrl/handle-task";
7070
}
7171

7272
return $trimmedHandlerUrl;

tests/ConfigHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Stackkit\LaravelGoogleCloudTasksQueue\Config;
66

7-
class ConfigHandlerTest extends TestCase
7+
class ConfigHandlerTest extends \PHPUnit\Framework\TestCase
88
{
99
/**
1010
* @dataProvider handlerDataProvider
@@ -24,4 +24,4 @@ public function handlerDataProvider(): array
2424
['https://example.com/handle-task/', 'https://example.com/handle-task'],
2525
];
2626
}
27-
}
27+
}

0 commit comments

Comments
 (0)