1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

fix: return types

This commit is contained in:
Christy Jacob 2022-11-16 17:32:35 +00:00
parent a233a30d28
commit a34223748b
3 changed files with 8 additions and 6 deletions

View file

@ -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
View file

@ -5302,5 +5302,5 @@
"platform-overrides": {
"php": "8.0"
},
"plugin-api-version": "2.1.0"
"plugin-api-version": "2.3.0"
}

View file

@ -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;
}