Closed rieschl closed 4 years ago
When debugging #81 I discovered that scoping the PHAR (see #81 for more info) rewrites the constant in the CreateLocalConfigListener
from:
private const TEMPLATE = <<<'EOT'
[defaults]
changelog_file = %s
provider = github
remote = origin
[providers]
github[class] = Phly\KeepAChangelog\Provider\GitHub
gitlab[class] = Phly\KeepAChangelog\Provider\GitLab
EOT;
to
private const TEMPLATE = <<<'EOT'
_HumbugBoxa35b2ab0d726\[defaults]
changelog_file = %s
provider = github
remote = origin
[providers]
github[class] = Phly\KeepAChangelog\Provider\GitHub
gitlab[class] = Phly\KeepAChangelog\Provider\GitLab
EOT;
It doesn't do that in the global config. I'm not sure why but that seems like a bug in PHP-Scoper to me.
Bug Report
Summary
The issue probably is related to #81
When creating a local config with the PHAR version with
keep-a-changelog config:create -l
the config file starts with_HumbugBoxaa7bf30d75ed\
:How to reproduce
Download the PHAR and execute
keep-a-changelog config:create -l
.Expected behaviour
No humbug 🙂