first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
includes:
|
||||
- %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon
|
||||
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
# module specific
|
||||
- '~^Parameter #1 \$hook_name of method ModuleCore::registerHook\(\) expects string, array<string> given\.$~'
|
||||
- '~^Parameter #2 \$active of static method CurrencyCore::getCurrencies\(\) expects bool, int given\.$~'
|
||||
- '~^Parameter #3 \$groupBy of static method CurrencyCore::getCurrencies\(\) expects bool, Shop given\.$~'
|
||||
- '~^Parameter #\d+ \$\w+ of static method ProductCore::priceCalculation\(\) expects \w+, \w+ given\.$~'
|
||||
- '~^Parameter #1 \$master of static method DbCore::getInstance\(\) expects bool, int given\.$~'
|
||||
- '~^Parameter #1 \$string of method PrestaShop\\PrestaShop\\Core\\Product\\Search\\URLFragmentSerializer::unserialize\(\) expects string, array given\.$~'
|
||||
- '~^Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.$~'
|
||||
|
||||
- '~^Access to an undefined property Cookie::\$id_lang\.$~'
|
||||
- '~^Access to constant NUMBERING_SYSTEM_LATIN on an unknown class PrestaShop\\PrestaShop\\Core\\Localization\\Locale.$~'
|
||||
|
||||
- '~^Constant _PS_JS_DIR_ not found\.$~'
|
||||
|
||||
- '~^Class PrestaShopBundle\\Form\\Admin\\Type\\(TranslatableType|SwitchType) not found\.$~'
|
||||
|
||||
- '~^Call to an undefined method PrestaShop\\PrestaShop\\Adapter\\Tools::linkRewrite\(\).$~'
|
||||
@@ -0,0 +1,20 @@
|
||||
includes:
|
||||
- %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon
|
||||
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
# module specific
|
||||
- '~^Parameter #1 \$hook_name of method ModuleCore::registerHook\(\) expects string, array<string> given\.$~'
|
||||
- '~^Parameter #2 \$active of static method CurrencyCore::getCurrencies\(\) expects bool, int given\.$~'
|
||||
- '~^Parameter #3 \$groupBy of static method CurrencyCore::getCurrencies\(\) expects bool, Shop given\.$~'
|
||||
- '~^Parameter #\d+ \$\w+ of static method ProductCore::priceCalculation\(\) expects \w+, \w+ given\.$~'
|
||||
- '~^Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.$~'
|
||||
|
||||
- '~^Access to an undefined property Cookie::\$id_lang\.$~'
|
||||
- '~^Access to constant NUMBERING_SYSTEM_LATIN on an unknown class PrestaShop\\PrestaShop\\Core\\Localization\\Locale.$~'
|
||||
|
||||
- '~^Constant _PS_JS_DIR_ not found\.$~'
|
||||
|
||||
- '~^Class PrestaShopBundle\\Form\\Admin\\Type\\(TranslatableType|SwitchType) not found\.$~'
|
||||
|
||||
- '~^Call to an undefined method PrestaShop\\PrestaShop\\Adapter\\Tools::linkRewrite\(\).$~'
|
||||
@@ -0,0 +1,18 @@
|
||||
includes:
|
||||
- %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon
|
||||
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
# module specific
|
||||
- '~^Parameter #1 \$hook_name of method ModuleCore::registerHook\(\) expects string, array<string> given\.$~'
|
||||
- '~^Parameter #2 \$active of static method CurrencyCore::getCurrencies\(\) expects bool, int given\.$~'
|
||||
- '~^Parameter #3 \$groupBy of static method CurrencyCore::getCurrencies\(\) expects bool, Shop given\.$~'
|
||||
- '~^Parameter #\d+ \$\w+ of static method ProductCore::priceCalculation\(\) expects \w+, \w+ given\.$~'
|
||||
- '~^Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.$~'
|
||||
|
||||
- '~^Access to an undefined property Cookie::\$id_lang\.$~'
|
||||
- '~^Access to constant NUMBERING_SYSTEM_LATIN on an unknown class PrestaShop\\PrestaShop\\Core\\Localization\\Locale.$~'
|
||||
|
||||
- '~^Constant _PS_JS_DIR_ not found\.$~'
|
||||
|
||||
- '~^Class PrestaShopBundle\\Form\\Admin\\Type\\(TranslatableType|SwitchType) not found\.$~'
|
||||
@@ -0,0 +1,17 @@
|
||||
includes:
|
||||
- %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon
|
||||
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
# module specific
|
||||
- '~^Parameter #1 \$hook_name of method ModuleCore::registerHook\(\) expects string, array<string> given\.$~'
|
||||
- '~^Parameter #2 \$active of static method CurrencyCore::getCurrencies\(\) expects bool, int given\.$~'
|
||||
- '~^Parameter #3 \$groupBy of static method CurrencyCore::getCurrencies\(\) expects bool, Shop given\.$~'
|
||||
- '~^Parameter #\d+ \$\w+ of static method ProductCore::priceCalculation\(\) expects \w+, \w+ given\.$~'
|
||||
- '~^Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.$~'
|
||||
|
||||
- '~^Access to an undefined property Cookie::\$id_lang\.$~'
|
||||
|
||||
- '~^Constant _PS_JS_DIR_ not found\.$~'
|
||||
|
||||
- '~^Class PrestaShopBundle\\Form\\Admin\\Type\\(TranslatableType|SwitchType) not found\.$~'
|
||||
@@ -0,0 +1,17 @@
|
||||
includes:
|
||||
- %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon
|
||||
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
# module specific
|
||||
- '~^Parameter #1 \$hook_name of method ModuleCore::registerHook\(\) expects string, array<string> given\.$~'
|
||||
- '~^Parameter #2 \$active of static method CurrencyCore::getCurrencies\(\) expects bool, int given\.$~'
|
||||
- '~^Parameter #3 \$groupBy of static method CurrencyCore::getCurrencies\(\) expects bool, Shop given\.$~'
|
||||
- '~^Parameter #\d+ \$\w+ of static method ProductCore::priceCalculation\(\) expects \w+, \w+ given\.$~'
|
||||
- '~^Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.$~'
|
||||
|
||||
- '~^Access to an undefined property Cookie::\$id_lang\.$~'
|
||||
|
||||
- '~^Constant _PS_JS_DIR_ not found\.$~'
|
||||
|
||||
- '~^Class PrestaShopBundle\\Form\\Admin\\Type\\(TranslatableType|SwitchType) not found\.$~'
|
||||
@@ -0,0 +1,17 @@
|
||||
includes:
|
||||
- %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon
|
||||
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
# module specific
|
||||
- '~^Parameter #1 \$hook_name of method ModuleCore::registerHook\(\) expects string, array<string> given\.$~'
|
||||
- '~^Parameter #2 \$active of static method CurrencyCore::getCurrencies\(\) expects bool, int given\.$~'
|
||||
- '~^Parameter #3 \$groupBy of static method CurrencyCore::getCurrencies\(\) expects bool, Shop given\.$~'
|
||||
- '~^Parameter #\d+ \$\w+ of static method ProductCore::priceCalculation\(\) expects \w+, \w+ given\.$~'
|
||||
- '~^Parameter #\d+ \$(.+?) of class Category constructor expects null, int given\.$~'
|
||||
|
||||
- '~^Access to an undefined property Cookie::\$id_lang\.$~'
|
||||
|
||||
- '~^Constant _PS_JS_DIR_ not found\.$~'
|
||||
|
||||
- '~^Parameter #1 \$string of method PrestaShop\\Module\\FacetedSearch\\URLSerializer::unserialize\(\) expects string, array given\.$~'
|
||||
@@ -0,0 +1,15 @@
|
||||
includes:
|
||||
- %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon
|
||||
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
# module specific
|
||||
- '~^Parameter #2 \$active of static method CurrencyCore::getCurrencies\(\) expects bool, int given\.$~'
|
||||
- '~^Parameter #3 \$groupBy of static method CurrencyCore::getCurrencies\(\) expects bool, Shop given\.$~'
|
||||
- '~^Parameter #\d+ \$\w+ of static method ProductCore::priceCalculation\(\) expects \w+, \w+ given\.$~'
|
||||
|
||||
- '~^Access to an undefined property Cookie::\$id_lang\.$~'
|
||||
|
||||
- '~^Constant _PS_JS_DIR_ not found\.$~'
|
||||
|
||||
- '~^Parameter #1 \$string of method PrestaShop\\Module\\FacetedSearch\\URLSerializer::unserialize\(\) expects string, array given\.$~'
|
||||
13
modules/ps_facetedsearch/tests/php/phpstan/phpstan.neon
Normal file
13
modules/ps_facetedsearch/tests/php/phpstan/phpstan.neon
Normal file
@@ -0,0 +1,13 @@
|
||||
includes:
|
||||
- %currentWorkingDirectory%/vendor/prestashop/php-dev-tools/phpstan/ps-module-extension.neon
|
||||
|
||||
parameters:
|
||||
paths:
|
||||
# From PHPStan 0.12, paths to check are relative to the neon file
|
||||
- ../../../ps_facetedsearch.php
|
||||
- ../../../ps_facetedsearch-attribute-indexer.php
|
||||
- ../../../ps_facetedsearch-clear-cache.php
|
||||
- ../../../ps_facetedsearch-price-indexer.php
|
||||
- ../../../src/
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
level: 5
|
||||
Reference in New Issue
Block a user