yiisoft / yii-bootstrap5

Yii Framework Bootstrap 5 support
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
63 stars 19 forks source link

Update Rector, improve config it and apply suggestions #117

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year 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 1 year ago

PR Summary

codecov[bot] commented 1 year ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (38e8690) 97.26% compared to head (1c39da9) 97.26%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #117 +/- ## ========================================= Coverage 97.26% 97.26% Complexity 444 444 ========================================= Files 18 18 Lines 1570 1570 ========================================= Hits 1527 1527 Misses 43 43 ``` | [Impacted Files](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft) | Coverage Δ | | |---|---|---| | [src/Accordion.php](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft#diff-c3JjL0FjY29yZGlvbi5waHA=) | `93.75% <ø> (ø)` | | | [src/Alert.php](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft#diff-c3JjL0FsZXJ0LnBocA==) | `95.45% <ø> (ø)` | | | [src/Breadcrumbs.php](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft#diff-c3JjL0JyZWFkY3J1bWJzLnBocA==) | `100.00% <ø> (ø)` | | | [src/Button.php](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft#diff-c3JjL0J1dHRvbi5waHA=) | `100.00% <ø> (ø)` | | | [src/ButtonDropdown.php](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft#diff-c3JjL0J1dHRvbkRyb3Bkb3duLnBocA==) | `100.00% <ø> (ø)` | | | [src/ButtonGroup.php](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft#diff-c3JjL0J1dHRvbkdyb3VwLnBocA==) | `100.00% <ø> (ø)` | | | [src/ButtonToolbar.php](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft#diff-c3JjL0J1dHRvblRvb2xiYXIucGhw) | `100.00% <ø> (ø)` | | | [src/Carousel.php](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft#diff-c3JjL0Nhcm91c2VsLnBocA==) | `100.00% <ø> (ø)` | | | [src/Dropdown.php](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft#diff-c3JjL0Ryb3Bkb3duLnBocA==) | `100.00% <ø> (ø)` | | | [src/Modal.php](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft#diff-c3JjL01vZGFsLnBocA==) | `96.71% <ø> (ø)` | | | ... and [7 more](https://app.codecov.io/gh/yiisoft/yii-bootstrap5/pull/117?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=yiisoft) | |

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