Find the best Rector rule to solve your problem. Searching through 1004 rules.

Found 1 rule. That's the one: Clear

symfony/web-link 1 match

Change string link relations in WebLink to use Link constants

 use Symfony\Component\WebLink\Link;

-$link = (new Link('preload', 'https://...'))->withRel('next');
+$link = (new Link(Link::REL_PRELOAD, 'https://...'))->withRel(Link::REL_NEXT);