Skip to content

Commit 0ca714b

Browse files
committed
[BUGFIX] Invoke PHIVE-installed tools via shell
On Windows, the `.phive` directory contains batch files that in turn invoke the phar installed elsewhere on the system. To be compatible with both Linux and Windows, the file must be invoked directly via the shell, and without a file extension specified (when invoked as well as when installed). Fixes #479.
1 parent cb78396 commit 0ca714b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.phive/phars.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="php-cs-fixer" version="^3.49.0" installed="3.49.0" location="./.phive/php-cs-fixer.phar" copy="false"/>
3+
<phar name="php-cs-fixer" version="^3.49.0" installed="3.49.0" location="./.phive/php-cs-fixer" copy="false"/>
44
</phive>

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"ci": [
6565
"@ci:static"
6666
],
67-
"ci:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin src tests",
67+
"ci:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin src tests",
6868
"ci:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon",
6969
"ci:static": [
7070
"@ci:php:fixer",
@@ -73,7 +73,7 @@
7373
"fix:php": [
7474
"@fix:php:fixer"
7575
],
76-
"fix:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix bin src tests",
76+
"fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix bin src tests",
7777
"phpstan:baseline": "phpstan --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon"
7878
},
7979
"scripts-descriptions": {

0 commit comments

Comments
 (0)