Releases: driftingly/rector-laravel
Releases Β· driftingly/rector-laravel
2.1.3
2.1.2
Bugfixes π
- fix: property/variable static calls, EloquentMagicMethodToQueryBuilderRector by @parth391 in #406
- [Issue 411] - Fix and refactor ThrowIfRector rule by @Androoha1 in #415
Extras βοΈ
- Bump Rector requirement to ^2.2.7 by @samsonasik in #416
New Contributors
- @Androoha1 made their first contribution in #415
Full Changelog: 2.1.1...2.1.2
2.1.1
Extras βοΈ
- Remove AttributeGroupNewLiner usage as removed in rector:dev-main by @samsonasik in #413
Full Changelog: 2.1.0...2.1.1
2.1.0
New Rules & Features π
- feat: add ArrayToArrGetRector by @MrPunyapal in #382
- chore: move orphaned rules into sets by @calebdw in #377
- Refactor Carbon static calls to Date Facade by @imliam in #402
- Refactor
config()calls to use type-specific methods when the expected type is known by @imliam in #399
Bugfixes π
- fix: ContainerBindConcreteWithClosureOnlyRector Rule when the abstract is a variable by @jf-m in #386
- fix: skip rule when its overriding the method by @canvural in #387
- fix: use scope to get the correct type in ConvertEnumerableToArrayToAllRector by @calebdw in #384
- fix: skip scope method that is not a scope by @calebdw in #380
- fix: bugs in ServerVariableToRequestFacadeRector by @calebdw in #392
- fix: skip first class callable in DispatchToHelperFunctionsRector by @calebdw in #391
- Exclude
Request::inputcalls from ApplyDefaultInsteadOfNullCoalesceRector by @GeniJaho in #393 - fix: make EloquentOrderByToLatestOrOldestRector more robust by @calebdw in #395
- Fix interpolation processing in ValidationRuleArrayStringValueToArrayRector by @GeniJaho in #396
- Fix DispatchToHelperFunctionsRector when dispatching within self by @GeniJaho in #407
New Contributors
Full Changelog: 2.0.7...2.1.0
2.0.7
New Rules & Features π
- Add ConvertEnumerableToArrayToAllRector by @calebdw in #363
- Add support for dispatchSync to DispatchToHelperFunctionsRector rule by @pataar in #355
- Add LARAVEL_FACTORIES set by @GeniJaho in #376
- Add MakeModelAttributesAndScopesProtectedRector by @calebdw in #370
- Add ReplaceFakerPropertyFetchWithMethodCallRector by @calebdw in #364
- Improve AppEnvironmentComparisonToParameterRector by @calebdw in #368
- Add additional methods to laravel-arrayaccess-to-method-call by @calebdw in #371
Bugfixes π
- Add interpolated strings support to ReplaceFakerInstanceWithHelperRector by @calebdw in #365
- Fix
UseForwardCallsTraitRectorby @guanguans in #367
Extras βοΈ
- Sync with core Rector and fix rules & docs by @GeniJaho in #373
- Update docs for version auto-detection by @calebdw in #372
New Contributors
- @pataar made their first contribution in #355
- @guanguans made their first contribution in #367
Full Changelog: 2.0.6...2.0.7
2.0.6
New Rules & Features π
- Rule to use Forward calls trait by @peterfox in #349
- Add rule to add HasFactory to Models by @jradtilbrook in #353
Extras βοΈ
- Allow the Factory rules to be configured with an allowlist by @jradtilbrook in #351
- docs: update rector example by @calebdw in #361
- feat: add composer-triggered set for version sets by @calebdw in #362
New Contributors
- @jradtilbrook made their first contribution in #351
- @calebdw made their first contribution in #361
Full Changelog: 2.0.5...2.0.6
2.0.5
New Rules & Features π
- Add
Contextto 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
UnaliasCollectionMethodsby @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