From 721d5ed64b704f4ee71630c00cf44163f2156de0 Mon Sep 17 00:00:00 2001 From: jesse Date: Tue, 30 Jul 2024 09:10:45 +0800 Subject: [PATCH] fix PHP8 array_slice($results, null) which cause diffusion pattern search broken Test Plan: check diffusion pattern search if working Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25756 --- .../diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php b/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php index ba4c824061..5f40aa06bb 100644 --- a/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php +++ b/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php @@ -40,7 +40,7 @@ final class DiffusionSearchQueryConduitAPIMethod throw $ex; } - $offset = $request->getValue('offset'); + $offset = $request->getValue('offset', 0); $results = array_slice($results, $offset); return $results;