devfrey / rector-eloquent-generics
Small set of Rector rules for Eloquent's new generics.
v0.1.1
2024-10-25 12:47 UTC
Requires
- php: ^8.2
- rector/rector: ^1.2
- symplify/rule-doc-generator-contracts: ^11.2
Requires (Dev)
- laravel/framework: ^11.15.0
- phpstan/extension-installer: ^1.4.1
- phpstan/phpstan: ^1.11.7
- phpunit/phpunit: ^11.2.6
- symplify/phpstan-rules: ^13.0
This package is auto-updated.
Last update: 2025-03-25 13:40:29 UTC
README
composer require --dev devfrey/rector-eloquent-generics
<?php use Rector\Config\RectorConfig; return RectorConfig::configure() // ... ->withRules([ Devfrey\RectorLaravel\Eloquent\AddBuilderPropertyRector::class, Devfrey\RectorLaravel\Eloquent\AddGenericHasBuilderTraitRector::class, Devfrey\RectorLaravel\Eloquent\DocumentRelationGenericsRector::class, ]);