diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 4bb2cf6eaed..72bd0fb21fb 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -44,6 +44,7 @@ parameters: polluteScopeWithAlwaysIterableForeach: true reportMagicMethods: false reportMagicProperties: false + treatPhpDocTypesAsCertain: false ignoreErrors: - '#Result of function fieldList#' - '#Caught class Stripe#' @@ -54,6 +55,7 @@ parameters: - '#(\$force_dolibarr_lib|\$dolibarr_main_db).*in empty\(\) is never defined.#' - '#Sprain\\SwissQrBill\\#' - '#Constructor of class .* has an unused parameter #' + - '#.*phan-var-force #' internalErrorsCountLimit: 50 cache: nodesByFileCountMax: 512