grumphp-shim icon indicating copy to clipboard operation
grumphp-shim copied to clipboard

TwigCS default ruleset gets prefixed

Open veewee opened this issue 4 years ago • 1 comments

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 avatar May 12 '21 14:05 veewee

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

veewee avatar Feb 07 '22 17:02 veewee