Files
2024-11-11 18:46:54 +01:00

35 lines
1.5 KiB
Plaintext

#################################################################################
# This file is a copy of phpstan.neon with additional rules for PS 1.6
# Its objective is to avoid false-positive results regarding non-existing classes
#################################################################################
parameters:
bootstrap: /web/module/tests/phpstan/bootstrap.php
reportUnmatchedIgnoredErrors: false
paths:
- /web/module/classes
excludes_analyse:
- /web/module/classes/Tools14.php
- /web/module/classes/pclzip.lib.php
- /web/module/functions.php
- /web/module/classes/UpgradeTools/CoreUpgrader/CoreUpgrader17.php
- /web/module/classes/UpgradeTools/SymfonyAdapter.php
ignoreErrors:
# module specific
- '#Function deactivate_custom_modules not found.#'
- '#Constant MCRYPT_[A-Z0-9_]+ not found.#'
- "#Call to function method_exists#"
# CLDR related check
- '#[cC]lass PrestaShop\\PrestaShop\\Core\\Cldr\\Update#'
# AppKernel wasn't properly listed in autoloader
- '#AppKernel#'
- '#Access to offset 0 on an unknown class mysqli_result.#'
- '#Iterating over an object of an unknown class mysqli_result.#'
# Below are messages ignored on PS 1.6
- '#[cC]lass PrestaShop\\PrestaShop\\Core\\Addon\\Theme\\ThemeManagerBuilder#'
- '#PrestaShop\\Module\\AutoUpgrade\\UpgradeTools\\ModuleAdapter#'
- '#PrestaShop\\PrestaShop\\Adapter\\Module\\ModuleDataUpdater#'
- '#PrestaShopBundle\\Install\\Upgrade#'
- '#Call to an undefined static method ConfigurationTest::test_curl().#'
level: 5