Skip to content

Commit cf78648

Browse files
committed
force correct environment to prepare the cache before running psalm
1 parent 03d771b commit cf78648

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
}
5454
},
5555
"scripts": {
56-
"psalm": "php bin/console.php cache:warmup && vendor/bin/psalm --show-info=true",
56+
"psalm": "APP_ENV=dev php bin/console.php cache:warmup && vendor/bin/psalm --show-info=true",
5757
"fix-cs": "vendor/bin/php-cs-fixer fix",
5858
"check-cs": "vendor/bin/php-cs-fixer fix --dry-run",
5959
"ci-symfony-install-version": "./.github/scripts/setup-symfony-env.bash"

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</projectFiles>
1919
<plugins>
2020
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin">
21-
<containerXml>var/cache/test/Neo4j_Neo4jBundle_Tests_App_TestKernelTestDebugContainer.xml</containerXml>
21+
<containerXml>var/cache/dev/Neo4j_Neo4jBundle_Tests_App_TestKernelDevDebugContainer.xml</containerXml>
2222
</pluginClass>
2323
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
2424
</plugins>

0 commit comments

Comments
 (0)