mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
First class callable syntax
This commit is contained in:
parent
66a40eb175
commit
cc4c147b15
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue