Skip to content
Snippets Groups Projects
Commit 2eecc14f authored by Camille Simiand's avatar Camille Simiand Committed by Sebastien
Browse files

Fix phpstan configuration files and scripts

parent 56786fb5
No related branches found
No related tags found
3 merge requests!43tuleap-83-access-my-capsules,!42Draft: access-my-capsules-conflicts-fixed,!40Draft: Tuleap 83 access my capsules
<?php declare(strict_types = 1);
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__) . '/../vendor/autoload.php';
(new Dotenv())->bootEnv(dirname(__DIR__) . '/../.env');
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
return new Application($kernel);
...@@ -124,8 +124,8 @@ ...@@ -124,8 +124,8 @@
"@phpstan-general", "@phpstan-general",
"@phpstan-tests" "@phpstan-tests"
], ],
"phpstan-general": "phpstan analyse -c phpstan.neon -l 1 src --memory-limit=4G", "phpstan-general": "php -d memory_limit=4G vendor/bin/phpstan analyse -c phpstan.neon",
"phpstan-tests": "phpstan analyse -c phpstan-tests.neon -l 1 tests --memory-limit=4G", "phpstan-tests": "php -d memory_limit=4G vendor/bin/phpstan analyse -c phpstan-tests.neon",
"php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src/ tests/" "php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src/ tests/"
}, },
"conflict": { "conflict": {
......
parameters: parameters:
level: 1
paths:
- tests/
symfony: symfony:
container_xml_path: var/cache/test/App_KernelTestDebugContainer.xml container_xml_path: var/cache/test/App_KernelTestDebugContainer.xml
\ No newline at end of file
console_application_loader: build/phpstan/console-loader.php
doctrine:
objectManagerLoader: tests/ObjectManager.php
\ No newline at end of file
parameters: parameters:
level: 1
paths:
- src/
symfony: symfony:
container_xml_path: var/cache/dev/App_KernelDevDebugContainer.xml container_xml_path: var/cache/dev/App_KernelDevDebugContainer.xml
\ No newline at end of file
console_application_loader: build/phpstan/console-loader.php
doctrine:
objectManagerLoader: tests/ObjectManager.php
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment