summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-02-15 11:42:00 +0100
committerGitHub <noreply@github.com>2021-02-15 11:42:00 +0100
commit3ca3fefb3c850839a1f9b61fb25c6d637c82c3d5 (patch)
treeca1bca1f66e35a967267376a637b557e86592a6a
parent19666a0942fee5020e99e7543fcb3c20c3a1bf19 (diff)
parent11a9bd3e19cff16809c5f2e749267dc96e9d17f1 (diff)
downloadnextcloud-server-3ca3fefb3c850839a1f9b61fb25c6d637c82c3d5.tar.gz
nextcloud-server-3ca3fefb3c850839a1f9b61fb25c6d637c82c3d5.zip
Merge pull request #25645 from nextcloud/enh/pslam/ocs_result
Some OCS result psalm fixes
-rw-r--r--lib/private/OCS/Result.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/OCS/Result.php b/lib/private/OCS/Result.php
index 0199783b47d..be2e6259309 100644
--- a/lib/private/OCS/Result.php
+++ b/lib/private/OCS/Result.php
@@ -104,10 +104,10 @@ class Result {
$meta['status'] = $this->succeeded() ? 'ok' : 'failure';
$meta['statuscode'] = $this->statusCode;
$meta['message'] = $this->message;
- if (isset($this->items)) {
+ if ($this->items !== null) {
$meta['totalitems'] = $this->items;
}
- if (isset($this->perPage)) {
+ if ($this->perPage !== null) {
$meta['itemsperpage'] = $this->perPage;
}
return $meta;