psalm fixes

This commit is contained in:
Robin Appelman 2026-07-15 14:30:35 +02:00
commit add1aa4e7d
3 changed files with 9 additions and 4 deletions

View file

@ -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": {

View file

@ -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"
>
<projectFiles>
<directory name="src" />

View file

@ -34,7 +34,10 @@ use function Sabre\Xml\Deserializer\keyValue;
use function Sabre\Xml\Deserializer\repeatingElements;
class QueryParser extends Service {
/** @var array<string, string> */
/**
* @psalm-suppress NonInvariantDocblockPropertyType
* @var array<string, string>
*/
public $namespaceMap = [
'DAV:' => 'd',
'http://sabredav.org/ns' => 's',