Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Merge branch 'pu/ps/tbJson' into '2021.11'
Browse files Browse the repository at this point in the history
fix(Tinebase/Json): fix method phpdoc and failure handling

See merge request tine20/tine20!2258
  • Loading branch information
pschuele committed May 11, 2022
2 parents 8a86765 + 8be358b commit b29a044
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tine20/Tinebase/Frontend/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -1547,8 +1547,8 @@ public function autoComplete($appName, $modelName, $property, $startswith)
}

/**
* @param string|null $accountLoginName
* @param string|null $mfaId
* @param ?string $accountLoginName
* @param ?string $mfaId
* @return array
* @throws Tinebase_Exception_Backend
* @throws Tinebase_Exception_NotFound
Expand Down
2 changes: 1 addition & 1 deletion tine20/Tinebase/Server/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ protected function _handleException($request, $exception)
if (method_exists($request, 'getId') && null !== ($id = $request->getId())) {
$response->setId($id);
}
if (null !== ($version = $request->getVersion())) {
if ($request && null !== ($version = $request->getVersion())) {
$response->setVersion($version);
}

Expand Down

0 comments on commit b29a044

Please sign in to comment.