From 8038b9003e87fdfc76328eaf519e2817b48e87e9 Mon Sep 17 00:00:00 2001 From: Marick van Tuil Date: Sun, 22 Mar 2026 15:09:28 +0100 Subject: [PATCH 1/3] Start work on Laravel 13 update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9e870a2..2c6b2a5 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This package allows you to use Google Cloud Tasks as the queue driver in your La ### Requirements -This package requires Laravel 11 or 12. +This package requires Laravel 12 or 13. ### Installation From 84ae47416a3670c673b4d9118e1e02d03343c7c6 Mon Sep 17 00:00:00 2001 From: Marick van Tuil Date: Sun, 22 Mar 2026 15:24:55 +0100 Subject: [PATCH 2/3] Update versions and implement L13 size queue functions --- composer.json | 4 ++-- matrix.json | 9 +++++---- src/CloudTasksQueue.php | 44 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 179f1ec..53a8260 100644 --- a/composer.json +++ b/composer.json @@ -41,8 +41,8 @@ "minimum-stability": "dev", "prefer-stable": true, "scripts": { - "l11": [ - "composer require laravel/framework:11.* orchestra/testbench:9.* --no-interaction --no-update", + "l13": [ + "composer require laravel/framework:13.* orchestra/testbench:11.* --no-interaction --no-update", "composer update --prefer-stable --prefer-dist --no-interaction" ], "l12": [ diff --git a/matrix.json b/matrix.json index eefca90..a3a687e 100644 --- a/matrix.json +++ b/matrix.json @@ -8,11 +8,12 @@ { "driver": "pgsql", "version": "17" } ], "payload": [ - { "queue": "github-actions-laravel11-php82", "laravel": "11.*", "php": "8.2", "testbench": "9.*" }, - { "queue": "github-actions-laravel11-php83", "laravel": "11.*", "php": "8.3", "testbench": "9.*" }, - { "queue": "github-actions-laravel11-php84", "laravel": "11.*", "php": "8.4", "testbench": "9.*" }, { "queue": "github-actions-laravel12-php82", "laravel": "12.*", "php": "8.2", "testbench": "10.*" }, { "queue": "github-actions-laravel12-php83", "laravel": "12.*", "php": "8.3", "testbench": "10.*" }, - { "queue": "github-actions-laravel12-php84", "laravel": "12.*", "php": "8.4", "testbench": "10.*" } + { "queue": "github-actions-laravel12-php84", "laravel": "12.*", "php": "8.4", "testbench": "10.*" }, + { "queue": "github-actions-laravel12-php85", "laravel": "12.*", "php": "8.5", "testbench": "10.*" }, + { "queue": "github-actions-laravel13-php83", "laravel": "13.*", "php": "8.3", "testbench": "11.*" }, + { "queue": "github-actions-laravel13-php84", "laravel": "13.*", "php": "8.4", "testbench": "11.*" }, + { "queue": "github-actions-laravel13-php85", "laravel": "13.*", "php": "8.5", "testbench": "11.*" } ] } \ No newline at end of file diff --git a/src/CloudTasksQueue.php b/src/CloudTasksQueue.php index 1a7ed97..e6ead80 100644 --- a/src/CloudTasksQueue.php +++ b/src/CloudTasksQueue.php @@ -481,4 +481,48 @@ public function resume(string $queue): void CloudTasksApi::resume($queueName); } + + /** + * Get the number of pending jobs. + * + * @param string|null $queue + * @return int + */ + public function pendingSize($queue = null) + { + return 0; + } + + /** + * Get the number of delayed jobs. + * + * @param string|null $queue + * @return int + */ + public function delayedSize($queue = null) + { + return 0; + } + + /** + * Get the number of reserved jobs. + * + * @param string|null $queue + * @return int + */ + public function reservedSize($queue = null) + { + return 0; + } + + /** + * Get the creation timestamp of the oldest pending job, excluding delayed jobs. + * + * @param string|null $queue + * @return int|null + */ + public function creationTimeOfOldestPendingJob($queue = null) + { + return null; + } } From 88166477b79d1dfccfe7b3239e78737d25cc11ee Mon Sep 17 00:00:00 2001 From: marickvantuil <647007+marickvantuil@users.noreply.github.com> Date: Sun, 22 Mar 2026 14:25:21 +0000 Subject: [PATCH 3/3] Apply code style rules --- src/CloudTasksQueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CloudTasksQueue.php b/src/CloudTasksQueue.php index e6ead80..a75628e 100644 --- a/src/CloudTasksQueue.php +++ b/src/CloudTasksQueue.php @@ -515,7 +515,7 @@ public function reservedSize($queue = null) return 0; } - /** + /** * Get the creation timestamp of the oldest pending job, excluding delayed jobs. * * @param string|null $queue