From b7f9b17881880bc798f7486d93d42b1cb69d2a45 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 1 Aug 2021 02:20:09 +0200 Subject: [PATCH] Psalm: suppress two notices The current version of Psalm flags the following issues: ``` ERROR: InvalidReturnType - src\Utils.php:44:16 - The declared return type 'array' for phpDocumentor\Reflection\Utils::pregSplit is incorrect, got 'list|string>' (see https://psalm.dev/011) * @return string[] Returns an array containing substrings of subject split along boundaries matched by pattern ERROR: InvalidReturnStatement - src\Utils.php:55:16 - The inferred type 'list|string>' does not match the declared return type 'array' for phpDocumentor\Reflection\Utils::pregSplit (see https://psalm.dev/128) return $parts; ``` I'm suggest ignoring this as `list` isn't an officially supported type. --- psalm.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/psalm.xml b/psalm.xml index 7324a2c..5c4b6df 100644 --- a/psalm.xml +++ b/psalm.xml @@ -41,5 +41,17 @@ + + + + + + + + + + + +