-
- Downloads
Improve phpstan configuration and install phpstan-phpunit dependency
parent
2a2bff75
Branches
Tags
Showing
- build/phpstan/console-loader.php 11 additions, 0 deletionsbuild/phpstan/console-loader.php
- composer.json 13 additions, 5 deletionscomposer.json
- composer.lock 279 additions, 1282 deletionscomposer.lock
- phpstan-tests.neon 6 additions, 0 deletionsphpstan-tests.neon
- phpstan.neon 6 additions, 0 deletionsphpstan.neon
- tests/ObjectManager.php 10 additions, 0 deletionstests/ObjectManager.php
build/phpstan/console-loader.php
0 → 100644
... | ... | @@ -53,11 +53,13 @@ |
"twig/twig": "^2.12|^3.0" | ||
}, | ||
"require-dev": { | ||
"ext-dom": "*", | ||
"dama/doctrine-test-bundle": "^6.7", | ||
"doctrine/doctrine-fixtures-bundle": "^3.4", | ||
"phpstan/extension-installer": "^1.1", | ||
"phpstan/phpstan": "^1.2", | ||
"phpstan/phpstan": "^1.3", | ||
"phpstan/phpstan-doctrine": "^1.0", | ||
"phpstan/phpstan-phpunit": "^1.0", | ||
"phpstan/phpstan-symfony": "^1.0", | ||
"phpunit/phpunit": "^9.5", | ||
"squizlabs/php_codesniffer": "*", | ||
... | ... | @@ -67,8 +69,7 @@ |
"symfony/maker-bundle": "^1.0", | ||
"symfony/phpunit-bridge": "^5.3", | ||
"symfony/stopwatch": "5.3.*", | ||
"symfony/web-profiler-bundle": "5.3.*", | ||
"ext-dom": "*" | ||
"symfony/web-profiler-bundle": "5.3.*" | ||
}, | ||
"config": { | ||
"optimize-autoloader": true, | ||
... | ... | @@ -117,8 +118,15 @@ |
"tests": "php ./vendor/bin/phpunit", | ||
"phpcs": "php ./vendor/bin/phpcs src/ tests/", | ||
"phpcbf": "php ./vendor/bin/phpcbf src/ tests/", | ||
"phpstan": "php -d memory_limit=4G vendor/bin/phpstan analyse src/ tests/unit/ tests/functional/ -l 1", | ||
"php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src/ tests/unit/ tests/functional/" | ||
"phpstan": [ | ||
"@php bin/console cache:warmup --env=dev", | ||
"@php bin/console cache:warmup --env=test", | ||
"@phpstan-general", | ||
"@phpstan-tests" | ||
], | ||
"phpstan-general": "phpstan analyse -c phpstan.neon -l 1 src --memory-limit=4G", | ||
"phpstan-tests": "phpstan analyse -c phpstan-tests.neon -l 1 tests --memory-limit=4G", | ||
"php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src/ tests/" | ||
}, | ||
"conflict": { | ||
"symfony/symfony": "*" | ||
... | ... |
This diff is collapsed.
phpstan-tests.neon
0 → 100644
phpstan.neon
0 → 100644
tests/ObjectManager.php
0 → 100644
Please register or sign in to comment