Skip to content

Commit

Permalink
Use same PHP process for scripts
Browse files Browse the repository at this point in the history
Use `@php` to use the same php version that the main process startet. 

https://getcomposer.org/doc/articles/scripts.md#executing-php-scripts
  • Loading branch information
Tastaturberuf authored Jan 23, 2025
1 parent 588d2d5 commit a753484
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
],
"scripts": {
"post-create-project-cmd": [
"./vendor/bin/tempest install framework -f",
"./tempest discovery:generate",
"@php ./vendor/bin/tempest install framework -f",
"@php ./tempest discovery:generate",
"rm -r .github"
],
"post-package-update": [
"./tempest discovery:generate"
"@php ./tempest discovery:generate"
],
"phpunit": "vendor/bin/phpunit --display-warnings --display-skipped --display-deprecations --display-errors --display-notices",
"csfixer": "PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --allow-risky=yes",
Expand Down

0 comments on commit a753484

Please sign in to comment.