2
0
forked from Wavyzz/dolibarr

Fix phpstan rules

This commit is contained in:
ldestailleur
2025-08-10 03:52:56 +02:00
parent aa0e5c57a0
commit 0f69530cb4
2 changed files with 4 additions and 4 deletions

View File

@@ -71,10 +71,10 @@ parameters:
# or pattern to avoid false positive of some bugged or allowed phpstan checks # or pattern to avoid false positive of some bugged or allowed phpstan checks
ignoreErrors: ignoreErrors:
- '#.*phan-var#' - '#.*phan-var#'
- '#^Expression "''…" on a separate line does not do anything\.$#' - '#^Expression "''…" on a separate line does not do anything#'
- '#Empty array passed to foreach#' - '#Empty array passed to foreach#'
- '#Unable to resolve the template type T#' - '#Unable to resolve the template type T#'
- '#in empty\(\) always exists and is always falsy.#' - '#in empty\(\) always exists and is always falsy#'
- '#is always#' - '#is always#'
internalErrorsCountLimit: 50 internalErrorsCountLimit: 50
cache: cache:

View File

@@ -73,10 +73,10 @@ parameters:
# or pattern to avoid false positive of some bugged or allowed phpstan checks # or pattern to avoid false positive of some bugged or allowed phpstan checks
ignoreErrors: ignoreErrors:
- '#.*phan-var#' - '#.*phan-var#'
- '#^Expression "''…" on a separate line does not do anything\.$#' - '#^Expression "''…" on a separate line does not do anything#'
- '#Empty array passed to foreach#' - '#Empty array passed to foreach#'
- '#Unable to resolve the template type T#' - '#Unable to resolve the template type T#'
- '#in empty\(\) always exists and is always falsy.#' - '#in empty\(\) always exists and is always falsy#'
internalErrorsCountLimit: 50 internalErrorsCountLimit: 50
cache: cache:
# nodesByFileCountMax: 512 # nodesByFileCountMax: 512