phpro / grumphp-shim

This repository provides easy way to install GrumPHP without the risk of conflicting dependencies.
MIT License
22 stars 3 forks source link

TwigCS default ruleset gets prefixed #11

Open veewee opened 3 years ago

veewee commented 3 years ago

The default ruleset for twigCS gets scoped. Resulting in errors: MicrosoftTeams-image

Snippet:

class TwigCs extends \GrumPHP\Task\AbstractExternalTask
{
    public static function getConfigurableOptions() : \_HumbugBoxdfa46d19239b\Symfony\Component\OptionsResolver\OptionsResolver
    {
        $resolver->setDefaults(
            [
                //.....
                'ruleset'      => '_HumbugBoxdfa46d19239b\\FriendsOfTwig\\Twigcs\\Ruleset\\Official',
                //.....
            ]
         );
        return $resolver;
    }
...

This specific class could be namespaced if it does not break anything else.

veewee commented 2 years ago

See php-scoper: exclude-constants property. https://github.com/humbug/php-scoper/blob/f403b26a2077eeca22dedd54313d24a1b7a99730/docs/configuration.md#excluded-symbols