Skip to content

Commit

Permalink
add phpstan for 8.0, change php-cs-fixer filename for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
leemyongpakvn committed Sep 28, 2023
1 parent 616d5ea commit 4999b6c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

$config = new PrestaShop\CodingStandards\CsFixer\Config();

$config
->setUsingCache(true)
->getFinder()
->in(__DIR__)
->exclude('vendor');

return $config;
7 changes: 7 additions & 0 deletions tests/php/phpstan/phpstan-8.0.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
includes:
- %currentWorkingDirectory%/tests/php/phpstan/phpstan.neon

parameters:
ignoreErrors:
- '#Parameter \#1 \$share of static method ShopCore\:\:getContextListShopID\(\) expects string, false given.#'
- '#Parameter \#1 \$share of static method ShopCore\:\:addSqlRestriction\(\) expects int, false given.#'

0 comments on commit 4999b6c

Please sign in to comment.