From add1aa4e7de83f4ad01235ba2c44955bb10d7888 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 15 Jul 2026 14:30:35 +0200 Subject: [PATCH] psalm fixes --- composer.json | 6 +++--- psalm.xml | 2 ++ src/DAV/QueryParser.php | 5 ++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index afc133d..66bc810 100644 --- a/composer.json +++ b/composer.json @@ -9,15 +9,15 @@ } ], "require": { - "php": ">=7.3 || >=8.0", + "php": ">=8.2", "sabre/dav": "^4.0.0" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.0", "friendsofphp/php-cs-fixer": "^2", "phpstan/phpstan": "^2.2", - "psalm/phar": "^4.3", - "phpunit/phpunit": "^8" + "psalm/phar": "^6.16.1", + "phpunit/phpunit": "^11" }, "autoload": { "psr-4": { diff --git a/psalm.xml b/psalm.xml index 30258a7..a84cd20 100644 --- a/psalm.xml +++ b/psalm.xml @@ -5,6 +5,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" + ensureOverrideAttribute="false" + findUnusedCode="false" > diff --git a/src/DAV/QueryParser.php b/src/DAV/QueryParser.php index 5a5b89f..a225fe0 100644 --- a/src/DAV/QueryParser.php +++ b/src/DAV/QueryParser.php @@ -34,7 +34,10 @@ use function Sabre\Xml\Deserializer\keyValue; use function Sabre\Xml\Deserializer\repeatingElements; class QueryParser extends Service { - /** @var array */ + /** + * @psalm-suppress NonInvariantDocblockPropertyType + * @var array + */ public $namespaceMap = [ 'DAV:' => 'd', 'http://sabredav.org/ns' => 's',