Skip to content

Commit cd4f5c2

Browse files
committed
Explicitly disable XDebug for non-coverage PHP scripts
1 parent bbdcb59 commit cd4f5c2

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

composer.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@
9797
"@clean",
9898
"@tools:install",
9999
"@dependencies:install",
100-
"composer outdated --locked --direct --strict --sort-by-age --ansi"
100+
"XDEBUG_MODE=off composer outdated --locked --direct --strict --sort-by-age --ansi"
101101
],
102-
"dependencies:install": "composer install --no-interaction --no-progress --ansi --ignore-platform-req=ext-grpc",
102+
"dependencies:install": "XDEBUG_MODE=off composer install --no-interaction --no-progress --ansi --ignore-platform-req=ext-grpc",
103103
"dependencies:update": [
104-
"composer update --no-interaction --no-progress --ansi --ignore-platform-req=ext-grpc",
105-
"composer bump --no-interaction --ansi"
104+
"XDEBUG_MODE=off composer update --no-interaction --no-progress --ansi --ignore-platform-req=ext-grpc",
105+
"XDEBUG_MODE=off composer bump --no-interaction --ansi"
106106
],
107107
"docs": [
108108
"@docs:clean",
@@ -118,28 +118,28 @@
118118
],
119119
"docs:setup": "cd docs && uv sync",
120120
"lint": [
121-
"tools/rector --ansi --dry-run",
122-
"tools/php-cs-fixer check --ansi --diff --verbose",
121+
"XDEBUG_MODE=off tools/rector --ansi --dry-run",
122+
"XDEBUG_MODE=off tools/php-cs-fixer check --ansi --diff --verbose",
123123
"@lint:composer"
124124
],
125-
"lint:composer": "tools/composer-normalize --ansi --dry-run",
126-
"lint:composer:fix": "tools/composer-normalize --ansi",
125+
"lint:composer": "XDEBUG_MODE=off tools/composer-normalize --ansi --dry-run",
126+
"lint:composer:fix": "XDEBUG_MODE=off tools/composer-normalize --ansi",
127127
"lint:fix": [
128-
"tools/rector --ansi",
129-
"tools/php-cs-fixer fix --ansi --diff --verbose",
128+
"XDEBUG_MODE=off tools/rector --ansi",
129+
"XDEBUG_MODE=off tools/php-cs-fixer fix --ansi --diff --verbose",
130130
"@lint:composer:fix"
131131
],
132132
"pre-push": [
133133
"@lint:fix",
134134
"@test:all",
135135
"@test:bc"
136136
],
137-
"rector": "tools/rector --ansi --dry-run",
137+
"rector": "XDEBUG_MODE=off tools/rector --ansi --dry-run",
138138
"rector:fix": [
139-
"tools/rector --ansi",
140-
"tools/php-cs-fixer fix --ansi --diff --verbose"
139+
"XDEBUG_MODE=off tools/rector --ansi",
140+
"XDEBUG_MODE=off tools/php-cs-fixer fix --ansi --diff --verbose"
141141
],
142-
"reset-project": "tests/bin/reset-project",
142+
"reset-project": "XDEBUG_MODE=off tests/bin/reset-project",
143143
"setup": [
144144
"@clean:build-artifacts",
145145
"@tools:install",
@@ -163,28 +163,28 @@
163163
"mkdir -p build",
164164
"XDEBUG_MODE=coverage tools/phpunit --colors=always --testdox --coverage-text --coverage-html=build/coverage --coverage-clover=build/coverage/clover.xml"
165165
],
166-
"test:emulator": "FIREBASE_AUTH_EMULATOR_HOST=localhost:9099 FIREBASE_DATABASE_EMULATOR_HOST=localhost:9100 firebase emulators:exec --only auth,database --project beste-firebase 'tools/phpunit --group=emulator'",
167-
"test:integration": "tools/phpunit --testsuite=integration",
168-
"test:unit": "tools/phpunit --testsuite=unit --colors=always --testdox",
169-
"tools:install": "tools/phive --no-progress install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A,C00543248C87FB13",
166+
"test:emulator": "FIREBASE_AUTH_EMULATOR_HOST=localhost:9099 FIREBASE_DATABASE_EMULATOR_HOST=localhost:9100 firebase emulators:exec --only auth,database --project beste-firebase 'XDEBUG_MODE=off tools/phpunit --group=emulator'",
167+
"test:integration": "XDEBUG_MODE=off tools/phpunit --testsuite=integration",
168+
"test:unit": "XDEBUG_MODE=off tools/phpunit --testsuite=unit --colors=always --testdox",
169+
"tools:install": "XDEBUG_MODE=off tools/phive --no-progress install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A,C00543248C87FB13",
170170
"tools:link": [
171171
"ln -snf phpunit tools/phpunit.phar",
172172
"ln -snf .phpstan/vendor/bin/phpstan tools/phpstan",
173173
"ln -snf .rector/vendor/bin/rector tools/rector"
174174
],
175-
"tools:phpstan:install": "composer --working-dir=tools/.phpstan install --no-interaction --no-progress --ansi",
175+
"tools:phpstan:install": "XDEBUG_MODE=off composer --working-dir=tools/.phpstan install --no-interaction --no-progress --ansi",
176176
"tools:phpstan:update": [
177-
"composer --working-dir=tools/.phpstan update --no-interaction --no-progress --ansi",
178-
"composer --working-dir=tools/.phpstan bump --no-interaction --ansi"
177+
"XDEBUG_MODE=off composer --working-dir=tools/.phpstan update --no-interaction --no-progress --ansi",
178+
"XDEBUG_MODE=off composer --working-dir=tools/.phpstan bump --no-interaction --ansi"
179179
],
180-
"tools:rector:install": "composer --working-dir=tools/.rector install --no-interaction --no-progress --ansi",
180+
"tools:rector:install": "XDEBUG_MODE=off composer --working-dir=tools/.rector install --no-interaction --no-progress --ansi",
181181
"tools:rector:update": [
182-
"composer --working-dir=tools/.rector update --no-interaction --no-progress --ansi",
183-
"composer --working-dir=tools/.rector bump --no-interaction --ansi"
182+
"XDEBUG_MODE=off composer --working-dir=tools/.rector update --no-interaction --no-progress --ansi",
183+
"XDEBUG_MODE=off composer --working-dir=tools/.rector bump --no-interaction --ansi"
184184
],
185185
"tools:update": [
186-
"tools/phive --no-progress selfupdate",
187-
"tools/phive --no-progress update",
186+
"XDEBUG_MODE=off tools/phive --no-progress selfupdate",
187+
"XDEBUG_MODE=off tools/phive --no-progress update",
188188
"@tools:phpstan:update",
189189
"@tools:rector:update",
190190
"@tools:link"

0 commit comments

Comments
 (0)