Skip to content

Commit ab7b0ad

Browse files
committed
fix: turn off Xdebug note when running PHPStan
1 parent d86b1d6 commit ab7b0ad

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/test-phpstan.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
with:
4747
php-version: '8.1'
4848
extensions: intl
49+
coverage: none
4950

5051
- name: Use latest Composer
5152
run: composer self-update
@@ -77,4 +78,4 @@ jobs:
7778
run: composer update --ansi --no-interaction
7879

7980
- name: Run static analysis
80-
run: vendor/bin/phpstan analyse --xdebug
81+
run: vendor/bin/phpstan analyse

admin/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ if [ "$FILES" != "" ]; then
2525

2626
# Run on whole codebase
2727
if [ -d /proc/cygdrive ]; then
28-
./vendor/bin/phpstan analyse --xdebug
28+
XDEBUG_MODE=off ./vendor/bin/phpstan analyse
2929
else
30-
php ./vendor/bin/phpstan analyse --xdebug
30+
XDEBUG_MODE=off php ./vendor/bin/phpstan analyse
3131
fi
3232

3333
if [ $? != 0 ]; then

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"bash -c \"if [ -f admin/setup.sh ]; then bash admin/setup.sh; fi\""
7878
],
7979
"analyze": [
80-
"phpstan analyze --xdebug",
80+
"bash -c \"XDEBUG_MODE=off phpstan analyse\"",
8181
"rector process --dry-run"
8282
],
8383
"sa": "@analyze",

0 commit comments

Comments
 (0)