From cc4c147b15518dceb7d3a384a71fa1ff4ce11b75 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 6 May 2025 13:36:45 +1200 Subject: [PATCH] First class callable syntax --- src/Appwrite/Platform/Tasks/Specs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Tasks/Specs.php b/src/Appwrite/Platform/Tasks/Specs.php index 389e8b523f..76c9db079a 100644 --- a/src/Appwrite/Platform/Tasks/Specs.php +++ b/src/Appwrite/Platform/Tasks/Specs.php @@ -49,7 +49,7 @@ class Specs extends Action ->desc('Generate Appwrite API specifications') ->param('version', 'latest', new Text(16), 'Spec version', true) ->param('mode', 'normal', new WhiteList(['normal', 'mocks']), 'Spec Mode', true) - ->callback([$this, 'action']); + ->callback($this->action(...)); } public function action(string $version, string $mode): void