diff options
Diffstat (limited to 'core/Controller/AutoCompleteController.php')
-rw-r--r-- | core/Controller/AutoCompleteController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/AutoCompleteController.php b/core/Controller/AutoCompleteController.php index fd7f9188f96..0b692d85277 100644 --- a/core/Controller/AutoCompleteController.php +++ b/core/Controller/AutoCompleteController.php @@ -123,8 +123,8 @@ class AutoCompleteController extends OCSController { /** @var ?string $subline */ $subline = array_key_exists('subline', $result) ? $result['subline'] : null; - /** @var ?string $status */ - $status = array_key_exists('status', $result) && is_string($result['status']) ? $result['status'] : null; + /** @var ?array{status: string, message: ?string, icon: ?string, clearAt: ?int} $status */ + $status = array_key_exists('status', $result) && is_array($result['status']) && !empty($result['status']) ? $result['status'] : null; /** @var ?string $shareWithDisplayNameUnique */ $shareWithDisplayNameUnique = array_key_exists('shareWithDisplayNameUnique', $result) ? $result['shareWithDisplayNameUnique'] : null; |