Commit Graph

5225 Commits

Author SHA1 Message Date
Tomas Votruba 055cd31f66 Updated Rector to commit 2ff0f08bd7f7f6c848821bcabf0872f81a9c440b
2ff0f08bd7 [PHP 8.0] Add always class to AnnotationToAttribute to include string to ::class reference conversion (#5619)
2024-02-14 19:28:57 +00:00
Tomas Votruba 64ecb6b387 Updated Rector to commit 82d1e1b0c8b80d7a2f30aa4b0fa988a683427db9
82d1e1b0c8 [Php81] Handle nested Fqcn UniqueConstraint on NestedAnnotationToAttributeRector (#5614)
2024-02-13 14:47:21 +00:00
Tomas Votruba b9e54635e9 Updated Rector to commit 7afec9a02c39848257341c4d2d08e1ddf52bc58b
7afec9a02c Add unique PHP 8.1 constraints (#5612)
2024-02-13 04:45:07 +00:00
Tomas Votruba f863e8b003 Updated Rector to commit 7de77e518f7b47b7c7ba0d96152d4acdad958639
7de77e518f [TypeDeclaration] Add AddTestsVoidReturnTypeWhereNoReturnRector (#5611)
2024-02-12 22:55:41 +00:00
Tomas Votruba a120574816 Updated Rector to commit 14eb72c7bb6edc4a6e80c73c722f54465d947531
14eb72c7bb [DeadCode] Handle used in assign return on RemoveUnusedPrivatePropertyRector (#5608)
2024-02-12 14:51:52 +00:00
Tomas Votruba 7f9bb2ae80 Updated Rector to commit df8d2b78edd46542e6426fec606c3ea98d712532
df8d2b78ed Copy subtype phpdoc on ClassPropertyAssignToConstructorPromotionRector (#8438) (#5603)
2024-02-11 09:00:00 +00:00
Tomas Votruba 54904b716f Updated Rector to commit 77ec96e4e8ec9e3a1d514df878e6eadcd199feb8
77ec96e4e8 [Transform] Allow class const fetch value on rules() on RectorConfigBuilderRector (#5596)
2024-02-10 13:37:38 +00:00
Tomas Votruba 3f928476d9 Updated Rector to commit 2c65489cfd178fbd0e4d2b52b504a7541e34bc59
2c65489cfd [Php81] Skip another possible cast array to string on NullToStrictStringFuncCallArgRector (#5589)
2024-02-09 08:50:13 +00:00
Tomas Votruba e5f35d1a39 Updated Rector to commit 178ce5c65a820a5c42c7928486a044b44a976436
178ce5c65a  [Php81] Skip possible array on NullToStrictStringFuncCallArgRector  (#5587)
2024-02-08 13:13:45 +00:00
Tomas Votruba 7bb5d0c0c4 Updated Rector to commit 5b3d656a003e72540050d47e00285341a96b5796
5b3d656a00 [Custom] Add "detect-node" command to help with writing custom rules (#5576)
2024-02-07 16:28:52 +00:00
Tomas Votruba af18c3962f Updated Rector to commit 667983116e7c8ec828a0b9b1877f90e4faf532e0
667983116e [Transform] Transform skip() to withSkip() on RectorConfigBuilderRector (#5575)
2024-02-07 13:22:56 +00:00
Tomas Votruba 0d0320e989 Updated Rector to commit 5a5ea60f6dffdd0a63e04a64f8061f53facd46b3
5a5ea60f6d [Transform] Transform paths() to withPaths() on RectorConfigBuilderRector (#5574)
2024-02-07 13:11:49 +00:00
Tomas Votruba ed0dadf714 Updated Rector to commit bd37496639378be3e1b72dec430ef906f0a6e94d
bd37496639 [DeadCode] Skip with magic __get() on RemoveUnusedPromotedPropertyRector (#5573)
2024-02-07 12:31:25 +00:00
Tomas Votruba 914c0a8e27 Updated Rector to commit af4d3db31bacab922d47b2551cec66644e3568b7
af4d3db31b [PHP81] Skip after is_string on object call on NullToStrictStringFuncCallArgRector (#5572)
2024-02-07 10:34:12 +00:00
Tomas Votruba c65d65d663 Updated Rector to commit 7976482b3b067758fc88b000794e8cb94a4b2389
7976482b3b ExplicitBoolCompareRector: skip phpdoc (#5567)
2024-02-06 14:37:09 +00:00
Tomas Votruba 64d401b643 Updated Rector to commit 9a44c19598a21aff4b6b38f9a0db3b5ca30337c6
9a44c19598 [Transform] Transform rules() to withRules() on RectorConfigBuilderRector (#5566)
2024-02-06 06:23:36 +00:00
Tomas Votruba 428336c22c Updated Rector to commit 09398c3d4f07bb6ad664a55b87cab955278a467e
09398c3d4f Decouple AddFunctionVoidReturnTypeWhereNoReturnRector to allow leveling by simple node first (#5563)
2024-02-05 16:07:43 +00:00
Tomas Votruba d00ebb838c Updated Rector to commit 56c250771518c2aa2e17bc64c9986c2dbe9b6fd8
56c2507715 Decouple AddClosureVoidReturnTypeWhereNoReturnRector to allow leveling by simple node first (#5562)
2024-02-05 15:56:19 +00:00
Tomas Votruba b0c6aaf812 Updated Rector to commit 625bc7eee281d46b0e7c706d9ca9e259b7ef0db6
625bc7eee2 Fix platform version resolution, use require first (#5555)
2024-02-04 23:14:35 +00:00
Tomas Votruba 8cb186674a Updated Rector to commit 037153ba50e85666dc8bdc90f832ea4c0ff3677e
037153ba50 [DX] Fix missing Rector\RectorGenerator\Exception\ConfigurationException (#5558)
2024-02-04 21:53:39 +00:00
Tomas Votruba 8e25ebe2a2 Updated Rector to commit ba1cad35898880f6de97c9743aab96d2ac90ba73
ba1cad3589 [Privatization] Fix reprint with attribute on FinalizeTestCaseClassRector (#5557)
2024-02-04 21:10:29 +00:00
Tomas Votruba e394be7dd2 Updated Rector to commit 2dd395167cdc146a1b566bae9c5c2f2885e55c16
2dd395167c [TypeDeclaration] Skip assign in construct with method call property same name on RestoreDefaultNullToNullableTypePropertyRector (#5556)
2024-02-04 20:46:49 +00:00
Tomas Votruba b707660218 Updated Rector to commit 081cf7f7e508428f259b83125883178632e350dc
081cf7f7e5  [Transform] Add RectorConfigBuilderRector  (#5551)
2024-02-04 11:05:31 +00:00
Tomas Votruba 59f9eb1491 Updated Rector to commit 715103cdf1ecad0b4668f3b9e38582b3e5b55fbe
715103cdf1 Add support for YieldFrom into places where Yield_ is checked (#5499)
2024-02-03 22:50:20 +00:00
Tomas Votruba e45bc25429 Updated Rector to commit 06fa177cb6524bdd1a3338ed5d98871ef7a5590e
06fa177cb6 Fix make ReadOnlyPropertyRector skip if traits are used, as not reliable (#5548)
2024-02-03 21:46:29 +00:00
Tomas Votruba 2080c1456d Updated Rector to commit 1848724bf2308c31e53d0937013715fa7a40a9c3
1848724bf2 [EarlyReturn] Skip append variable in PreparedValueToEarlyReturnRector (#8390) (#5545)
2024-02-02 21:56:32 +00:00
Tomas Votruba 5c93328f48 Updated Rector to commit cdc57233696fd680c8ebe3040b02c54d1da9c779
cdc5723369 [TypeDeclaration] Change bool to false or true docblock when union has false/true standalone type on ReturnUnionTypeRector (#5543)
2024-02-02 06:45:48 +00:00
Tomas Votruba b0211bc3d8 Updated Rector to commit fa75fcf0d1445f90cff9199875aba352671795f9
fa75fcf0d1 [Performance][PhpVersionResolver] Cache resolve platform/require from composer.json on ProjectComposerJsonPhpVersionResolver (#5542)
2024-02-01 23:54:40 +00:00
Tomas Votruba 22c18b8179 Updated Rector to commit f03a6fd7d060535a5c124fe461190aafc527364e
f03a6fd7d0 [Privatization] Add FinalizeTestCaseClassRector (#5539)
2024-01-31 23:36:35 +00:00
Tomas Votruba c49de5a16c Updated Rector to commit 5e7ecb623ad7fe78a660fe3d2275166492ebdb40
5e7ecb623a [stabilize] Remove child classes from MixedTypeRector as not reliable (#5537)
2024-01-31 22:01:40 +00:00
Tomas Votruba dc77b4b2a6 Updated Rector to commit cbc077340ed5ee4a062caa32ab91cd8cb0d4ec6e
cbc077340e [stabilize] Deprecate FinalizeClassesWithoutChildrenRector as causing bugs without full context (#5535)
2024-01-31 21:40:00 +00:00
Tomas Votruba e377d35b97 Updated Rector to commit 2efd564640e94edf09f95f3872adb11e059f5fb8
2efd564640 [stabilize] Deprecate FinalizePublicClassConstantRector as not reliable and causes uncontroller changed (#5534)
2024-01-31 14:27:18 +00:00
Tomas Votruba a28aa22831 Updated Rector to commit 27791d1456c5ade373a0ba9d818404805eee89f4
27791d1456  [Php81] Allow nullable union on NullToStrictStringFuncCallArgRector  (#5532)
2024-01-31 13:37:12 +00:00
Tomas Votruba aace6ea006 Updated Rector to commit 7294e98a19531d580c3ba901c147ea0a52282595
7294e98a19 Fix AddMethodCallBasedStrictParamTypeRector if already has a type (#5530)
2024-01-30 23:57:24 +00:00
Tomas Votruba 97c24103e6 Updated Rector to commit 6046c24443d9bfdfe5bf8638fb82e03703ee1df8
6046c24443 [CodingStyle] Return null on no change on StrictArraySearchRector (#5528)
2024-01-30 20:48:28 +00:00
Tomas Votruba 8fe9717aee Updated Rector to commit 3c51cd8ebebd6840a0374e367308049c36761ee0
3c51cd8ebe [EarlyReturn] Improve RemoveAlwaysElseRector to handle multiple ElseIfs (#8178) (#5521)
2024-01-30 09:02:15 +00:00
Tomas Votruba 3c3170a04e Updated Rector to commit 171fddb1a1e9c54e194130ffe039809721d1f465
171fddb1a1 add withPhpSets() methods (#5519)
2024-01-29 23:52:40 +00:00
Tomas Votruba 826292d8c1 Updated Rector to commit 52398c81f9e88bde858cd2d79d481ae66190abc7
52398c81f9 [Php83] add string type to concat constant (#5516)
2024-01-29 16:18:28 +00:00
Tomas Votruba cd34331aa7 Updated Rector to commit c2cdcd3922d06924acfbf4a792eec61dccbee03e
c2cdcd3922 [CodeQuality] Fix logic start with [^ on SimplifyRegexPatternRector to ensure only skip on this case (#5495)
2024-01-23 16:37:59 +00:00
Tomas Votruba aa518bb95d Updated Rector to commit dd02659ec90240c9452ccb86e48fb53879572935
dd02659ec9 [CodeQuality] Skip surplus open square bracket on SimplifyRegexPatternRector (#5494)
2024-01-23 15:52:42 +00:00
Tomas Votruba e4d714cf5f Updated Rector to commit f7caedf1b61070322bfb44bb266fbf26f8c993d3
f7caedf1b6 [Performance][PhpParser] Deprecate InlineCodeParser::parse(), extract into parseFile() and parseString() (#5482)
2024-01-23 09:41:00 +00:00
Tomas Votruba c36d19ef56 Updated Rector to commit aa66151ff14da601b4b155f4a876ad2a2070259c
aa66151ff1 [Performance] Remove unnecessary FunctionLikeParamPositionNodeVisitor (#5491)
2024-01-22 14:26:31 +00:00
Tomas Votruba 0fc99839e2 Updated Rector to commit a2ff229df99785b6b51721d929a750f51e72f57a
a2ff229df9 Fix phpstan (#5489)
2024-01-21 23:21:57 +00:00
Tomas Votruba b140c86242 Updated Rector to commit 46dd96122bdeb7b893f518bd131c69093b6da752
46dd96122b [Renaming] Remove rename class name (#5488)
2024-01-21 23:15:27 +00:00
Tomas Votruba 599ee7833e Updated Rector to commit be53faca08c2f5c3ebafb636e766788676f54d28
be53faca08 [Renaming] Remove namespace renames in ClassRename, as it should only rename references, not move to new namespace (#5487)
2024-01-21 21:13:24 +00:00
Tomas Votruba 6cacf30624 Updated Rector to commit 7e2495e5f572bb566a845a0e1a6329cf141f872d
7e2495e5f5 [Php70] Skip inside Encapsed on ThisCallOnStaticMethodToStaticCallRector (#5481)
2024-01-19 14:05:32 +00:00
Tomas Votruba f605aeb93f Updated Rector to commit 76714b95f240409a6fad92725ea19c870ed3ff14
76714b95f2 [Printer] Remove unnecessary BetterStandardPrinter::pStmt_Use() (#5478)
2024-01-18 20:41:36 +00:00
Tomas Votruba 566e0f2b70 Updated Rector to commit 985d5ea5109e1282f35370006ad7ac26df7789de
985d5ea510 cs
2024-01-17 14:38:19 +00:00
Tomas Votruba 0d611d897a Updated Rector to commit 07df7dc1a344c52711441149d61251a4fe10366d
07df7dc1a3 Remove collector interface and fix SpatieEnumClassToEnumRector already has underscore to double underscore (#5473)
2024-01-16 10:21:57 +00:00
Tomas Votruba ec3d78eef4 Updated Rector to commit 5a3a59c50c7810296274eb4408737c8f2f8921e7
5a3a59c50c Remove collectors, as performance very costly and not practically useful (#5470)
2024-01-15 22:10:40 +00:00
Tomas Votruba 455fba49f9 Updated Rector to commit 9d310ce5daca61f51f35e3c8755a442998f1c536
9d310ce5da Skip null type in ReturnTypeFromStrictScalarReturnExprRector as often not desired (#5462)
2024-01-13 09:43:24 +00:00
Tomas Votruba 8b20f236c0 Updated Rector to commit 2ec55701f292770fc7be3ca6e434d437e59c333b
2ec55701f2 [Performance] Fix filter cache on SkippedClassResolver (#5460)
2024-01-13 01:44:47 +00:00
Tomas Votruba bebd959a24 Updated Rector to commit ac072bc8af186b2c86256aa7d29e52bb608ece27
ac072bc8af feat: add an option to skip renaming promoted property (#5457)
2024-01-11 23:02:48 +00:00
Tomas Votruba e61f4b3c7b Updated Rector to commit f24b01ae0af6cdf4517fee0d74d79cc39d31f602
f24b01ae0a Remove CI status for rector/phpstan-rules on Readme (#5456) (#5458)
2024-01-11 15:31:55 +00:00
Tomas Votruba ca876bf90c Updated Rector to commit 9193b276de2d9e51e063740a9fea61a559750f19
9193b276de Clean up concat empty string on regex constant usage (#5449)
2024-01-10 05:55:03 +00:00
Tomas Votruba bddc91bccd Updated Rector to commit b71c3265d5f90745d52b081a1201e3d97617e14a
b71c3265d5 fix: RenameMethodRector should handle NullsafeMethodCall (#5444)
2024-01-07 16:56:38 +00:00
Tomas Votruba 29eada363c Updated Rector to commit d3791938add9fe1faddfd404ab76183235c1df2f
d3791938ad [automated] Apply Coding Standard (#5440)
2024-01-07 00:31:04 +00:00
Tomas Votruba 1142f3d356 Updated Rector to commit 86e740248314edf23ef3307ac2a804a54c898282
86e7402483 Allows to convert Spatie enum names to snake upper case (#5435)
2024-01-06 13:17:15 +00:00
Tomas Votruba 3c0a61462c Updated Rector to commit 9a794f4ac4a100c1bffbf6af5a0c15f9628f3b90
9a794f4ac4 [TypeDeclaration] Handle with default null on ParamTypeByMethodCallTypeRector (#5437)
2024-01-06 06:01:40 +00:00
Tomas Votruba 8728d93e41 Updated Rector to commit 55a787b9a2a18d7b131e74f0bc0d244989f6c92e
55a787b9a2 [CodeQuality] Handle crash with call inside loop on SimplifyForeachToCoalescingRector (#5436)
2024-01-06 05:25:58 +00:00
Tomas Votruba 2b45fbe814 Updated Rector to commit 3d71ae36b00e22fb5430e1812af95182c0e58904
3d71ae36b0 [TypeDeclaration] Skip re-assign with call and use as arg on StrictArrayParamDimFetchRector (#5434)
2024-01-05 13:43:19 +00:00
Tomas Votruba b433dedda4 Updated Rector to commit d4f6b91f922bd52289d923aff07691d07e455cb1
d4f6b91f92 [TypeDeclaration] Allow both integer and string index array on StrictArrayParamDimFetchRector (#5433)
2024-01-05 13:13:40 +00:00
Tomas Votruba feacfd524a Updated Rector to commit 971571be0cbcc21f1d6c7861c17423aef053b499
971571be0c [TypeDeclaration] Skip with empty() check on StrictArrayParamDimFetchRector (#5432)
2024-01-05 12:46:00 +00:00
Tomas Votruba 41a86add1d Updated Rector to commit b007a8bd11ea0451b50dbafbacd5450b295f6266
b007a8bd11 [Php83] Add implements interface support on AddOverrideAttributeToOverriddenMethodsRector (#5429)
2024-01-04 19:14:21 +00:00
Tomas Votruba 5457aea4e0 Updated Rector to commit 1f9829d2a3820f39fe0601b996c5cba71ffb42b0
1f9829d2a3 [Strict] Add StaticProperty supporton may be unitialized static property on DisallowedEmptyRuleFixerRector (#5428)
2024-01-04 15:49:28 +00:00
Tomas Votruba 5c10ef9158 Updated Rector to commit 09c077e25801da58834be284a792c3987ea806ef
09c077e258 [TypeDeclaration] Add false and true in union support on ReturnUnionTypeRector (#5355)
2024-01-03 07:52:06 +00:00
Tomas Votruba 1daa932d00 Updated Rector to commit 5c0397910fbd9735c375c4632ec116ebe8609f25
5c0397910f Add missing rule doc (#5426)
2024-01-02 21:38:33 +00:00
Tomas Votruba 350042dba4 Updated Rector to commit 9144efc05cf4d084d4af69f4df0be9d7a66e5869
9144efc05c Keep called method in RemoveEmptyClassMethodRector (#5425)
2024-01-02 20:43:50 +00:00
Tomas Votruba 3a49fcd8d5 Updated Rector to commit 8724feefea91743e05006cb1329c5cd1675b5003
8724feefea Skip cond with side effect in RemoveDeadConditionAboveReturnRector (#5424)
2024-01-02 20:16:55 +00:00
Tomas Votruba 35d4ae5ad9 Updated Rector to commit d886cffeded58fb4b5a55182f4b98b796545c18e
d886cffede [build] Try removing scope aliases
2024-01-02 02:50:51 +00:00
Tomas Votruba 0601eaa986 Updated Rector to commit cf0d54eb5996ded864208ee940fb794e7440ea6a
cf0d54eb59 fix Core namespace
2024-01-02 02:42:51 +00:00
Tomas Votruba 7e7a2f067a Updated Rector to commit 476cfb00cb6a94cb64badf9472ee78f33bdf44b3
476cfb00cb disable fallback for now
2024-01-02 02:40:38 +00:00
Tomas Votruba 3916887582 Updated Rector to commit 9f937086898498f37d71977895312cbdb7fdbc6a
9f93708689 [Strict] Handle may be unitialized property on DisallowedEmptyRuleFixerRector (#5409)
2024-01-01 13:26:19 +00:00
Tomas Votruba 7ba32aac1f Updated Rector to commit e12c73eb339a847bcd717025abf5bc43f1cd0e4c
e12c73eb33 [psr-4] Move tests to main namespace, as part of /src and /packages merge - step 2 (#5407)
2024-01-01 00:20:45 +00:00
Tomas Votruba 4bfd1e7acf Updated Rector to commit 0d424e1b978cd70d0aafe6e095f19fb67adb8de3
0d424e1b97 [psr-4] Move tests to main namespace, as part of /src and /packages merge (#5406)
2023-12-31 23:42:36 +00:00
Tomas Votruba 1731eeac5d Updated Rector to commit befe096ca10f7476efeb082fb7c736ba7bd07af5
befe096ca1 [phpstan] tidy up bin files, group complex errors + Cleanup AddTypeToConstRector (#5405)
2023-12-31 20:56:31 +00:00
Tomas Votruba 6b98134b54 Updated Rector to commit 9c7842f036e9164616582ea6e8b2ce95f90426e4
9c7842f036 [ecs] tidy up config (#5403)
2023-12-31 19:44:21 +00:00
Tomas Votruba 67d86f3aa4 Updated Rector to commit fff370b2c0f029203b7c53b96e4a7b8e9217af76
fff370b2c0 [Php83] Handle dynamic host and port values on CombineHostPortLdapUriRector (#5401)
2023-12-31 12:20:56 +00:00
Tomas Votruba b1b95d1c64 Updated Rector to commit e044d50e9b7b04c5ef7454044721dbf16b4b75f8
e044d50e9b [TypeDeclaration] optionally only add types for hard coded return values in `ReturnTypeFromStrictScalarReturnExprRector` (#5364)
2023-12-30 11:58:36 +00:00
Tomas Votruba 38b33113ca Updated Rector to commit 109d734969100cf97bdc820e7c369c90e9e4016a
109d734969 [Php83] Add CombineHostPortLdapUriRector (#5397)
2023-12-27 22:04:09 +00:00
Tomas Votruba 95ed962a15 Updated Rector to commit 6646d23fe0cea4b4a871ca1931e33f0cb2a574c7
6646d23fe0 [CodingStyle] Add RemoveUselessAliasInUseStatementRector (#5394)
2023-12-26 17:40:03 +00:00
Tomas Votruba 3f2b3edab8 Updated Rector to commit 6ebab94b971a930457c8e217dcb699c671ad617b
6ebab94b97 Add related polyfill interface to other PHP 8.0/7.3 rules (#5389)
2023-12-25 00:55:45 +00:00
Tomas Votruba 8775d2e083 Updated Rector to commit ebb2d2df55887c25f74af39b400194039dff78d4
ebb2d2df55 [DX] Add "Related polyfill" feature to upgrade based on used symfony/polyfill-* packages (#5388)
2023-12-24 12:52:27 +00:00
Tomas Votruba 462b60a70a Updated Rector to commit c6ca4f1f5ccdf73d9aa0f8f441267725e07aee67
c6ca4f1f5c [Performance][TypeDeclaration] Avoid using AstResolver on class is on same file on AllAssignNodePropertyTypeInferer (#5387)
2023-12-24 03:11:42 +00:00
Tomas Votruba 06a8e6394a Updated Rector to commit 012e8bb2ed77516c792e3fb9c777066c3776abcc
012e8bb2ed Skip non-final class method with no content in AddVoidReturnTypeWhereNoReturnRector (#5386)
2023-12-24 01:21:59 +00:00
Tomas Votruba f9f96d6bb9 Updated Rector to commit 00b442f2d79f1536e9dc59c2fa7ff541a0cba1e8
00b442f2d7 Fix variable to property fetch update in ClassPropertyAssignToConstructorPromotionRector (#5385)
2023-12-24 00:51:27 +00:00
Tomas Votruba 3d9b6b2c99 Updated Rector to commit 620321b3833dd450a7de79a620a07c7131342422
620321b383 Add ReturnTypeFromStrictBoolReturnExprRector support for if/else returns (#5384)
2023-12-23 21:26:40 +00:00
Tomas Votruba f77e8b8450 Updated Rector to commit 16f8d19db32108740794a68a011c78328bb69aed
16f8d19db3 Fix StrictArrayParamDimFetchRector for string access (#5383)
2023-12-23 20:44:18 +00:00
Tomas Votruba 80dad1d8c8 Updated Rector to commit a644d0d4a2f1e457f77cf8e384fd32b78b5ff388
a644d0d4a2 [Arguments] Allow no default value on ArgumentAdderRector (#5382)
2023-12-23 19:44:26 +00:00
Tomas Votruba a4aba10ad7 Updated Rector to commit 3cef752763be750ea221c5c5eb1681d27398a3d5
3cef752763 Skip classes without final and exception as possibly invoke child implement in AddVoidReturnTypeWhereNoReturnRector (#5381)
2023-12-23 15:28:34 +00:00
Tomas Votruba 94baa5fede Updated Rector to commit 8df2120b3f546dd7f0eb89bf199a042dfc9283e7
8df2120b3f Skip void without final keyword in ReturnNeverTypeRector as could be implemented with more precise children (#5379)
2023-12-23 14:51:47 +00:00
Tomas Votruba 1ce9a4da5a Updated Rector to commit c2c6558cde8138d5509b306bd499e013ac5da2e9
c2c6558cde [TypeDeclaration] Allow add void return type on magic __invoke() method on AddVoidReturnTypeWhereNoReturnRector (#5376)
2023-12-22 17:39:40 +00:00
Tomas Votruba 949ab12adb Updated Rector to commit 7ca4de097ed6b2f0f2b20a8f2b55ea2121120173
7ca4de097e [DeadCode] Skip nullable array on RemoveUnusedNonEmptyArrayBeforeForeachRector (#5375)
2023-12-21 15:22:15 +00:00
Tomas Votruba 40ac5bade5 Updated Rector to commit 4283beff2f78d5820f27384826d5d1b75d3ff62a
4283beff2f [CodeQuality] Skip method call on else on TernaryFalseExpressionToIfRector (#5373)
2023-12-18 12:32:23 +00:00
Tomas Votruba 335a3861f8 Updated Rector to commit 63201f76725831988f1484476f6f84e0976a5742
63201f7672 [CodeQuality] Skip Superglobals variable on SimplifyEmptyCheckOnEmptyArrayRector (#5369)
2023-12-17 09:24:20 +00:00
Tomas Votruba 785ac22e33 Updated Rector to commit 89d2c9c4eb2bfddc226136899b1fdb0a99d19a8a
89d2c9c4eb [Php72] Remove usage on PrivatesAccessor on AnonymousFunctionFactory (#5367)
2023-12-17 06:37:00 +00:00
Tomas Votruba d525e926d3 Updated Rector to commit 1dcebfe29713124a43504c9a4bac322fa2f41f59
1dcebfe297 [automated] Apply Coding Standard (#5365)
2023-12-17 00:30:16 +00:00
Tomas Votruba 168d6a72a1 Updated Rector to commit 120e0ccfc40bc696d23a9e1d93b6662ea7dfa682
120e0ccfc4 Bump to php parser 4.18 (#5362)
2023-12-16 15:55:14 +00:00
Tomas Votruba bd56d13367 Updated Rector to commit 39cce5ccb84ce4ac40eeae113db339a961db9489
39cce5ccb8 [ECS] Skip SelfAccessorFixer on *Rector.php to skip example code for using using self:: (#5363)
2023-12-16 15:42:57 +00:00
Tomas Votruba 7bf2453858 Updated Rector to commit 227e97477c44de40c165bba4b72e48dd954151d5
227e97477c [Transform] Do not create a new node if the existing node is already the correct one on AttributeKeyToClassConstFetchRector (#5328)
2023-12-16 02:55:33 +00:00
Tomas Votruba 90b260693b Updated Rector to commit 589bda6cd1eb7bc6cdc68313facc02cae41ba628
589bda6cd1 [Naming] Skip `$this` in RenameForeachValueVariableToMatchExprVariableRector (#5360)
2023-12-15 10:14:01 +00:00
Tomas Votruba 7c223ab41f Updated Rector to commit 5a1512b4c0939c1b8f9ab7a1c0eb40029acb1537
5a1512b4c0 [TypeDeclaration] Allow return static from under function on ReturnTypeFromStrictTypedCallRector (#5358)
2023-12-13 14:10:43 +00:00
Tomas Votruba b571b1cd51 Updated Rector to commit 0817980433aaf92d2b71e4d9804ec1988afbf908
0817980433 [TypeDeclaration] Return new static from different object on ReturnTypeFromStrictTypedCallRector (#5357)
2023-12-13 13:01:03 +00:00
Tomas Votruba e3e6cff9bd Updated Rector to commit fea5d6c0034746e050851887a7900bf94a22069d
fea5d6c003 [TypeDeclaration] Skip casted to (array) on StrictArrayParamDimFetchRector (#5356)
2023-12-12 15:47:12 +00:00
Tomas Votruba 39e43b6cca Updated Rector to commit dc9573d9bd60ec966db626be91c13cc6a5c4bbef
dc9573d9bd [Php55] Make StringClassNameToClassConstantRector configurable to keep first pre-backslash string configurable (#5354)
2023-12-11 13:06:54 +00:00
Tomas Votruba d2dde21bd9 Updated Rector to commit 68c42e7e843bfb9fde2b6516bb1bb76648d67045
68c42e7e84 [DeadCode] Skip Remove @return/@param null functionality in case of sub type (#5350)
2023-12-10 16:34:14 +00:00
Tomas Votruba fffe49e4aa Updated Rector to commit 287eab3a7040f8d42fa10701d5fbfc2998fdcc25
287eab3a70 [DeadCode] Add RemoveNullTagValueNodeRector (#5352)
2023-12-10 16:32:52 +00:00
Tomas Votruba bb15f9c3c4 Updated Rector to commit e400e37e5fe1d329419874143c16d53242cf5b55
e400e37e5f [DeadCode] Remove null as never used param type in RemoveUselessParamTagRector (#5348)
2023-12-10 12:52:21 +00:00
Tomas Votruba 5c2f93e7b7 Updated Rector to commit f7b9dd9035931da5a040f5c714c79c32c424b677
f7b9dd9035 Update rector.php of skip() to allow file name has word: "Expected" (#5347)
2023-12-10 02:05:30 +00:00
Tomas Votruba 34915563d5 Updated Rector to commit bc69455d8a05c1325d64dac545931594ca1fe4aa
bc69455d8a [automated] Apply Coding Standard (#5346)
2023-12-10 00:29:46 +00:00
Tomas Votruba b4235c46ba Updated Rector to commit f2a8542f3e7538a2c1aafdfd93a773e4065adcff
f2a8542f3e Typo fix (#5341)
2023-12-08 14:45:41 +00:00
Tomas Votruba e5e3c815d5 Updated Rector to commit 14f11280c85a2776b211dac001f0accd4295c587
14f11280c8 [Naming] Skip DateTimeImmutable on RenamePropertyToMatchTypeRector (#5340)
2023-12-08 14:41:39 +00:00
Tomas Votruba 548d5109ed Updated Rector to commit 0a2dc3d52b679bad1b07849d951748a8faad7f9a
0a2dc3d52b Fix array type if property is used in TypedPropertyFromStrictConstructorRector (#5339)
2023-12-08 13:59:08 +00:00
Tomas Votruba d471c4dbd9 Updated Rector to commit af55788ca8f814c658d39444a9cefa67135805b6
af55788ca8 [PHP 5.5] Remove extra preslash in class reference, as in practice removal manually (#5338)
2023-12-08 11:29:59 +00:00
Tomas Votruba 58923caaf6 Updated Rector to commit 043d43cd0347b4c2a73e896674a1f22ab1ce6d62
043d43cd03 [DeadCode] Remove unused @return mixed on RemoveUselessReturnTagRector (#5332)
2023-12-06 13:28:15 +00:00
Tomas Votruba 942be869a9 Updated Rector to commit 1daab3c53f4a09669d2d915f7e245e984ace908d
1daab3c53f [DeadCode] Add Function_ support on RemoveUselessParamTagRector (#5331)
2023-12-06 10:48:40 +00:00
Tomas Votruba 413475184c Updated Rector to commit a92fade7d0fbfcee3fb3e4f0ff5620e281de8ce0
a92fade7d0 [TypeDeclaration] Handle DateTimeInterface from use statement on MergeDateTimePropertyTypeDeclarationRector (#5330)
2023-12-05 21:28:49 +00:00
Tomas Votruba e86b6d37a6 Updated Rector to commit d22741edaf63d488b39f7754353b0ea8cc454836
d22741edaf [TypeDeclaration] Fix missing change type to DateTimeInterface on MergeDateTimePropertyTypeDeclarationRector (#5329)
2023-12-05 21:03:16 +00:00
Tomas Votruba 13aada9fdc Updated Rector to commit b1a50d4c785b9fc1498bcd843e58635350e10114
b1a50d4c78 [TypeDeclaration] Add MergeDateTimePropertyTypeDeclarationRector (#5327)
2023-12-05 14:01:18 +00:00
Tomas Votruba 2f9139b981 Updated Rector to commit 1b1afebd878e60ee25af5fe1bb9ef3f95fe47d33
1b1afebd87 [Php83] Fix const from applying incorrect types (#5326)
2023-12-05 12:35:18 +00:00
Tomas Votruba 374ed77ef0 Updated Rector to commit 4531aeb0cd7ef47a75afbee72237eef45b4cc266
4531aeb0cd [DeadCode] Add Function_ support on RemoveUselessReturnTagRector (#5325)
2023-12-05 09:55:15 +00:00
Tomas Votruba 1095b54b14 Updated Rector to commit 005ccc330c3bb37f9faf0f5e2c319036f2d055b8
005ccc330c Rectify (#5324)
2023-12-04 14:56:20 +00:00
Tomas Votruba 1754c2c66a Updated Rector to commit 526f4cd09c06842987e46d661b6ad87a8da723a7
526f4cd09c Remove return type in case of never in RemoveUselessReturnTagRector (#5323)
2023-12-04 14:51:16 +00:00
Tomas Votruba 6cba20638d Updated Rector to commit 80cf5781c3bf477076753e2a0c2890ae0ecbb4c1
80cf5781c3 [DeadCode] Remove useless nullable @return doc on RemoveUselessReturnTagRector (#5321)
2023-12-04 05:22:37 +00:00
Tomas Votruba ee373e619a Updated Rector to commit 41729c25cb33ec5219433d5e101d6d54ed4045a2
41729c25cb [DeadCode] Skip @return never with void on  RemoveUselessReturnTagRector (#5320)
2023-12-04 01:56:17 +00:00
Tomas Votruba d9834a6d69 Updated Rector to commit 8e6d46a58fff8e6bd5276b9ae473bfb91460b487
8e6d46a58f [Instanceof] Fix combination of dead instance and compare (#5319)
2023-12-03 20:12:56 +00:00
Tomas Votruba ab4ff53673 Updated Rector to commit 026398c9e1078cb3ac5cac41767b620872166859
026398c9e1 Remove return type in case of void in RemoveUselessReturnTagRector (#5318)
2023-12-03 19:10:14 +00:00
Tomas Votruba 7124cd0a2c Updated Rector to commit 055ab62e3fa14a1aaccd2a5e7f2a9fd354fbd600
055ab62e3f Fix annotation to attribute parsing string (#5317)
2023-12-03 17:40:26 +00:00
Tomas Votruba e7fa7d1aa0 Updated Rector to commit 18617f9880d098bceae210512c190c8d44aa7811
18617f9880 Remove isPositiveInteger() check for third argument to strpos() (#5257)
2023-12-03 16:56:59 +00:00
Tomas Votruba 9d01b5b403 Updated Rector to commit d9c5d8f09bfd68e7496c07c23ddac03447cfbb32
d9c5d8f09b [Strict] Allow check '0' empty zero on BooleanInTernaryOperatorRuleFixerRector on string type (#5297)
2023-12-03 15:49:51 +00:00
Tomas Votruba f9c1f58ffc Updated Rector to commit 52b665436c0f2161619b265caa3f2a65be5604dc
52b665436c [PHP83] Implements a rule to add types to class constants (#5290)
2023-12-03 14:59:47 +00:00
Tomas Votruba 1bcbe800e1 Updated Rector to commit ea5b331e7ea67a03b4c3f162c566a8dbfd74d55d
ea5b331e7e [CodeQuality] Add RemoveUselessIsObjectCheckRector (#5316)
2023-12-03 12:25:03 +00:00
Tomas Votruba 3ef06bdaf4 Updated Rector to commit be924be778eeceffa6105ab330ea7eb366ebb44b
be924be778 [TypeDeclaration] Add If else assign support on TypedPropertyFromAssignsRector (#5314)
2023-12-03 11:18:10 +00:00
Tomas Votruba 2a8dd1b78f Updated Rector to commit 368075b95cf10dff9d0313abbe94d3c6d3b28f67
368075b95c [PHP 7.0] Skip mt_rand() replacement as not valuable (#5315)
2023-12-03 10:51:00 +00:00
Tomas Votruba 0668f1e99c Updated Rector to commit ae081e11dae915e05a58cbd9d2a995f3ac868254
ae081e11da [TypeDeclaration] Keep constant false return type from strict native call (#5223)
2023-12-03 09:56:22 +00:00
Tomas Votruba 77ce00c02a Updated Rector to commit 483aca176cd25b478a99fe213a98ec5bd348bd13
483aca176c [Php80] Skip PDO::query() on AddParamBasedOnParentClassMethodRector (#5313)
2023-12-03 09:17:50 +00:00
Tomas Votruba 93efaa2dcc Updated Rector to commit 3b84030d093b9896615f640ad0e361c923af8953
3b84030d09 [TypeDeclaration] Skip return void in abstract empty class in AddVoidReturnTypeWhereNoReturnRector (#5311)
2023-12-02 19:56:06 +00:00
Tomas Votruba c520a88733 Updated Rector to commit cd9ea2c717511f81e7bb7298a62f8ea558441a37
cd9ea2c717 [Privatization] Fix first class callable in PrivatizeLocalGetterToPropertyRector (#5310)
2023-12-02 13:42:50 +00:00
Tomas Votruba de5ec400ca Updated Rector to commit aac9573e0ef040c236a569a9cbbe965af61ab0b8
aac9573e0e [Privatization] Skip call non-private method on non-final class on PrivatizeLocalGetterToPropertyRector (#5309)
2023-12-02 08:58:47 +00:00
Tomas Votruba b698053254 Updated Rector to commit 5c8fa12ec90e4d4b55fd05f48509c538c243482d
5c8fa12ec9 [Doc] Typo fix on sample code documentation on SimplifyForeachToCoalescingRector (#5308)
2023-12-02 05:05:22 +00:00
Tomas Votruba cb8a63ca31 Updated Rector to commit 71c22e20d9a3b2ba187515711b13fca40b595d93
71c22e20d9 [CodeQuality] Skip with else on SimplifyForeachToCoalescingRector (#5307)
2023-12-02 04:51:32 +00:00
Tomas Votruba c5421dfd82 Updated Rector to commit e48234e23981f4022e704bc500b9a9197727e87e
e48234e239 Skip RenameMethodRector in never (#5305)
2023-12-01 09:49:11 +00:00
Tomas Votruba 35f86a2fad Updated Rector to commit 91f9f3057c2d51018228ed89273a76da991d3f45
91f9f3057c Use symfony/console ~6.3.9 to fix downgrade build (#5302)
2023-11-30 10:06:33 +00:00
Tomas Votruba f8dc5ef396 Updated Rector to commit 84bcfebdf7e9f522c8f9f9e97814c82d3d5d3315
84bcfebdf7 [CodingStyle] Remove AddArrayDefaultToArrayPropertyRector as based on docblock types and public contract, better use type declaration set instad (#5298)
2023-11-28 20:19:53 +00:00
Tomas Votruba 84b97fe47c Updated Rector to commit c3840325600449b562691e34612279dcd4316043
c384032560 [Strict] Fix DisallowedEmptyRuleFixerRector empty() allow string '0' check (#5296)
2023-11-28 17:41:50 +00:00
Tomas Votruba 54e7a3a895 Updated Rector to commit 765b63696eb3bc240e92f10b00169b146c99463a
765b63696e [TypeDeclaration][Performance] Check typed param already early on ParamTypeByMethodCallTypeRector (#5295)
2023-11-28 11:12:27 +00:00
Tomas Votruba 7a2348073c Updated Rector to commit 118fbde3b1ccc3685c55cd2704bc971d2d49ef41
118fbde3b1 [TypeDeclaration] Remove ParamTypeFromStrictTypedPropertyRector as seems similar feature with AddParamTypeFromPropertyTypeRector (#5293)
2023-11-28 10:10:36 +00:00
Tomas Votruba 198f3d0446 Updated Rector to commit 4a2b4a63878dabbb02eeb9fc73587e9b57ad0bdf
4a2b4a6387 [Naming] Skip singularize "cms" on RenameForeachValueVariableToMatchExprVariableRector (#5294)
2023-11-28 04:43:10 +00:00
Tomas Votruba 3aaf5b74fb Updated Rector to commit b5f434b53c4c6fceb88c19d4656e4f11c6092f3c
b5f434b53c [CodeQuality] Make CommonNotEqualRector skip if not <> (#5292)
2023-11-27 16:03:30 +00:00
Tomas Votruba 8486081737 Updated Rector to commit e66754adeaad2e9cb67cf1784a6255285dfc542d
e66754adea [TypeDeclaration] Skip iterable already there in AddReturnTypeDeclarationFromYieldsRector (#5291)
2023-11-27 13:46:01 +00:00
Tomas Votruba c581b77bce Updated Rector to commit 9ddef0001c3b7251f80e0c06d6ef0d35363a7cd4
9ddef0001c [Php80] Allow subnamespace from use statements support on AnnotationToAttributeRector (#5287)
2023-11-25 15:16:38 +00:00
Tomas Votruba c92985cc7e Updated Rector to commit d864d7b856e7bb8b7e98db96793ceb1036c1bf7b
d864d7b856 [Privatization] Skip method with parent call (#5283)
2023-11-23 16:52:05 +00:00
Tomas Votruba 622a13c7e5 Updated Rector to commit fcd1b1aa6bbf59aaebf119a122d4f7aa045e15f1
fcd1b1aa6b [Performance][Renaming] Use FullyQualified on RenameClassRector (#5272)
2023-11-22 17:40:48 +00:00
Tomas Votruba 7a8bc36a24 Updated Rector to commit 189a02635533f450aea58d8de075e494f538182b
189a026355 Remove deprecated Rector rules (#5270)
2023-11-21 14:32:38 +00:00
Tomas Votruba d1c1d175ce Updated Rector to commit a9797fdc1ca6b8d7080fb1299b44fcb94ecd5936
a9797fdc1c [TypeDeclaration] Deprecate TypedPropertyFromStrictGetterMethodReturnTypeRector as depends on missing context and creates invalid code (#5269)
2023-11-21 14:28:39 +00:00
Tomas Votruba e071d037e3 Updated Rector to commit 9fa5013b41ecee17113c56ad94f219bd1940e763
9fa5013b41 [Performance][Renaming] Remove unnecessary array_reverse() on RenameClassRector (#5266)
2023-11-19 15:48:32 +00:00
Tomas Votruba 5980d06d27 Updated Rector to commit 13284c60485e972ef72bf234b3c014c5f89e0d14
13284c6048 [Renaming][Performance] Re-structure check namespace only on renamed node got Namespace_ (#5265)
2023-11-19 03:14:20 +00:00
Tomas Votruba 318c07bf9f Updated Rector to commit e43a1cec56310b6762eb0b56d18f60402d5fd652
e43a1cec56 [Renaming] Handle Rename no namespace to namespaced class with existing use statements (#5264)
2023-11-19 02:55:19 +00:00
Tomas Votruba ea7666298a Updated Rector to commit 3e6bdd8174e88b0e339365a9d76df8be173b7070
3e6bdd8174 [Php71] Ensure re-assign after definition on AssignArrayToStringRector (#5262)
2023-11-19 00:05:14 +00:00
Tomas Votruba 5fa526e204 Updated Rector to commit de333f27982cd1b27450c6dfa87ec723b29fbc1c
de333f2798 [Php71] Skip re-assigned as array on AssignArrayToStringRector (#5261)
2023-11-19 00:02:19 +00:00
Tomas Votruba b83524f932 Updated Rector to commit 6a2af1878843ade4b1890f9a1a04f815cc600fa4
6a2af18788 [TypeDeclaration] Skip echo-ed on StrictArrayParamDimFetchRector (#5260)
2023-11-18 13:54:46 +00:00
Tomas Votruba 4cf16f617f Updated Rector to commit 03c7ab7a0f3b7a2ba106bef1ccf508d1b9b63850
03c7ab7a0f [TypeDeclaration] Skip default not array type on StrictArrayParamDimFetchRector (#5259)
2023-11-18 13:41:50 +00:00
Tomas Votruba 912487ba8d Updated Rector to commit 4a3e6982647ce4fdc84b1232557eaeae7e914bde
4a3e698264 [DeadCode] Skip multi no stmts on RemoveDuplicatedCaseInSwitchRector (#5258)
2023-11-18 02:19:29 +00:00
Tomas Votruba 2da177465a Updated Rector to commit 363ae1bd444c365e38aef1cfcd69324b734c3c9c
363ae1bd44 [Performance][PostRector] Only process FullyQualified on import Node name on NameImportingPostRector  (#5255)
2023-11-16 17:36:40 +00:00
Tomas Votruba 1d5d0dd30b Updated Rector to commit 1595e34d12d856eab8e2478de357f0b1dff3556f
1595e34d12 [CodingStyle] Refactor UseImportsAdder to return [FileWithoutNamespace] code on no namespaced code (#5254)
2023-11-16 14:51:30 +00:00
Tomas Votruba b4cef81b9f Updated Rector to commit 60047ce7785545401ad870d483060ce640fa3369
60047ce778 [Php73] Handle crash on JsonThrowOnErrorRector + SensitiveConstantNameRector (#5253)
2023-11-16 05:36:22 +00:00
Tomas Votruba 4f6134d1be Updated Rector to commit 5647e1b818482552a447d7f79392c7e2f0dce86e
5647e1b818 [Naming] Fix dotted name on generics bug in RenameVariableToMatchMethodCallReturnTypeRector (#5250)
2023-11-15 07:40:24 +00:00
Tomas Votruba 9aef117ab1 Updated Rector to commit 7ec1be6b828042b27e3f40ed41b3285a6fe78502
7ec1be6b82 [DeadCode]: Support functions in RemoveUnusedVariableAssignRector (#5249)
2023-11-14 21:18:19 +00:00
Tomas Votruba 83b81fcc4e Updated Rector to commit 889372f62a584ca43402eced083b99e2ffbe6784
889372f62a [AutoImport][Renaming] Handle same last name no namespace just renamed auto import (#5248)
2023-11-14 11:48:19 +00:00
Tomas Votruba afe2dc7944 Updated Rector to commit f0b8af88eb08be29b5fbf18f0e26283600c2c7e6
f0b8af88eb [AutoImport] Skip auto import on no namespace used class on auto import enabled (#5247)
2023-11-14 05:17:31 +00:00
Tomas Votruba 55d6c6f50a Updated Rector to commit 61d68c89b434271c793fbbcc8e6252e9f3e0e7eb
61d68c89b4 Rename parameter variable to nextCase on RemoveDuplicatedCaseInSwitchRector (#5244)
2023-11-11 20:55:17 +00:00
Tomas Votruba 39dc6141e7 Updated Rector to commit 42b697f65f0c648cc45abcc5b9e32a16a7967caa
42b697f65f [deprecated] Remove deprecated properties from AbstractRector (#5243)
2023-11-11 17:10:37 +00:00
Tomas Votruba e26480f1cb Updated Rector to commit 7e7304b93cd03fda558ac8ebfbc682ffa4938fe0
7e7304b93c [AutoImport] Handle DeclareStrictTypesRector on importNames() enabled on no namespace (#5241)
2023-11-10 21:55:35 +00:00
Tomas Votruba e41e10db62 Updated Rector to commit 2f74b02ef6c754c68abcdd246837583967e24678
2f74b02ef6 [DeadCode] Handle repetitive jump equal case stmts on RemoveDuplicatedCaseInSwitchRector (#5239)
2023-11-10 19:13:04 +00:00
Tomas Votruba 382d51d15f Updated Rector to commit eac58be00246ea8c89548289f2cc742e8b1b6b1a
eac58be002 [DeadCode] Reduce loop on RemoveDuplicatedCaseInSwitchRector (#5238)
2023-11-10 12:36:56 +00:00
Tomas Votruba 17eadc7eb2 Updated Rector to commit b0d4b15c3fd96582c6e3ed4d21cf4d30eb8742ce
b0d4b15c3f [DeadCode] Ensure change hasChanged flag on RemoveDuplicatedCaseInSwitchRector (#5237)
2023-11-10 09:02:20 +00:00
Tomas Votruba c51a745c50 Updated Rector to commit bee1dae395490dd91a86230e1886b514288dfa62
bee1dae395 [DeadCode] Handle different indirect duplicated on RemoveDuplicatedCaseInSwitchRector (#5236)
2023-11-10 06:59:59 +00:00
Tomas Votruba 373eece1e0 Updated Rector to commit c61d8ea90edb04550b6a43f40bd6c6105a997189
c61d8ea90e [DeadCode] Reduce double loop on RemoveDuplicatedCaseInSwitchRector (#5235)
2023-11-09 22:56:12 +00:00
Tomas Votruba e51766f9ec Updated Rector to commit 3f2fb29fe87904d779fb2f8d3e59492aaa9249f4
3f2fb29fe8 [DeadCode] Allow indirect duplicated grouping on RemoveDuplicatedCaseInSwitchRector (#5234)
2023-11-09 22:08:11 +00:00
Tomas Votruba b0251feb16 Updated Rector to commit 437f96a264be9b974d2c5abcc4f5097bfb57b20e
437f96a264 RestoreDefaultNullToNullableTypePropertyRector: skip `@readonly` phpdoc (#5233)
2023-11-08 12:07:04 +00:00
Tomas Votruba 6786dfbdb1 Updated Rector to commit cb1b0c7348d1e80806b2e600823dbfa38b9836c7
cb1b0c7348 [Renaming] Add RenamedNameCollector to ensure remove uses on auto import on ClassRenamingPostRector with verify there is Node name that renamed (#5232)
2023-11-07 21:52:18 +00:00
Tomas Votruba 0cbee62160 Updated Rector to commit 9adc7a04b3a312957bb305edafcd0427fa6bd257
9adc7a04b3 [CodingStyle] Move ArraySpreadInsteadOfArrayMergeRector from php74 to codingstyle sets list (#5230)
2023-11-07 18:56:36 +00:00
Tomas Votruba c221b7e43d Updated Rector to commit ce62c634015fefa1f91429ecda659fe71371b85a
ce62c63401 Remove rule DataProviderArrayItemsNewlinedRector.php (#5227)
2023-11-07 12:01:11 +00:00
Tomas Votruba 8027a18b9e Updated Rector to commit 6d8074534f3b568a0cecd373e584ea6c8d06580b
6d8074534f Rectify (#5226)
2023-11-06 09:18:43 +00:00
Tomas Votruba 95582bf2b1 Updated Rector to commit 7607b334736d241820f9f307423f6050801b46af
7607b33473 NullableCompareToNullRector: Don't trust phpdocs (#5225)
2023-11-06 09:13:25 +00:00
Tomas Votruba 1c5fde5d65 Updated Rector to commit 8615d40f4c8acb58a000f5bc7e0d0a0cfd353b7f
8615d40f4c [NodeTypeResolver] Handle nullable extended class on ->isObjectType() on DowngradeReflectionGetAttributesRector (#5224)
2023-11-05 13:58:20 +00:00
Tomas Votruba cdc1ef461c Updated Rector to commit 2ad03db37f187d715c3a2f189dc181063126e596
2ad03db37f [Php83] Adds rule for adding Override attribute (#5170)
2023-11-03 12:13:20 +00:00
Tomas Votruba 394c30d8ba Updated Rector to commit 2fac959116e4f50471422e5e5c9eaca3163e6667
2fac959116 [AutoImport] Allow auto import just renamed @var only docblock on RenameClassRector without removeUnusedImports() enabled (#5220)
2023-11-03 08:39:18 +00:00
Tomas Votruba 184cf49468 Updated Rector to commit f9de5d311e7e69d1ad2cb5f3087970d8b9335920
f9de5d311e [Php80] Handle RenameClassRector+AnnotationToAttributeRector with auto import and existing attribute defined (#5219)
2023-11-02 03:20:18 +00:00
Tomas Votruba 5869e2ab60 Updated Rector to commit 97d095f5bd3fe561dafd06f56f898f0aec535ba0
97d095f5bd [TypeDeclaration] Skip default numeric string on param int on ParamTypeByMethodCallTypeRector (#5210)
2023-10-28 16:36:35 +00:00
Tomas Votruba a3cb68c58c Updated Rector to commit 5f86e6bb082d06c1fc7f3ca53a9e42389319c3eb
5f86e6bb08  [CodeQuality] Add negated support on SingleInArrayToCompareRector  (#5205)
2023-10-28 06:44:30 +00:00
Tomas Votruba f5adafb1c4 Updated Rector to commit a27370519f4e17bf73f0d548e098de448895401d
a27370519f [CodeQuality] Handle negated isset on IssetOnPropertyObjectToPropertyExistsRector on property not exists (#5206)
2023-10-27 12:14:09 +00:00
Tomas Votruba 068fde1710 Updated Rector to commit 89b3e62f82ad480b57f002096cc16af16d7ac597
89b3e62f82 [TypeDeclaration] Skip union false on NumericReturnTypeFromStrictScalarReturnsRector (#5204)
2023-10-26 18:45:24 +00:00
Tomas Votruba 8d1b2d924e Updated Rector to commit be0cc77862bef98727e1e3881620c5416841801f
be0cc77862 CountArrayToEmptyArrayComparisonRector: don't trust phpdoc (#5203)
2023-10-26 12:26:07 +00:00
Tomas Votruba ae4c0b72cb Updated Rector to commit 72cdbd0613318b797455deba64ebe6358d58af42
72cdbd0613 [CodeQuality][Php70] Handle LocallyCalledStaticMethodToNonStaticRector + ThisCallOnStaticMethodToStaticCallRector must change both method and caller (#5196)
2023-10-26 07:11:41 +00:00
Tomas Votruba d628c0dcad Updated Rector to commit 238a9f1800225bd3f350dc25df79ad283d91a25a
238a9f1800 Revert doctrine/inflector removal (#5201)
2023-10-25 15:01:11 +00:00
Tomas Votruba fe7a135a9e Updated Rector to commit 5d1286061c8bf264c95085edf8b24731cf62c91e
5d1286061c BinaryOpBetweenNumberAndStringRector don't trust phpdoc (#5199)
2023-10-25 13:44:54 +00:00
Tomas Votruba 1b058fde9f Updated Rector to commit 98bb8581e5794641db7e2acf0cefa14f62f5e8a9
98bb8581e5 Fix singular of words ending in "ss" (#5198)
2023-10-25 08:11:08 +00:00
Tomas Votruba 23e5d4df05 Updated Rector to commit 1d3fc91bd5e0154daae34b1efdb64a6f78f47c89
1d3fc91bd5 apply cs
2023-10-24 15:03:15 +00:00
Tomas Votruba 02041b2207 Rector 0.18.6 2023-10-24 15:00:59 +00:00