From aca50a5744c5f9e108c050550cc8bed65e8c9b3d Mon Sep 17 00:00:00 2001 From: axiosleo Date: Mon, 1 Apr 2024 13:49:11 +0800 Subject: [PATCH] fix: Update return type of sort method in ArrayMap class --- src/ArrayMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ArrayMap.php b/src/ArrayMap.php index 9a8ade7..993b6aa 100644 --- a/src/ArrayMap.php +++ b/src/ArrayMap.php @@ -200,7 +200,7 @@ public function delete($key): self * * @return $this */ - public function sort(string $key = null, array $sortRule = []): self + public function sort(string $key = null, array $sortRule = []): mixed { $data = $this->get($key); if (!\is_array($data)) {