Skip to content

Commit

Permalink
Merge pull request BitBagCommerce#82 from stefandoorn/phpstan
Browse files Browse the repository at this point in the history
Add PHPStan at maximum level
  • Loading branch information
pamil authored Feb 1, 2018
2 parents b4384c6 + 00b1875 commit a16c5f8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ before_script:

script:
- composer validate --strict
- bin/phpstan.phar analyse -c phpstan.neon -l max src/

- bin/behat --strict -vvv --no-interaction || bin/behat --strict -vvv --no-interaction --rerun

Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
"license": "MIT",
"require": {
"php": "^7.1",

"sylius/sylius": "^1.0.4"
},
"require-dev": {
"phpspec/phpspec": "^3.2",
"phpunit/phpunit": "^5.6",
"behat/behat": "^3.3",
"behat/mink": "^1.7",
"behat/mink-browserkit-driver": "^1.3",
Expand All @@ -22,9 +20,12 @@
"friends-of-behat/symfony-extension": "^1.0",
"friends-of-behat/variadic-extension": "^1.0",
"lakion/mink-debug-extension": "^1.2.3",
"phpspec/phpspec": "^3.2",
"phpstan/phpstan-shim": "^0.9.2",
"phpunit/phpunit": "^5.6",
"se/selenium-server-standalone": "^2.52",
"symplify/easy-coding-standard": "^2.4",
"sylius-labs/coding-standard": "^1.0"
"sylius-labs/coding-standard": "^1.0",
"symplify/easy-coding-standard": "^2.4"
},
"prefer-stable": true,
"autoload": {
Expand Down
11 changes: 11 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
parameters:
excludes_analyse:
# Makes PHPStan crash
- 'src/DependencyInjection/Configuration.php'

# Test dependencies
- 'tests/Application/app/**.php'
- 'tests/Application/src/**.php'

ignoreErrors:
- '/Parameter #1 $configuration of method Symfony\Component\DependencyInjection\Extension\Extension::processConfiguration() expects Symfony\Component\Config\Definition\ConfigurationInterface, Symfony\Component\Config\Definition\ConfigurationInterface|null given./'

0 comments on commit a16c5f8

Please sign in to comment.