From d13972229f3273435dc1f4ba7611d7e110349976 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Wed, 16 Aug 2023 22:49:56 +0200 Subject: [PATCH] Update phpstan baseline --- phpstan-baseline.neon | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 48b5f43..ad05031 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,5 +1,10 @@ parameters: ignoreErrors: + - + message: "#^Only booleans are allowed in a ternary operator condition, int\\|false given\\.$#" + count: 1 + path: classes/MDAllowedValueSets/src/enums/MDNodaRepository.php + - message: "#^Calling file_get_contents\\(\\) is forbidden, use MD_STD\\:\\:file_get_contents\\(\\) instead$#" count: 1 @@ -15,11 +20,6 @@ parameters: count: 1 path: classes/MDTlLoader/src/MDTlLoader.php - - - message: "#^Method Redis\\:\\:connect\\(\\) invoked with 7 parameters, 1\\-6 required\\.$#" - count: 1 - path: classes/MDTlLoader/src/MDTlLoader.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" count: 3 @@ -75,11 +75,6 @@ parameters: count: 1 path: classes/MD_STD/src/MD_STD.php - - - message: "#^Method MD_STD\\:\\:get_user_lang\\(\\) should return non\\-empty\\-string but returns string\\.$#" - count: 1 - path: classes/MD_STD/src/MD_STD.php - - message: "#^Method MD_STD\\:\\:scandir\\(\\) should return array\\ but returns list\\\\.$#" count: 1 @@ -100,21 +95,6 @@ parameters: count: 1 path: classes/MD_STD/src/MD_STD_CACHE.php - - - message: "#^Method MD_STD_CACHE\\:\\:serve_page_through_redis_cache\\(\\) has parameter \\$redis with a nullable type declaration\\.$#" - count: 1 - path: classes/MD_STD/src/MD_STD_CACHE.php - - - - message: "#^Method MD_STD_CACHE\\:\\:serve_page_through_redis_cache\\(\\) has parameter \\$redis with null as default value\\.$#" - count: 1 - path: classes/MD_STD/src/MD_STD_CACHE.php - - - - message: "#^Method Redis\\:\\:connect\\(\\) invoked with 7 parameters, 1\\-6 required\\.$#" - count: 1 - path: classes/MD_STD/src/MD_STD_CACHE.php - - message: "#^Strict comparison using \\!\\=\\= between string and false will always evaluate to true\\.$#" count: 1