Closed arno14 closed 8 months ago
Try to install the dev-main version of rector-laravel, that could solve the issue.
@GeniJaho Thanks, that worked.
my current composer.json deps:
{
"require-dev": {
"driftingly/rector-laravel": "dev-main",
"larastan/larastan": "^2.7",
"phpstan/phpstan": "^1.10",
"rector/rector": "^0.18.12"
},
}
With
when the rule AddGenericReturnTypeToRelationsRector::class is activated
I get this error on multiple class:
When the rule is disabled, no errors occurs
With this packages version:
No errors are triggered, and command line display
Rector is done!
/ But I get this warning in the console when rule AddGenericReturnTypeToRelationsRector is enabledGet staticTypeMapper property from AbstractRector on RectorLaravel\Rector\ClassMethod\AddGenericReturnTypeToRelationsRector is deprecated, inject via __construct() instead