From ecfae7a4005238ba23df0349cf6cb3d9ee3e2036 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Fri, 17 Nov 2023 20:37:01 +0100 Subject: [PATCH] chore: add script to update psalm baseline Signed-off-by: Daniel Kesselberg --- composer.json | 1 + tests/psalm-baseline.xml | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 06386ea69a..16fd823873 100644 --- a/composer.json +++ b/composer.json @@ -31,6 +31,7 @@ "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", "psalm": "psalm.phar", "psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MismatchingDocblockParamType,MismatchingDocblockReturnType,MissingParamType,InvalidFalsableReturnType", + "psalm:update-baseline": "psalm.phar --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml", "cs:check": "php-cs-fixer fix --dry-run --diff", "cs:fix": "php-cs-fixer fix", "test:unit": "vendor/bin/phpunit -c tests/phpunit.xml" diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index 5366513922..c55752e530 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -10,6 +10,7 @@ + EMF MSExcel MSWord OOXML @@ -47,7 +48,7 @@ getId()]]> - $app !== '' + @@ -66,7 +67,7 @@ null - $path === '' + putContent @@ -83,6 +84,11 @@ + + + Office + + Office