PHP 8.2.31
Preview: SensioParamConverterAttributeDecorator.php Size: 656 B
//opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php80/AttributeDecorator/SensioParamConverterAttributeDecorator.php

<?php

declare (strict_types=1);
namespace Rector\Php80\AttributeDecorator;

use PhpParser\Node\Attribute;
use Rector\Php80\Contract\ConverterAttributeDecoratorInterface;
final class SensioParamConverterAttributeDecorator implements ConverterAttributeDecoratorInterface
{
    public function getAttributeName() : string
    {
        return 'Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\ParamConverter';
    }
    public function decorate(Attribute $attribute) : void
    {
        // make first named arg silent, @see https://github.com/rectorphp/rector/issues/7352
        $firstArg = $attribute->args[0];
        $firstArg->name = null;
    }
}

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
1.17 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
656 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).