mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Spread validator args
This commit is contained in:
parent
aa0111550b
commit
7c3d2c8435
1 changed files with 1 additions and 1 deletions
|
|
@ -327,7 +327,7 @@ class Swagger2 extends Format
|
|||
foreach ($parameters as $name => $param) { // Set params
|
||||
/** @var Validator $validator */
|
||||
$validator = (\is_callable($param['validator']))
|
||||
? ($param['validator'])($this->app->getResources($param['injections']))
|
||||
? ($param['validator'])(...$this->app->getResources($param['injections']))
|
||||
: $param['validator'];
|
||||
|
||||
$node = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue