Make PHPStan passing

This commit is contained in:
Kamil Kokot 2018-08-13 12:59:26 +02:00
parent 791d5f6724
commit 4948f4e26e
No known key found for this signature in database
GPG key ID: 7BD76F7054D93C89
2 changed files with 4 additions and 2 deletions

View file

@ -5,7 +5,8 @@ source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../../bash/application.
print_header "Setting the application up" "Sylius"
run_command "bin/console doctrine:database:create --env=test_cached -vvv" || exit $? # Have to be run with debug = true, to omit generating proxies before setting up the database
run_command "bin/console cache:warmup --env=test_cached --no-debug -vvv" || exit $?
run_command "bin/console cache:warmup --env=dev -vvv" || exit $? # For PHPStan
run_command "bin/console cache:warmup --env=test_cached --no-debug -vvv" || exit $? # For tests
run_command "bin/console doctrine:migrations:migrate --no-interaction --env=test_cached --no-debug -vvv" || exit $?
print_header "Setting the web assets up" "Sylius"

View file

@ -7,7 +7,7 @@ parameters:
reportUnmatchedIgnoredErrors: false
symfony:
container_xml_path: var/cache/dev/srcDevDebugProjectContainer.php
container_xml_path: var/cache/dev/srcDevDebugProjectContainer.xml
excludes_analyse:
# Makes PHPStan crash
@ -17,6 +17,7 @@ parameters:
- '**/spec/**.php'
- '**/Bundle/*/test/app/**.php'
- '**/Bundle/*/test/src/**.php'
- '**/Bundle/*/Tests/Functional/app/**.php'
# These packages aren't in require-dev of the global package
- '**MongoDB**'