From d7174d0de36f07488054feb77f649c5945b4ab9f Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 21 Jan 2026 23:05:13 +1300 Subject: [PATCH] Fix PSR-12 style for arrow functions Co-Authored-By: Claude Opus 4.5 --- src/Appwrite/Promises/Swoole.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Appwrite/Promises/Swoole.php b/src/Appwrite/Promises/Swoole.php index 8e81fe2ba7..1109d2bf7e 100644 --- a/src/Appwrite/Promises/Swoole.php +++ b/src/Appwrite/Promises/Swoole.php @@ -30,8 +30,8 @@ class Swoole extends Promise try { $executor( - fn($value) => $this->doResolve($value), - fn($reason) => $this->doReject($reason) + fn ($value) => $this->doResolve($value), + fn ($reason) => $this->doReject($reason) ); } catch (\Throwable $e) { $this->doReject($e); @@ -55,8 +55,8 @@ class Swoole extends Promise // Handle thenable values if (\is_object($value) && \method_exists($value, 'then')) { $value->then( - fn($v) => $this->doResolve($v), - fn($r) => $this->doReject($r) + fn ($v) => $this->doResolve($v), + fn ($r) => $this->doReject($r) ); return; }