From 4afdb840bca20244139cd8b1e22080852c974415 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Mon, 13 May 2024 13:08:44 +0200 Subject: [PATCH] Fix phpstan errors --- phpstan-baseline-common.neon | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/phpstan-baseline-common.neon b/phpstan-baseline-common.neon index 651eb564..6d8c88ce 100644 --- a/phpstan-baseline-common.neon +++ b/phpstan-baseline-common.neon @@ -105,11 +105,6 @@ parameters: count: 1 path: application/controllers/CertificateController.php - - - message: "#^Parameter \\#1 \\$cert of method Icinga\\\\Module\\\\X509\\\\CertificateDetails\\:\\:setCert\\(\\) expects Icinga\\\\Module\\\\X509\\\\Model\\\\X509Certificate, Icinga\\\\Module\\\\X509\\\\Model\\\\X509Certificate\\|null given\\.$#" - count: 1 - path: application/controllers/CertificateController.php - - message: "#^Parameter \\#2 \\$value of static method ipl\\\\Stdlib\\\\Filter\\:\\:equal\\(\\) expects array\\|bool\\|float\\|int\\|string, mixed given\\.$#" count: 1 @@ -155,31 +150,21 @@ parameters: count: 1 path: application/controllers/ChainController.php - - - message: "#^Cannot access property \\$target on Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateChain\\|null\\.$#" - count: 3 - path: application/controllers/ChainController.php - - message: "#^Method Icinga\\\\Module\\\\X509\\\\Controllers\\\\ChainController\\:\\:indexAction\\(\\) has no return type specified\\.$#" count: 1 path: application/controllers/ChainController.php - - message: "#^Offset 'invalid_reason' does not exist on Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateChain\\|null\\.$#" - count: 1 + message: "#^Parameter \\#2 \\$value of static method ipl\\\\Stdlib\\\\Filter\\:\\:equal\\(\\) expects array\\|bool\\|float\\|int\\|string, mixed given\\.$#" + count: 2 path: application/controllers/ChainController.php - - message: "#^Offset 'valid' does not exist on Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateChain\\|null\\.$#" + message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" count: 1 path: application/controllers/ChainController.php - - - message: "#^Parameter \\#2 \\$value of static method ipl\\\\Stdlib\\\\Filter\\:\\:equal\\(\\) expects array\\|bool\\|float\\|int\\|string, mixed given\\.$#" - count: 2 - path: application/controllers/ChainController.php - - message: "#^Method Icinga\\\\Module\\\\X509\\\\Controllers\\\\ConfigController\\:\\:backendAction\\(\\) has no return type specified\\.$#" count: 1