Given PHP 8.0 will be the minium PHP version for v2, running a Rector upgrade script will always upgrade the annotations to attributes.
This idea came up during the PHPWVL talk where Tomas Votruba held a talk about including effortless upgradeability as a Composer Plugin, and is a follow-up of the discussion in https://github.com/APY/APYBreadcrumbTrailBundle/issues/72
TODO
[ ] find a way how to hook into the Rector process to transform the parameter labels
[ ] rewrite the old route array values to routeName, routeParameters, routeAbsolute
[ ] find a way to run a Rector rule when installing v2 (and how to only run it once)
Given PHP 8.0 will be the minium PHP version for v2, running a Rector upgrade script will always upgrade the annotations to attributes.
This idea came up during the PHPWVL talk where Tomas Votruba held a talk about including effortless upgradeability as a Composer Plugin, and is a follow-up of the discussion in https://github.com/APY/APYBreadcrumbTrailBundle/issues/72
TODO
route
array values torouteName
,routeParameters
,routeAbsolute
Sample Rector rule