From 0bd96eb05f9fbecef0ad2019648dc2e0dbed9ac2 Mon Sep 17 00:00:00 2001 From: John Kloor Date: Tue, 9 May 2023 08:24:07 -0400 Subject: [PATCH] Update testing dependencies. --- phpcs.xml | 26 ++++++++++++++++++++++---- psalm.xml | 2 ++ src/Data/TraitQuestions.php | 2 +- vendor-bin/psalm/composer.json | 4 ++-- 4 files changed, 27 insertions(+), 7 deletions(-) diff --git a/phpcs.xml b/phpcs.xml index 76fba5b..633c811 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -5,7 +5,9 @@ - + + + @@ -65,16 +67,19 @@ + + + - + @@ -90,6 +95,7 @@ + @@ -115,13 +121,19 @@ + - + + + + + + @@ -141,7 +153,11 @@ - + + + + + @@ -192,6 +208,7 @@ + @@ -207,6 +224,7 @@ + diff --git a/psalm.xml b/psalm.xml index 83d2986..a4da5dc 100644 --- a/psalm.xml +++ b/psalm.xml @@ -4,8 +4,10 @@ ensureArrayIntOffsetsExist="true" ensureArrayStringOffsetsExist="true" errorLevel="1" + findUnusedBaselineEntry="true" findUnusedVariablesAndParams="true" findUnusedPsalmSuppress="true" + findUnusedCode="false" ignoreInternalFunctionFalseReturn="false" ignoreInternalFunctionNullReturn="false" resolveFromConfigFile="false" diff --git a/src/Data/TraitQuestions.php b/src/Data/TraitQuestions.php index 387cce7..08625c6 100644 --- a/src/Data/TraitQuestions.php +++ b/src/Data/TraitQuestions.php @@ -67,7 +67,7 @@ final protected static function mapper(): \JsonMapper * @param string $property A property name of the JSON object. * @return bool If the name is the letter q followed by an integer. */ - final private static function isQuestion(string $property): bool + private static function isQuestion(string $property): bool { $result = \filter_var( $property, diff --git a/vendor-bin/psalm/composer.json b/vendor-bin/psalm/composer.json index 4e609b1..501eac5 100644 --- a/vendor-bin/psalm/composer.json +++ b/vendor-bin/psalm/composer.json @@ -1,6 +1,6 @@ { "require-dev": { - "psalm/plugin-phpunit": "^0.17", - "vimeo/psalm": "^4.0" + "psalm/plugin-phpunit": "^0.18", + "vimeo/psalm": "^5.0" } }