Releases: driftingly/rector-laravel
Releases Β· driftingly/rector-laravel
2.0.5
New Rules & Features π
- Add
Context
to facade-aliases-to-full-names by @cosmastech in #333 - Add isset to RequestVariablesToRequestFacade by @benfaerber in #338
- Make ValidationRuleArrayStringValueToArrayRector work with string interpolation by @GeniJaho in #339
- Make ValidationRuleArrayStringValueToArrayRector work with Request object calls by @GeniJaho in #340
Bugfixes π
- Fix failing tests by @GeniJaho in #334
- Fix test warnings by @GeniJaho in #335
- Change method visibility to protected for scope methods by @nomansheikh in #337
- Fix ThrowIf, AbortIf, ReportIf rules for else clauses and comments by @GeniJaho in #341
- Fix set names in LaravelSetProvider by @GeniJaho in #344
- Stop overriding previous tags by @peterfox in #331
New Contributors
- @cosmastech made their first contribution in #333
- @nomansheikh made their first contribution in #337
- @benfaerber made their first contribution in #338
Full Changelog: 2.0.4...2.0.5
2.0.4
Bugfixes π
- Fix(eloquent relations): add pivot class for BelongsToMany relations by @jrdnrc in #316
- Fix type hinting depending on Eloquent or Query Builder instance by @GeniJaho in #324
Extras βοΈ
- Downgrade to php 7.4 for release by @samsonasik in #327
- Laravel App Analyzer by @peterfox in #328
New Contributors
Full Changelog: 2.0.3...2.0.4
2.0.3
New Rules & Features π
- Laravel 12 set with Bind Closures without Abstract rule by @peterfox in #304
- Add new alias to
UnaliasCollectionMethods
by @MrYamous in #305 - Scope to use attribute rule by @peterfox in #320
- Assert class to type hinted closure by @peterfox in #321
Bugfixes π
- Remove LogManager from the Static to Injection set by @GeniJaho in #311
- Update the rule definition for ChangeQueryWhereDateValueWithCarbonRector by @GeniJaho in #312
HelperFuncCallToFacadeClassRector
, allow with argument by @parth391 in #318- fix sample code by @naopusyu in #313
- Skip refactoring on EloquentOrderByToLatestOrOldestRector by @GeniJaho in #310
- Fixup expected jobs and events rule by @peterfox in #307
- Remove MinutesToSecondsInCacheRector from Laravel 5.8 set by @GeniJaho in #325
Extras βοΈ
- Update composer.json to use php 8.3 requirement by @samsonasik in #300
- Add a command to generate new rules by @GeniJaho in #298
- Service & Model Analyzers by @peterfox in #306
- Improve the MakeRuleCommand by @GeniJaho in #323
New Contributors
- @MrYamous made their first contribution in #305
- @naopusyu made their first contribution in #313
- @parth391 made their first contribution in #318
Full Changelog: 2.0.2...2.0.3
2.0.2
New Rules & Features π
- Upgrade RouteActionCallableRector rule to handle groups by @peterfox in #284
- Add AvoidNegatedCollectionContainsOrDoesntContainRector by @spawnia in #288
- Add UnaliasCollectionMethodsRector by @spawnia in #291
Bugfixes π
- EloquentWhereTypeHintClosureParameterRector refactor by @peterfox in #290
- Do not convert to whereLike methods with Expressions by @GeniJaho in #295
- Skip setting an exception as a default value in ApplyDefaultInsteadOfNullCoalesceRector by @hans-thomas in #294
- chore: removed migrator from the list as not needed by @MrPunyapal in #296
- fix: removed all classes which are not bounded to container by @MrPunyapal in #297
Extras βοΈ
- Updates tests for ArgumentFuncCallToMethodCallRector by @peterfox in #285
- Update docs by @peterfox in #289
- Update LaravelSetProvider with missing sets by @GeniJaho in #286
New Contributors
- @hans-thomas made their first contribution in #294
- @MrPunyapal made their first contribution in #296
Full Changelog: 2.0.1...2.0.2
2.0.1
New Rules & Features π
- New Rule to use the
whereLike
clause in Laravel 11.x by @GeniJaho in #267 - Session variable to Session Facade by @peterfox in #281
- Improve request input refactor by @peterfox in #283
- Adds ServerVariableToRequestFacadeRector rule by @peterfox in #282
Bugfixes π
- AddGenericReturnTypeToRelationsRector fix for chained relation call by @rudiedirkx in #280
New Contributors
- @rudiedirkx made their first contribution in #280
Full Changelog: 2.0.0...2.0.1
2.0.0
Rector Laravel 2.0 π
Check the release notes of the core Rector 2.0 release, now supporting PHPParser 5 and PHPStan 2.
- Rector 2.0 support by @GeniJaho in #277
- Add
MigrateToSimplifiedAttributeRector
to Laravel 9 set by @maks-oleksyuk in #275 - Adds a new
RectorLaravel\AbstractRector
class that replaces the coreAbstractRector
and implements theDocumentedRuleInterface
.
Thank you to @samsonasik, @maks-oleksyuk, and @mwikberg-virta for your help in this release.
Full Changelog: 1.2.6...2.0.0
1.2.6
1.2.5
New Rules & Features π
- Add new rule AssertSeeToAssertSeeHtmlRector by @GeniJaho in #251
- Improvements to the AssertStatusToAssertMethodRector by @peterfox in #255
- Add ResponseHelperCallToJsonResponseRector by @Stoffo in #252
- Make RemoveDumpDataDeadCodeRector rule configurable by @jivanf in #258
- Add migration rules for Laravel 5.3 by @GeniJaho in #261
- Adds the EnvVariableToEnvHelperRector rule by @peterfox in #264
- Adds RequestVariablesToRequestFacadeRector rule by @peterfox in #265
- feat: adjust AddGenericReturnTypeToRelationsRector rule to be able to generate new generic style code by @canvural in #263
- Laravel 11 new generic types by @GeniJaho in #266
Bugfixes π
- Update ignored PHPStan error by @GeniJaho in #253
- Fix rule AnonymousMigrationsRector by @GeniJaho in #260
Extras βοΈ
- Add Caneco to the contribution section by @peterfox in #256
- Add banner image to readme by @driftingly in #257
- Update docs by @GeniJaho in #262
New Contributors
Full Changelog: 1.2.4...1.2.5
1.2.4
1.2.3
Bugfixes π
- Bump to Rector 1.2.5 and fix compatible of isObjectType() usage to use ClassLike instead of ClassMethod by @samsonasik in #247
Full Changelog: 1.2.2...1.2.3