Skip to content

Commit c8d53af

Browse files
authored
Merge pull request #6851 from ddevsr/make-faster-with-option-xdebug
fix: turn off `Xdebug` note when running phpstan
2 parents ed009a6 + ab7b0ad commit c8d53af

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/test-phpstan.yml

Lines changed: 1 addition & 0 deletions
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

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
28+
XDEBUG_MODE=off ./vendor/bin/phpstan analyse
2929
else
30-
php ./vendor/bin/phpstan analyse
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",
80+
"bash -c \"XDEBUG_MODE=off phpstan analyse\"",
8181
"rector process --dry-run"
8282
],
8383
"sa": "@analyze",

0 commit comments

Comments
 (0)