From d232ba594412d60f996d7581de6d74288acf7eb0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 28 Feb 2020 18:53:35 +0100 Subject: [PATCH] improve baseline --- Config/phpstan-baseline.neon | 13 +------------ Config/phpstan.neon | 2 ++ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Config/phpstan-baseline.neon b/Config/phpstan-baseline.neon index 7707bf4..9c2e957 100644 --- a/Config/phpstan-baseline.neon +++ b/Config/phpstan-baseline.neon @@ -2633,15 +2633,4 @@ parameters: - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, string\\|null given\\.$#" count: 1 - path: phpOMS/Utils/Parser/Markdown/Markdown.php - - - - message: "#^Offset 0 does not exist on array\\|null\\.$#" - count: 1 - path: phpOMS/Utils/RnG/Phone.php - - - - message: "#^Offset 1 does not exist on array\\|null\\.$#" - count: 1 - path: phpOMS/Utils/RnG/Phone.php - + path: phpOMS/Utils/Parser/Markdown/Markdown.php \ No newline at end of file diff --git a/Config/phpstan.neon b/Config/phpstan.neon index 2801373..8d644d9 100755 --- a/Config/phpstan.neon +++ b/Config/phpstan.neon @@ -36,6 +36,8 @@ parameters: - '#[.]*PhpOffice\\PhpSpreadsheet\\[.]*#' - '#^Call to an undefined method phpOMS\\Module\\ModuleAbstract::[.]*#' - '#^Strict comparison using === between[.]*#' + - '#[.]*jsonSerialize\(\) has no return typehint specified#' + - '#[.]*unserialize\(\) has parameter [.]* with no typehint specified#' - '#expects phpOMS\\Algorithm\\PathFinding\\JumpPointNode\|null, phpOMS\\Algorithm\\PathFinding\\Node\|null given#' - '#should return array but returns array