Fix PSR-12 style for arrow functions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jake Barnby
2026-01-21 23:05:13 +13:00
co-authored by Claude Opus 4.5
parent 66c83162d3
commit d7174d0de3
+4 -4
View File
@@ -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;
}