first commit
This commit is contained in:
28
modules/ps_eventbus/tests/phpstan/index.php
Normal file
28
modules/ps_eventbus/tests/phpstan/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
32
modules/ps_eventbus/tests/phpstan/phpstan-PS-1.6.neon
Normal file
32
modules/ps_eventbus/tests/phpstan/phpstan-PS-1.6.neon
Normal file
@@ -0,0 +1,32 @@
|
||||
includes:
|
||||
- %currentWorkingDirectory%/vendor/prestashop/php-dev-tools/phpstan/ps-module-extension.neon
|
||||
parameters:
|
||||
checkMissingIterableValueType: false
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
paths:
|
||||
- ../../src
|
||||
- ../../controllers
|
||||
- ../../ps_eventbus.php
|
||||
dynamicConstantNames:
|
||||
- _PS_VERSION_
|
||||
ignoreErrors:
|
||||
- '#Property TabCore::\$name \(string\) does not accept array.#'
|
||||
- '#Parameter \#1 \$value of method ControllerCore::ajaxDie\(\) expects string\|null, string\|false given.#'
|
||||
- '#Parameter \#4 \$ssl of method LinkCore::getModuleLink\(\) expects null, true given.#'
|
||||
- '#Parameter \#6 \$idShop of method LinkCore::getModuleLink\(\) expects null, int given.#'
|
||||
- '#Parameter \#1 \$json of function json_decode expects string, string\|false given.#'
|
||||
- '#Parameter \#2 \$message of method PrestaShop\\Module\\PsEventbus\\WebHook\\Validator::getError\(\) expects string, string\|false given.#'
|
||||
- '#Parameter \#1 \$hook_name of method ModuleCore::registerHook\(\) expects string, array given.#'
|
||||
- '#Access to an undefined property AdminController\|FrontController::\$controller_name.#'
|
||||
- '#Call to static method getAvailable\(\) on an unknown class Theme.#'
|
||||
- '#Call to static method getByDirectory\(\) on an unknown class Theme.#'
|
||||
- '#Call to static method getThemeInfo\(\) on an unknown class Theme.#'
|
||||
- '#Access to an undefined property Context::\$theme.#'
|
||||
- '#Access to an undefined property Shop::\$theme.#'
|
||||
- '#Call to method buildRepository\(\) on an unknown class PrestaShop\\PrestaShop\\Core\\Addon\\Theme\\ThemeManagerBuilder.#'
|
||||
- '#Instantiated class PrestaShop\\PrestaShop\\Core\\Addon\\Theme\\ThemeManagerBuilder not found.#'
|
||||
- '#Property Ps_eventbus::\$serviceContainer has unknown class PrestaShop\\ModuleLibServiceContainer\\DependencyInjection\\ServiceContainer as its type.#'
|
||||
- '#Instantiated class PrestaShop\\ModuleLibServiceContainer\\DependencyInjection\\ServiceContainer not found.#'
|
||||
- '#Call to method getService\(\) on an unknown class PrestaShop\\ModuleLibServiceContainer\\DependencyInjection\\ServiceContainer.#'
|
||||
|
||||
level: 7
|
||||
35
modules/ps_eventbus/tests/phpstan/phpstan-PS-1.7.neon
Normal file
35
modules/ps_eventbus/tests/phpstan/phpstan-PS-1.7.neon
Normal file
@@ -0,0 +1,35 @@
|
||||
includes:
|
||||
- %currentWorkingDirectory%/vendor/prestashop/php-dev-tools/phpstan/ps-module-extension.neon
|
||||
parameters:
|
||||
checkMissingIterableValueType: false
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
paths:
|
||||
- ../../src
|
||||
- ../../controllers
|
||||
- ../../ps_eventbus.php
|
||||
dynamicConstantNames:
|
||||
- _PS_VERSION_
|
||||
ignoreErrors:
|
||||
- '#Property TabCore::\$name \(string\) does not accept array.#'
|
||||
- '#Parameter \#1 \$value of method ControllerCore::ajaxDie\(\) expects string\|null, string\|false given.#'
|
||||
- '#Parameter \#4 \$ssl of method LinkCore::getModuleLink\(\) expects null, true given.#'
|
||||
- '#Parameter \#6 \$idShop of method LinkCore::getModuleLink\(\) expects null, int given.#'
|
||||
- '#Parameter \#1 \$json of function json_decode expects string, string\|false given.#'
|
||||
- '#Parameter \#2 \$message of method PrestaShop\\Module\\PsEventbus\\WebHook\\Validator::getError\(\) expects string, string\|false given.#'
|
||||
- '#Parameter \#1 \$hook_name of method ModuleCore::registerHook\(\) expects string, array given.#'
|
||||
- '#Access to an undefined property AdminController\|FrontController::\$controller_name.#'
|
||||
- '#Call to static method getAvailable\(\) on an unknown class Theme.#'
|
||||
- '#Call to static method getByDirectory\(\) on an unknown class Theme.#'
|
||||
- '#Call to static method getThemeInfo\(\) on an unknown class Theme.#'
|
||||
- '#Access to an undefined property Context::\$theme.#'
|
||||
- '#Access to an undefined property Shop::\$theme.#'
|
||||
- '#Call to method buildRepository\(\) on an unknown class PrestaShop\\PrestaShop\\Core\\Addon\\Theme\\ThemeManagerBuilder.#'
|
||||
- '#Instantiated class PrestaShop\\PrestaShop\\Core\\Addon\\Theme\\ThemeManagerBuilder not found.#'
|
||||
- '#Class Theme not found.#'
|
||||
- '#Access to property \$id on an unknown class Theme.#'
|
||||
- '#Instantiated class PrestaShop\\ModuleLibServiceContainer\\DependencyInjection\\ServiceContainer not found.#'
|
||||
- '#Call to method getService\(\) on an unknown class PrestaShop\\ModuleLibServiceContainer\\DependencyInjection\\ServiceContainer.#'
|
||||
- '#Cannot access property \$id on Module\|false.#'
|
||||
- '#Class Theme not found.#'
|
||||
|
||||
level: 7
|
||||
Reference in New Issue
Block a user