mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-08-03 04:34:51 +02:00
refactor(phpstan): Bump phpstan level to 6
Signed-off-by: Carl Schwan <carlschwan@kde.org>
This commit is contained in:
parent
76d787ac73
commit
4ccbe75c73
5 changed files with 23 additions and 21 deletions
|
|
@ -34,14 +34,9 @@ use SearchDAV\XML\QueryDiscoverResponse;
|
|||
use SearchDAV\XML\Scope;
|
||||
|
||||
class DiscoverHandler {
|
||||
/** @var ISearchBackend */
|
||||
private $searchBackend;
|
||||
|
||||
/** @var PathHelper */
|
||||
private $pathHelper;
|
||||
|
||||
/** @var QueryParser */
|
||||
private $queryParser;
|
||||
private ISearchBackend $searchBackend;
|
||||
private PathHelper $pathHelper;
|
||||
private QueryParser $queryParser;
|
||||
|
||||
/**
|
||||
* @param ISearchBackend $searchBackend
|
||||
|
|
@ -54,6 +49,9 @@ class DiscoverHandler {
|
|||
$this->queryParser = $queryParser;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed>|object|string $xml
|
||||
*/
|
||||
public function handelDiscoverRequest($xml, RequestInterface $request, ResponseInterface $response): bool {
|
||||
if (!isset($xml['{DAV:}basicsearch'])) {
|
||||
$response->setStatus(400);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue