fix: return types
This commit is contained in:
parent
a233a30d28
commit
a34223748b
3 changed files with 8 additions and 6 deletions
|
@ -123,10 +123,12 @@ class BuildsV1 extends Worker
|
|||
/** Trigger Functions */
|
||||
$pools = $register->get('pools');
|
||||
$connection = $pools->get('queue')->pop();
|
||||
|
||||
$functions = new Func($connection->getResource());
|
||||
$functions
|
||||
->from($deploymentUpdate)
|
||||
->trigger();
|
||||
|
||||
$connection->reclaim();
|
||||
|
||||
/** Trigger Realtime */
|
||||
|
|
2
composer.lock
generated
2
composer.lock
generated
|
@ -5302,5 +5302,5 @@
|
|||
"platform-overrides": {
|
||||
"php": "8.0"
|
||||
},
|
||||
"plugin-api-version": "2.1.0"
|
||||
"plugin-api-version": "2.3.0"
|
||||
}
|
||||
|
|
|
@ -116,9 +116,9 @@ class Event
|
|||
/**
|
||||
* Get project for this event.
|
||||
*
|
||||
* @return Document
|
||||
* @return ?Document
|
||||
*/
|
||||
public function getProject(): Document
|
||||
public function getProject(): ?Document
|
||||
{
|
||||
return $this->project;
|
||||
}
|
||||
|
@ -137,11 +137,11 @@ class Event
|
|||
}
|
||||
|
||||
/**
|
||||
* Get project for this event.
|
||||
* Get user responsible for triggering this event.
|
||||
*
|
||||
* @return Document
|
||||
* @return ?Document
|
||||
*/
|
||||
public function getUser(): Document
|
||||
public function getUser(): ?Document
|
||||
{
|
||||
return $this->user;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue