phpro / grumphp

A PHP code-quality tool
MIT License
4.11k stars 429 forks source link

Resolve env placeholders in configuration #1113

Closed tkulka closed 7 months ago

tkulka commented 7 months ago
Q A
Branch master for features and deprecations
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Documented? yes
Fixed tickets https://github.com/phpro/grumphp/issues/1042

Example:

# grumphp.yml
parameters:
  env(FIXER_ENABLED): 'true'

grumphp:
    fixer:
      enabled: '%env(bool:FIXER_ENABLED)%'
veewee commented 7 months ago

Wow, thanks for figuring this out! 👍 I was clueless about that specific compile option.