php-dev-tools icon indicating copy to clipboard operation
php-dev-tools copied to clipboard

PHP Coding Standards for PrestaShop projects

Results 9 php-dev-tools issues
Sort by recently updated
recently updated
newest added

| Questions | Answers | ------------------| ------------------------------------------------------- | Description? | Dependencies and their versions have been reported to sometimes trigger issues on projects relying on `php-dev-tools` . This PRs upgrades...

All is in the title. This would greatly simplify the use. This issue just expect a composer.json update.

Hi, When I execute `vendor/bin/phpstan analyse .`: ``` $ php7.4 vendor/bin/phpstan analyse . Thank you for using PHPStan! With the release of PHPStan 0.12, the primary Composer package used by...

Use case : - the command is invoked from a script (external symfony command for example), in non-interactive mode (interactive mode is not possible in this context) - `phpstan.neon` file...

Seen in https://github.com/PrestaShop/ps_wirepayment/pull/63 ```neon - '#Call to function is_array\(\) with Currency\|false will always evaluate to false\.$#' - '#Parameter \#7 \$currency_special of method PaymentModuleCore::validateOrder\(\) expects null, int given\.$#' - '#Parameter \#9...

PrestaShop modules validator want that there is one empty line between file header and next statement: ```php /** * Here is license... */ if (!defined('_PS_VERSION_')) { exit; } ``` but...

To avoid unexpected behavior from `action` hooks, we should assert the developper does not try to return content to display as they won't be taken in account by the core.

We request all PrestaShop modules provide a index.php files in each folder. This tool (https://github.com/jmcollin/autoindex) can do it automatically, but we should provide it via packagist to make its installation...