yiisoft / yii-gii

Yii code generator extension
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
33 stars 17 forks source link

Update rector, imporve config it and apply suggestions #106

Closed dependabot[bot] closed 11 months ago

dependabot[bot] commented 11 months ago

Updates the requirements on rector/rector to permit the latest version.

Release notes

Sourced from rector/rector's releases.

Released Rector 0.17.7

New Features :partying_face:

  • [CodingStyle] Skip filled by construct on AddArrayDefaultToArrayPropertyRector (#4549)
  • Add constuctor support to ReplaceArgumentDefaultValueRector (#4554)
  • StaticMapper: added fast path for IdentifierTypeNode (#4565), Thanks @​staabm!
  • Add ReturnTypeFromStrictParamRector (#4501), Thanks @​staabm!
  • Add TypedPropertyFromStrictConstructorReadonlyClassRector (#4552), Thanks @​staabm!
  • ReturnTypeFromStrictTernaryRector: Support complex ternaries (#4515), Thanks @​staabm!

Bugfixes :bug:

  • Support final methods in ClassMethodReturnTypeOverrideGuard (#4509), Thanks @​staabm!
  • Support literals in ReturnTypeFromStrictTypedCallRector (#4511), Thanks @​staabm!
  • [TypeDeclaration] Null stmts check early on ReturnTypeFromStrictParamRector (#4512)
  • [Performance] Use filtered filePaths from ApplicationFileProcessor::configurePHPStanNodeScopeResolver on WorkerRunner::run() (#4513)
  • [DX] Show progress bar 100% on RectorConsoleOutputFormatter::report() (#4516)
  • [ChangesReporting] Reuse defined errors vairable on ConsoleOutputFormatter (#4517)
  • [ApplicationFileProcessor] Refactor ApplicationFileProcessor to filter file paths early before run both parallel and non-parallel (#4519)
  • [DX] Fix hang on twice run after all files processed cached (#4521)
  • [Application] Move filter files by config extensions to FileFactory (#4522)
  • [Php81][Php82][Privatization] Handle extends non-readonly class on ReadOnlyPropertyRector+ReadOnlyClassRector+FinalizeClassesWithoutChildrenRector (#4524)
  • Fix wrong results in RemoveAlwaysElseRector (#4527), Thanks @​jlherren!
  • Support class-const-fetch in ReturnTypeFromStrictTypedCallRector (#4520), Thanks @​staabm!
  • [EarlyReturn] Skip append variable on PreparedValueToEarlyReturnRector (#4530)
  • Refactor MyCLabs\Enum\Enum::equals calls to comparisons (#4532), Thanks @​rojtjo!
  • [Performance][NodeManipulator] Avoid loop on search first variable named on next sliced next stmts on StmtsManipulator (#4537)
  • [Performance] [TypeDeclaration] Reduce resolve ClassReflection on each property on TypedPropertyFromStrictConstructorRector (#4536)
  • [Performance][TypeDeclaration] Reduce resolve ClassReflection from Property on AllAssignNodePropertyTypeInferer (#4539)
  • [Application] Merge process files on both parallel and non-parallel process (#4523)
  • [PHPStan] Merge assert phpstan errors to one (#4544)
  • [Performance] [Php74] Reduce ClassReflection lookup from property on PropertyTypeChangeGuard (#4545)
  • Use instanceof check on ClassReflection resolve (#4547)
  • [Reflection] Reduce Scope pulling on ReflectionResolver (#4548)
  • [Strict] Skip empty() from param doc on DisallowedEmptyRuleFixerRector (#4550)
  • Fix space in paths (#4553)
  • Skip traits in CountOnNullRector (#4556)
  • Make use of toPhpDocNode() - take #2 (#4555)
  • [Performance] [PostRector] Only check phpdocinfo on Stmt and Param on NameImportingPostRector (#4558)
  • [CodeQuality] Skip pull property from inner class on CompleteDynamicPropertiesRector (#4561)
  • Prevent unnecessary scope creation (#4562), Thanks @​staabm!
  • NameImportingPhpDocNodeVisitor: Cheap checks first (#4563), Thanks @​staabm!
  • [Performance][Renaming] No need PhpDocInfo refactor on Name node on ClassRenamer (#4566)
  • [TypeDeclaration] Deprecate ArrayShapeFromConstantArrayReturnRector as uses docblocks that we move away from since 0.15 (#4571)
  • Make ReturnTypeFromStrictNewArrayRector handle only single level arrays (#4575)
  • Fix array mapping (#4576)
  • [Performance] [PostRector] Reduce repetitive resolve uses statements on NameImportingPostRector (#4579)
  • [EarlyReturn] Handle multiple statements in else in ChangeIfElseValueAssignToEarlyReturnRector (#4580), Thanks @​dorrogeray!
  • [BUGFIX] Ensure proper reprint with attributes for finalized classes (#4585), Thanks @​cngJo!

... (truncated)

Commits
  • 0e76101 Rector 0.17.7
  • 94b9794 Updated Rector to commit 079cd5116ab16585e9b656ad7cd6eef8417137ef
  • 6ce5f37 Updated Rector to commit 2afa47cd68086b61cb2363bcfb5553eb8767b50c
  • f955a2d Updated Rector to commit 07934c889213adc8a63a4db60b23575440da30c9
  • 1191015 Updated Rector to commit a8ae2d8c2a92536f95a70dc99eaebb01168c4a6f
  • f8344bb Updated Rector to commit c12703def127562155efcee2c348ca3a4d08c170
  • ba5cf50 Updated Rector to commit 1cae44fcd3cac21d4d8064235d6feebe860be7cd
  • 855f7c2 Updated Rector to commit 50a5bb4057387d3053c5ea1ecf22286ea04dff36
  • 9e3dde0 Updated Rector to commit a7cd7eda65894aea11ca012cac8ea4a29fb0a051
  • 1748477 Updated Rector to commit c94645b3ab7debe9c00531597c1b896080a2cf9d
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
what-the-diff[bot] commented 11 months ago

PR Summary

codecov[bot] commented 11 months ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (1808edb) 31.61% compared to head (5965685) 31.61%.

:exclamation: Current head 5965685 differs from pull request most recent head 22e6d3d. Consider uploading reports for the commit 22e6d3d to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #106 +/- ## ========================================= Coverage 31.61% 31.61% Complexity 199 199 ========================================= Files 28 28 Lines 756 756 ========================================= Hits 239 239 Misses 517 517 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.