Skip to content

Commit 74f7cfe

Browse files
committed
Add PHP_CS_FIXER_IGNORE_ENV=1
1 parent 7f46e6e commit 74f7cfe

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ This hook is invoked by `git commit`, and [can be bypassed](https://git-scm.com/
1212
git commit --no-verify
1313
```
1414

15+
**Environment variables**
16+
17+
- `PHP_CS_FIXER_IGNORE_ENV=1`
18+
- `XDEBUG_MODE=off`
19+
1520
## Installation
1621

1722
Create the hooks directory:

pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ run_php_cs_fixer() {
7272
extra_args=''
7373
fi
7474

75+
export PHP_CS_FIXER_IGNORE_ENV="${PHP_CS_FIXER_IGNORE_ENV:-1}"
7576
export XDEBUG_MODE="${XDEBUG_MODE:-off}"
7677

7778
rerun_with_violation_details() {

0 commit comments

Comments
 (0)