specify $projectId parameter as int

This commit is contained in:
Marc Michalsky forumZFD 2020-10-07 15:19:56 +02:00
parent 6b761ddbbb
commit 55d0add9e7
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -57,7 +57,7 @@ class TwingleApiCall {
* *
* @return mixed * @return mixed
*/ */
public function getProject($projectId = NULL) { public function getProject(int $projectId = NULL) {
$response = []; $response = [];
foreach ($this->organisationId as $organisationId) { foreach ($this->organisationId as $organisationId) {
$url = empty($projectId) $url = empty($projectId)