driftingly / rector-laravel

Rector upgrades rules for Laravel
http://getrector.org
MIT License
540 stars 52 forks source link

AddGenericReturnTypeToRelationsRector missing contructor argument `StaticTypeMapper $staticTypeMapper` #152

Closed cosminardeleanu closed 10 months ago

cosminardeleanu commented 11 months ago

This class has 3 calls on $this->staticTypeMapper that is not defined.

When the class is executed, i get "System error: "Call to a member function mapPHPStanPhpDocTypeNodeToPHPStanType() on null"

https://github.com/driftingly/rector-laravel/pull/151 fixes this issue FYI

driftingly commented 10 months ago

Thanks for reporting, and thanks @GeniJaho for #151