diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2022-02-01 10:50:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 10:50:28 +0100 |
commit | d635d58d19d5ab65c0be754fc32fce99672c249f (patch) | |
tree | 4b9dc1074213fbcce52ae1d1b191c9a801437bf3 /build | |
parent | 16521e9f7c23f255043fac8457fa104ea42b31d0 (diff) | |
parent | 910e1aa8e63deb799d91c7d7a331439f3c593f17 (diff) | |
download | nextcloud-server-d635d58d19d5ab65c0be754fc32fce99672c249f.tar.gz nextcloud-server-d635d58d19d5ab65c0be754fc32fce99672c249f.zip |
Merge pull request #29286 from nextcloud/enhancement/drop-php-7-3
Drop PHP7.3
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/bootstrap/CommentsContext.php | 2 | ||||
-rw-r--r-- | build/integration/features/bootstrap/Sharing.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/build/integration/features/bootstrap/CommentsContext.php b/build/integration/features/bootstrap/CommentsContext.php index afd9b31bc24..ad2d752b4dd 100644 --- a/build/integration/features/bootstrap/CommentsContext.php +++ b/build/integration/features/bootstrap/CommentsContext.php @@ -175,7 +175,7 @@ class CommentsContext implements \Behat\Behat\Context\Context { if ($res->getStatusCode() === 207) { $service = new Sabre\Xml\Service(); $this->response = $service->parse($res->getBody()->getContents()); - $this->commentId = (int)$this->response[0]['value'][2]['value'][0]['value'][0]['value']; + $this->commentId = (int) ($this->response[0]['value'][2]['value'][0]['value'][0]['value'] ?? 0); } } diff --git a/build/integration/features/bootstrap/Sharing.php b/build/integration/features/bootstrap/Sharing.php index 1e399456054..deff350475b 100644 --- a/build/integration/features/bootstrap/Sharing.php +++ b/build/integration/features/bootstrap/Sharing.php @@ -679,14 +679,14 @@ trait Sharing { * @When save last share id */ public function saveLastShareId() { - $this->savedShareId = $this->lastShareData['data']['id']; + $this->savedShareId = ($this->lastShareData['data']['id'] ?? null); } /** * @Then share ids should match */ public function shareIdsShouldMatch() { - if ($this->savedShareId !== $this->lastShareData['data']['id']) { + if ($this->savedShareId !== ($this->lastShareData['data']['id'] ?? null)) { throw new \Exception('Expected the same link share to be returned'); } } |