Update phpstan baseline

This commit is contained in:
Joshua Ramon Enslin 2023-08-16 22:49:56 +02:00
parent 91186de676
commit d13972229f
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -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\\<non\\-empty\\-string\\> but returns list\\<string\\>\\.$#"
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