diff --git a/controllers/admin/AdminMollieLogsController.php b/controllers/admin/AdminMollieLogsController.php index 4974afcf9..d24f5f9af 100644 --- a/controllers/admin/AdminMollieLogsController.php +++ b/controllers/admin/AdminMollieLogsController.php @@ -310,7 +310,7 @@ public function displayAjaxGetLog() } /** - * @param null $value + * @param string|false|null $value * @param null $controller * @param null $method * diff --git a/src/Utility/VersionUtility.php b/src/Utility/VersionUtility.php index 8b073156a..c3c27468f 100644 --- a/src/Utility/VersionUtility.php +++ b/src/Utility/VersionUtility.php @@ -31,7 +31,7 @@ public static function isPsVersionGreaterOrEqualTo($version): int public static function isPsVersionLessThanOrEqualTo($version): int { - return (int)version_compare(_PS_VERSION_, $version, '<='); + return (int) version_compare(_PS_VERSION_, $version, '<='); } public static function isPsVersionEqualTo($version): int diff --git a/tests/phpstan/phpstan_base.neon b/tests/phpstan/phpstan_base.neon index 45fa1b372..d864a72a9 100644 --- a/tests/phpstan/phpstan_base.neon +++ b/tests/phpstan/phpstan_base.neon @@ -43,5 +43,9 @@ parameters: - '#Call to function is_subclass_of\(\) with.*will always evaluate to false.#' - '#Call to function is_array\(\) with.*will always evaluate to false.#' - '#Property AdminControllerCore\:\:\$_use_found_rows (string) does not accept false.#' + - '#Access to undefined constant PrestaShopLogger::LOG_SEVERITY_LEVEL_INFORMATIVE.#' + - '#Access to undefined constant PrestaShopLogger::LOG_SEVERITY_LEVEL_WARNING.#' + - '#Access to undefined constant PrestaShopLogger::LOG_SEVERITY_LEVEL_ERROR.#' + - '#Access to undefined constant PrestaShopLogger::LOG_SEVERITY_LEVEL_MAJOR.#' level: 5