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": { "require": {
"php": ">=7.3 || >=8.0", "php": ">=8.2",
"sabre/dav": "^4.0.0" "sabre/dav": "^4.0.0"
}, },
"require-dev": { "require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.0", "php-parallel-lint/php-parallel-lint": "^1.0",
"friendsofphp/php-cs-fixer": "^2", "friendsofphp/php-cs-fixer": "^2",
"phpstan/phpstan": "^2.2", "phpstan/phpstan": "^2.2",
"psalm/phar": "^4.3", "psalm/phar": "^6.16.1",
"phpunit/phpunit": "^8" "phpunit/phpunit": "^11"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {

View file

@ -5,6 +5,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config" xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
ensureOverrideAttribute="false"
findUnusedCode="false"
> >
<projectFiles> <projectFiles>
<directory name="src" /> <directory name="src" />

View file

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