From 6db2abdd9ea913f7fa88668852c1675bd5fbc0f5 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Sat, 14 Dec 2024 11:58:42 +0800 Subject: [PATCH] Add missing changes from `v1.5.0` (#9) * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki --------- Signed-off-by: Mior Muhammad Zaki --- .github/workflows/audit.yaml | 1 + composer.json | 4 ++-- src/Jobs/QueuedExportAsCsv.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index a02d2c0..d895ea3 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -14,6 +14,7 @@ jobs: os: - "ubuntu-latest" php: + - 8.1 - 8.2 - 8.3 experimental: diff --git a/composer.json b/composer.json index bd2ed8d..c44b58d 100644 --- a/composer.json +++ b/composer.json @@ -37,8 +37,8 @@ "laravel/nova-devtool": "^1.0.1", "laravel/pint": "^1.17", "orchestra/testbench": "^8.20 || ^9.0", - "phpstan/phpstan": "^1.11", - "orchestra/pest-plugin-testbench": "^2.0" + "orchestra/pest-plugin-testbench": "^2.0", + "phpstan/phpstan": "^1.11" }, "conflict": { "laravel/nova": "<5.0.0 || >=6.0.0" diff --git a/src/Jobs/QueuedExportAsCsv.php b/src/Jobs/QueuedExportAsCsv.php index dde76b2..821b69a 100644 --- a/src/Jobs/QueuedExportAsCsv.php +++ b/src/Jobs/QueuedExportAsCsv.php @@ -54,7 +54,7 @@ public function handle(): void $query = unserialize($this->query); $eloquentGenerator = function () use ($query) { - foreach ($query->cursor() as $model) { + foreach ($query->lazy() as $model) { yield $model; } };