Commit Graph

2852 Commits

Author SHA1 Message Date
Tomas Votruba
6b02618a3b Updated Rector to commit 4bc378bb1846b292946f8c241092a79e863268f7
4bc378bb18 [PHP 8.0] Move more logic to MatchFactory (#2802)
2022-08-19 13:01:36 +00:00
Tomas Votruba
8629ef2977 Updated Rector to commit 6712529d24205b4b08e86f8da79876fb0d122c49
6712529d24 [PHP 8.0] Refactor ChangeSwitchToMatchRector to StmstAwareInterface (#2801)
2022-08-19 12:43:13 +00:00
Tomas Votruba
237f7bb846 Updated Rector to commit 236b0ffe16821d82446dffd3603e5ccb8cba8621
236b0ffe16 Fix generics and intersection in TypedPropertyRector (#7392) (#2800)
2022-08-19 11:18:45 +00:00
Tomas Votruba
f18c132b74 Updated Rector to commit d92936bb26a63a2d7df1086cebb2ddae42396f50
d92936bb26 [PHP 8.0] Fix ChangeSwitchToMatchRector for next new variable re-use (#2798)
2022-08-19 10:35:08 +00:00
Tomas Votruba
1d66c96acf Updated Rector to commit 66d273e403467bb99ceae30c157fbc4a08baf59f
66d273e403 [PhpDoc] Kick of ArrayItemNode (#2795)
2022-08-19 08:10:42 +00:00
Tomas Votruba
0f3727793c Updated Rector to commit b57d0c31a1d3899f6ac41e65e60b33ec51f9e99a
b57d0c31a1 simplify test call (#2794)
2022-08-19 07:58:55 +00:00
Tomas Votruba
b6d3530be8 Updated Rector to commit 2651872aa6cd3a4031abb3c9702856ec0dd70e82
2651872aa6 [DX] [PHP 8.0] Remove already covered annotaiton to attribute fixture to narrow test scope (#2793)
2022-08-19 07:57:12 +00:00
Tomas Votruba
f177e0c3dd Updated Rector to commit 76dc886f7a7f13fbed51e102ce4b616106f42702
76dc886f7a Cleanup, re-use AttributeName enums (#2792)
2022-08-19 07:49:30 +00:00
Tomas Votruba
5150f80d61 Updated Rector to commit fc8efa0fe446dd648d5d4d393e32ee06a8876837
fc8efa0fe4 fix typos in contributing.md (#2790)
2022-08-19 07:22:29 +00:00
Tomas Votruba
100b519996 Updated Rector to commit 67b0d0be7189576af6b74ade6011bdad6a230cb0
67b0d0be71 Fixes Typo in how_to_add_test_for_rector_rule.md (#2788)
2022-08-19 06:45:19 +00:00
Tomas Votruba
b3c5fe1dcc Updated Rector to commit 7a609a6f2ee04d55907de7a3e09b1242a176a85a
7a609a6f2e [PHP 8.0] Keep quoted string with doublecolon in AnnotationToAttributeRector (#2784)
2022-08-18 20:44:00 +00:00
Tomas Votruba
3aae40faed Updated Rector to commit b9f83c87dacd1aa09ea343a4996683ebc424c630
b9f83c87da add fixture with FQN name (#2783)
2022-08-18 19:53:39 +00:00
Tomas Votruba
ff9b7f9000 Updated Rector to commit b9f83c87dacd1aa09ea343a4996683ebc424c630
b9f83c87da add fixture with FQN name (#2783)
2022-08-18 19:04:04 +00:00
Tomas Votruba
54af055c16 Updated Rector to commit 69b625cd33c1e5b7c8ba7bcda19450ea71cbdda0
69b625cd33 [PHP 8.0] Add class support to NestedAnnotationToAttributeRector (#2782)
2022-08-18 18:39:25 +00:00
Tomas Votruba
cdbe494753 Updated Rector to commit b8549f547ab72234078416e53f62ba16ab8582c6
b8549f547a [PHP 8.0] Add NestedAnnotationToAttributeRector (#2781)
2022-08-18 18:02:46 +00:00
Tomas Votruba
d2c2df7ac2 Updated Rector to commit b8549f547ab72234078416e53f62ba16ab8582c6
b8549f547a [PHP 8.0] Add NestedAnnotationToAttributeRector (#2781)
2022-08-18 17:55:50 +00:00
Tomas Votruba
ffd02c6255 Updated Rector to commit f41acb3fc880f7553f2c058fb35d69b3d5a18642
f41acb3fc8 [CodeQuality] Fix out-of-order items removal in UnusedForeachValueToArrayKeysRector (#2779)
2022-08-18 13:19:33 +00:00
Tomas Votruba
c3373be53b Updated Rector to commit f41acb3fc880f7553f2c058fb35d69b3d5a18642
f41acb3fc8 [CodeQuality] Fix out-of-order items removal in UnusedForeachValueToArrayKeysRector (#2779)
2022-08-18 12:50:16 +00:00
Tomas Votruba
e82274c2bf Updated Rector to commit f936077f5fd5428f97d49e58f1e2a22db2c78978
f936077f5f Fix performance issue (#2774)
2022-08-18 11:58:01 +00:00
Tomas Votruba
5b360ddf1d Updated Rector to commit f936077f5fd5428f97d49e58f1e2a22db2c78978
f936077f5f Fix performance issue (#2774)
2022-08-18 09:32:38 +00:00
Tomas Votruba
f252a73f68 Updated Rector to commit fd5ec9120fef2ac270a6b9f60b3656f6a9895192
fd5ec9120f Support for ConstFetch (true, false, null) in NodeFactory::createArrayItem (#2778)
2022-08-17 22:04:50 +00:00
Tomas Votruba
a9aac8f275 Updated Rector to commit 2762c508eb2fb40b1ef0f7c07c9e970839e5196c
2762c508eb Handle crash on RenameFunctionRector+ForRepeatedCountToOwnVariableRector+CountOnNullRector+NullToStrictStringFuncCallArgRector (#2777)
2022-08-17 21:51:24 +00:00
Tomas Votruba
fbb3acc7ba Rector 0.14.0 2022-08-17 16:10:11 +00:00
Tomas Votruba
616efdc680 Updated Rector to commit 27b891b219cc9bfed6540a6abfbfa762e1cc2aaf
27b891b219 Make ServiceGetterToConstructorInjectionRector report only if node has changed, retarget to Class_ node with higher priority (#2772)
2022-08-17 13:56:19 +00:00
Tomas Votruba
050ff0c044 Updated Rector to commit 27b891b219cc9bfed6540a6abfbfa762e1cc2aaf
27b891b219 Make ServiceGetterToConstructorInjectionRector report only if node has changed, retarget to Class_ node with higher priority (#2772)
2022-08-17 09:48:06 +00:00
Tomas Votruba
d790bd4192 Updated Rector to commit d86e5992e8d07d92e1278dcc03373432c79814e5
d86e5992e8 [Php55] Handle no quote in backslash on PregReplaceEModifierRector (#2771)
2022-08-17 09:14:07 +00:00
Tomas Votruba
ca700ccb3b Updated Rector to commit ba423e225f6ea54b58ea157a6dde4f8f7eae9e70
ba423e225f cleanup fixed phpstan errors
2022-08-17 08:55:24 +00:00
Tomas Votruba
1539934554 Updated Rector to commit 244fb1cebce834698e9d6f5a67a3d3552addf49d
244fb1cebc [DeadCode] Fix RemoveUnusedPrivateMethodParameterRector args keys re-order (#2770)
2022-08-17 08:52:30 +00:00
Tomas Votruba
88ec8c80e3 Updated Rector to commit 03ed0369d06db544927966ec97b5f380a11e0751
03ed0369d0 [CodeQuality][Up_TO_PHP_81] Handle crash indentation on combination LevelSetList::UP_TO_PHP_81 with SetList::CODE_QUALITY - take 2 (#2763)
2022-08-15 18:41:26 +00:00
Tomas Votruba
3b5a7181ba Updated Rector to commit 1f6cea323ef7a3125c8fe56958e71ad4dd9944c7
1f6cea323e [Php80] Handle trailing comma on AnnotationToAttributeRector on Doctrine JoinColumn (#2766)
2022-08-15 18:36:53 +00:00
Tomas Votruba
d771949a24 Updated Rector to commit 2977d091b2a7dfcddf855c376534a835876e3ffd
2977d091b2 [Doc] Register Troubleshoot Parallel Issues documentation in Readme (#2764)
2022-08-15 18:36:26 +00:00
Tomas Votruba
9fdeacaeee Updated Rector to commit 933eb1353d193ca90bdb02265039469c620ad46f
933eb1353d [Php81] Handle crash on Crypt() single arg on NullToStrictStringFuncCallArgRector (#2767)
2022-08-15 18:34:46 +00:00
Tomas Votruba
6c0394fa59 Updated Rector to commit 128cc91038c48bb5a10901447820bcf9676512ba
128cc91038 [Doc] Update count rules 500+ -> 400+ in readme (#2765)
2022-08-14 12:43:17 +00:00
Tomas Votruba
a9ba01293d Updated Rector to commit 96fce06e55bc33f941041735100418fd53fe09e2
96fce06e55 [Php73] Add Method Call support on on IsCountableRector (#2762)
2022-08-13 18:43:10 +00:00
Tomas Votruba
0e37f464e0 Updated Rector to commit 526091f416e0d9307b5fe1a5977397dc8dfce244
526091f416 [Php71] Code Sample fix on CountOnNullRector (#2761)
2022-08-13 15:42:56 +00:00
Tomas Votruba
a67329d33a Updated Rector to commit 3c88742dd13d49ba51c84817d746a9e2b59500e9
3c88742dd1 [CodeQuality][Up_TO_PHP_81] Handle crash indentation on combination LevelSetList::UP_TO_PHP_81 with SetList::CODE_QUALITY (#2760)
2022-08-13 13:45:27 +00:00
Tomas Votruba
19738615bc Updated Rector to commit bb68d8aa18c2b0ab3f5000c175fd6b81e9c0610a
bb68d8aa18 [CodingStyle] Fix re-print of self in PreferThisOrSelfMethodCallRector (#2759)
2022-08-12 18:46:57 +00:00
Tomas Votruba
9fa71a8e1f Updated Rector to commit 858f055584ac2f4108469104d6b6a27f0de9132d
858f055584 [Core] Move Scope Resolver to ScopeAnalyzer (#2757)
2022-08-12 17:30:03 +00:00
Tomas Votruba
4100d6e660 Updated Rector to commit 47d25befa5ca7aa348e9a27125edebc6e62eaf68
47d25befa5 [Php73] Skip escaped Dash on RegexDashEscapeRector (#2753)
2022-08-12 17:18:44 +00:00
Tomas Votruba
d30de9efe0 Updated Rector to commit da9fab1810dd4985b2071b3ffc34c88f665856cb
da9fab1810 [Naming] Remove single- prefix from RenameForeachValueVariableToMatchExprVariableRector, creates weird names (#2756)
2022-08-12 12:42:27 +00:00
Tomas Votruba
5ff40fa637 Updated Rector to commit 8c07d677b46caf2ea84c174669d2b416e577fc67
8c07d677b4 AddReturnTypeDeclarationBasedOnParentClassMethodRector fix mixed return type by parent interface (#2755)
2022-08-11 15:41:34 +00:00
Tomas Votruba
f6f9dadfe8 Updated Rector to commit 2667f35cc72a6f7da454635a24bdc3ede61082ae
2667f35cc7 Improve ReturnTypeWillChangeRector to handle any method of defined type; move PhpDocFromTypeDeclarationDecorator to Downgrade rules (#2754)
2022-08-11 15:03:59 +00:00
Tomas Votruba
26bacab80c Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-11 14:46:08 +00:00
Tomas Votruba
967bbc6b59 Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-11 14:29:35 +00:00
Tomas Votruba
f2acdcf5da Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-10 11:13:19 +00:00
Tomas Votruba
80619f80aa Updated Rector to commit 77a0b343042509c010ea740be8293c250286a853
77a0b34304 misc
2022-08-10 10:06:27 +00:00
Tomas Votruba
298437e8e3 Updated Rector to commit 52f995120d438da90205b83ec10a7cab6960117f
52f995120d [readme] add rector extensions (#2751)
2022-08-10 09:53:54 +00:00
Tomas Votruba
1d9b00a194 Updated Rector to commit d7be25882209a65d05c9b41e7bcd4f198ac6478f
d7be258822 [Php81] Skip Encapsed on NullToStrictStringFuncCallArgRector (#2744)
2022-08-09 20:47:13 +00:00
Tomas Votruba
dce47c75f3 Updated Rector to commit 93b63b0a86e26cb9d15bcc61c3d840f703a1472c
93b63b0a86 [Php54][Php80] Handle no scope on LongArrayToShortArrayRector+AnnotationToAttributeRector (#2749)
2022-08-09 20:46:41 +00:00
Tomas Votruba
3d35b64c2e Updated Rector to commit a80b3d359f321c0211d5d1aa36cdc265ec40af93
a80b3d359f add test for -c e2e
2022-08-09 20:37:26 +00:00
Tomas Votruba
0aac56f223 Updated Rector to commit 7f5503ee0b414e5c48c1a6d5b5cce706caf65887
7f5503ee0b add some rules to reflection union e2e
2022-08-09 20:33:38 +00:00
Tomas Votruba
3b4fc37371 Updated Rector to commit 6459357ea31eddfda78fa9b843ff424646c3e260
6459357ea3 add some rules to define-constant e2e
2022-08-09 20:32:27 +00:00
Tomas Votruba
1e6e634436 Updated Rector to commit b4524cb2a2888af4425343ecd7544567a321ef9b
b4524cb2a2 add some rules to run
2022-08-09 20:25:57 +00:00
Tomas Votruba
024579b74a Updated Rector to commit 9fdc2eccec5aa38077dd1f9d634dd0353f36f84b
9fdc2eccec Bump deps (#2750)
2022-08-09 20:18:43 +00:00
Tomas Votruba
420929251c Updated Rector to commit 17257b860adf08f36e4504b6d7a444e5eef987a2
17257b860a remove duplicated test
2022-08-09 20:16:51 +00:00
Tomas Votruba
9348cb36bc Updated Rector to commit c8c3e82a05436c4c128fd6a5bb2a7207c24a7c53
c8c3e82a05 Move Nette extension from the core to the community (#2746)
2022-08-09 20:03:15 +00:00
Tomas Votruba
8885e287b6 Updated Rector to commit b9cc90c058942d82f84a68f3d1971b2db6b1601d
b9cc90c058 Make use of new types by fixed rector/phpstan-rules extensions (#2748)
2022-08-09 19:37:14 +00:00
Tomas Votruba
f7bb838601 Updated Rector to commit f0425bc3cb3d5855da1bff9c38b872a9003e357b
f0425bc3cb Improve scope, PHPStan extension types (#2747)
2022-08-09 13:39:17 +00:00
Tomas Votruba
83bdde50fe Updated Rector to commit 07b54b48ec70f8349a36239316ecf5fb2b79798a
07b54b48ec improve PhpDocInfo generics to local only
2022-08-09 10:07:17 +00:00
Tomas Votruba
1c1744236a Updated Rector to commit 46e473931522d6b843eb42e1d4fcd0dc7b86666c
46e4739315 remove nette from conflicting packages to allow split
2022-08-08 08:13:31 +00:00
Tomas Votruba
ba5ca07800 Updated Rector to commit b8fec6418f6bab31d807fc9eef4167aa74277847
b8fec6418f cleanup
2022-08-07 23:37:28 +00:00
Tomas Votruba
24d364b692 Updated Rector to commit cbe6271e16370118408bdea5fe6b8ea6eebe8f18
cbe6271e16 narrow core packages
2022-08-07 14:40:46 +00:00
Tomas Votruba
c79a46ee2a Updated Rector to commit d68bc4ccf6fca72f748cb3b9b80264901094b3d6
d68bc4ccf6 bump deps
2022-08-07 12:27:55 +00:00
Tomas Votruba
966de41565 Updated Rector to commit 81f3299a0d1a50b0d4c7a0d8b56c5677491fb1f8
81f3299a0d Add BinaryOpAnalyzer locally
2022-08-07 08:40:30 +00:00
Tomas Votruba
eb23cc5b15 Updated Rector to commit 86682e4848dcfaecdb6dac7d07ffcb4cd47e69bf
86682e4848 Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
2022-08-06 23:18:58 +00:00
Tomas Votruba
b9ad506421 Updated Rector to commit 86682e4848dcfaecdb6dac7d07ffcb4cd47e69bf
86682e4848 Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
2022-08-06 22:58:46 +00:00
Tomas Votruba
089ad6e357 Updated Rector to commit 86682e4848dcfaecdb6dac7d07ffcb4cd47e69bf
86682e4848 Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
2022-08-06 21:53:15 +00:00
Tomas Votruba
7e0a2dbc82 Updated Rector to commit 6ad7b03704e639c95759d14c67444009c3b93259
6ad7b03704 Revert Add class-string typehint to MethodCallRename (#2739)
2022-08-06 15:23:35 +00:00
Tomas Votruba
fda0b6ec7b Updated Rector to commit f4bc6c38446ac98e625a9c11c070e9829b4c6118
f4bc6c3844 [TypeDeclaration] Make anonymous class return specific type, if implements (#2738)
2022-08-06 15:04:36 +00:00
Tomas Votruba
0fb8d7623f Updated Rector to commit ea3a69918c8d314b5ef889e51c76612d849ccd2c
ea3a69918c [TypedDeclaration] Add MockObject property type support to TypedPropertyFromAssignsRector (#2737)
2022-08-06 11:55:51 +00:00
Tomas Votruba
3826cb9d2f Updated Rector to commit 51119207305038d0b0fcf778830dc6544d85ec46
5111920730 [TypeDeclaration] Skip data providers in AddArrayReturnDocTypeRector, they're overly complex and not helpful to type (#2736)
2022-08-06 11:43:02 +00:00
Tomas Votruba
f64e2f73c2 Updated Rector to commit c88bd7aa4389b0a75bef1fa05b10717c4891524b
c88bd7aa43 [Php80] Preserve int key defined not start from 0 on AnnotationToAttributeRector (#2735)
2022-08-05 14:06:15 +00:00
Tomas Votruba
ac89ac3559 Updated Rector to commit 502d0ad3805984c4e3c0a8c6636c1174068169fc
502d0ad380 [DeadCode] Handle assign in If_ cond on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2734)
2022-08-05 09:27:15 +00:00
Tomas Votruba
80bfee9246 Updated Rector to commit 685dc702a0dc6c8490bf1d9c39f8a8072e4333f0
685dc702a0 Ability to yield files with names (#2732)
2022-08-04 19:19:43 +00:00
Tomas Votruba
aba621c9e4 Updated Rector to commit a494d7c4f634553f490da4a689c06cfc903d6bb9
a494d7c4f6 Clean up downgrade php path in configs (#2731)
2022-08-04 14:29:17 +00:00
Tomas Votruba
502082ac85 Updated Rector to commit b98dc27704c64122750d3bbae3731cb820ae8c11
b98dc27704 [Php80][TypeDeclaration] Handle UnionTypesRector+AddArrayReturnDocTypeRector on auto import FullyQualified doc (#2730)
2022-08-04 12:09:16 +00:00
Tomas Votruba
184a304008 Updated Rector to commit 61b6e86d17923a29a7dad1530a9dd82bc3bf5ee2
61b6e86d17 [DeadCode] Skip RemoveAlwaysTrueIfConditionRector on property use by @var docblock on Trait (#2729)
2022-08-03 18:36:26 +00:00
Tomas Votruba
b6c77d2814 Updated Rector to commit 3fba7c625c5903edc0f8069faf5b208761a16f9a
3fba7c625c [Php80] Skip default no stmt next is case on ChangeSwitchToMatchRector (#2728)
2022-08-03 18:07:32 +00:00
Tomas Votruba
d1e069db8a Rector 0.13.10 2022-08-03 12:48:10 +00:00
Tomas Votruba
9063100051 Updated Rector to commit f99f19cd4328009bad8aaeab7d80f7d920628bca
f99f19cd43 Add class-string typehint to MethodCallRename (#2726)
2022-08-03 12:38:40 +00:00
Tomas Votruba
1d28ca109c Updated Rector to commit 5ec4cff203f68d9578719b54ce3a145efb32bc79
5ec4cff203 [Php56] Handle jump not Expression stmt next initialized on AddDefaultValueForUndefinedVariableRector (#2725)
2022-08-02 06:46:18 +00:00
Tomas Votruba
ba5b70ed30 Updated Rector to commit ff1ba898a37496e467c64dc6428d0de8f097ef58
ff1ba898a3 [automated] Re-Generate Nodes/Rectors Documentation (#2724)
2022-07-31 00:37:06 +00:00
Tomas Votruba
a6d8dc9700 Updated Rector to commit 34cdbb73b4ba988dc143cc70eec766efa81f3345
34cdbb73b4 [Doc] Add documentation for parallel troubleshooting (#2722)
2022-07-30 05:43:06 +00:00
Tomas Votruba
8e833e3de5 Updated Rector to commit c19b953b849e12a67e506c536f9dedaf6c9185cb
c19b953b84 [Php56] Ensure return null on empty variable initialization after check with existing stmts on AddDefaultValueForUndefinedVariableRector (#2723)
2022-07-30 01:35:42 +00:00
Tomas Votruba
3bfd3cdb42 Updated Rector to commit 7ca5096c12deb3d0619bfcf3ed61b0b6e6737b35
7ca5096c12 [Php56] Skip already initialized on next Stmt on AddDefaultValueForUndefinedVariableRector (#2721)
2022-07-29 16:30:03 +00:00
Tomas Votruba
6420a4d2a1 Updated Rector to commit ec291c4358636e29c026f2d42d575470cde25c76
ec291c4358 Fix/do not inline constructor default when readonly (#2720)
2022-07-28 19:32:54 +00:00
Tomas Votruba
c4c169814e Updated Rector to commit d94353a0acb59823bb74013eb084dd6b302011f5
d94353a0ac bump scoper to 0.17.5
2022-07-28 15:27:12 +00:00
Tomas Votruba
8648c0bd93 Updated Rector to commit 8df791240b3896a75d6a3f45db3d3d64a5fd690f
8df791240b ExplicitMethodCallOverMagicGetSetRector fix (#2719)
2022-07-28 14:51:08 +00:00
Tomas Votruba
a5ec68bd9c Updated Rector to commit ec9c15adc729988276f3fe7b726609f913266f23
ec9c15adc7 Apply ParametersAcceptorSelectorVariantsWrapper::select() take 2 (#2718)
2022-07-28 14:06:21 +00:00
Tomas Votruba
963e52618c Updated Rector to commit 89bd84eafaab9ab66a4fcd6a1a4df67d15040732
89bd84eafa [DeadCode] Skip RemoveAlwaysTrueIfConditionRector on property use by @var docblock (#2717)
2022-07-27 18:51:59 +00:00
Tomas Votruba
28426800ab Updated Rector to commit d94ded9b22fff22e7923bb3158d56407e9f80897
d94ded9b22 stop on first id
2022-07-27 08:53:09 +00:00
Tomas Votruba
6d34684c5a Updated Rector to commit 69d3c92b00fd4cd4f435cd8974e5547251b5065e
69d3c92b00 [Php80] Add MixedTypeRector (#2701)
2022-07-27 08:28:59 +00:00
Tomas Votruba
f6efaa732c Updated Rector to commit fe0551e374df78c4bbcd4c4e0523a4b50a3bb9c8
fe0551e374 [TypeDeclaration] Handle crash on intersection in Union type on AddMethodCallBasedStrictParamTypeRector (#2704)
2022-07-27 08:06:26 +00:00
Tomas Votruba
432a6c19f9 Updated Rector to commit 4ed677db2cf86ba5db10c5727e2ed815a5700491
4ed677db2c Fix/early return inline constructor default 7319 (#2716)
2022-07-27 08:05:36 +00:00
Tomas Votruba
a9e67f6f71 Updated Rector to commit a01813086429b7548a4ef015cc874471c169da65
a018130864 [DowngradePhp81] Handle no scope on DowngradeFirstClassCallableSyntaxRector inside ArrayItem (#2709)
2022-07-27 08:02:59 +00:00
Tomas Votruba
33706ccdea Updated Rector to commit 32834d053a5f5eec0f9fb9af80cad1bfce8b6c53
32834d053a [DeadCode] Handle crash on negation class const fetch with static:: and parent:: on RemoveDeadZeroAndOneOperationRector (#2714)
2022-07-26 14:50:37 +00:00
Tomas Votruba
a746965f93 Updated Rector to commit f0df3c5101f4b9465708589a2c13027bc84f898c
f0df3c5101 [CodingStyle] Skip has static call call non static method on StaticArrowFunctionRector and StaticClosureRector (#2713)
2022-07-26 12:51:56 +00:00
Tomas Votruba
7efa43947f Updated Rector to commit ce22a82f851781d39fb89479800d15a98b7f453b
ce22a82f85 [Php81] Skip Doctrine ORM MappedSuperClass attribute on ReadOnlyPropertyRector (#2712)
2022-07-26 07:09:01 +00:00
Tomas Votruba
317c26e88c Updated Rector to commit bd4a7327a566b028c47dfeaa4a88fd153a20bde9
bd4a7327a5 doc: fix visibility should not change (#2711)
2022-07-25 20:31:54 +00:00
Tomas Votruba
fad0b90180 Updated Rector to commit 3f3fc412140becdc86cc43a6ef87b5be495c9444
3f3fc41214 [CodeQuality][CodingStyle] Handle crash assert( >= 0 &&  >= 0) on combination CodeQuality and CodingStyle rules (#2707)
2022-07-25 20:13:13 +00:00
Tomas Votruba
e9a18115e4 Updated Rector to commit 3f3fc412140becdc86cc43a6ef87b5be495c9444
3f3fc41214 [CodeQuality][CodingStyle] Handle crash assert( >= 0 &&  >= 0) on combination CodeQuality and CodingStyle rules (#2707)
2022-07-24 07:46:34 +00:00
Tomas Votruba
8e5d4128e7 Updated Rector to commit b047c81634f8325b94d6e5b39fae6a599f65bca8
b047c81634 [automated] Re-Generate Nodes/Rectors Documentation (#2706)
2022-07-24 00:40:22 +00:00
Tomas Votruba
d6319ec783 Rector 0.13.9 2022-07-23 10:55:44 +00:00
Tomas Votruba
66a5285042 Updated Rector to commit cdf7bf581c6a417cfc8fc2b256597f30165d061f
cdf7bf581c [BetterPhpDocParser] Merge PhpDocInfo::getParamTagValueByName() with getParamTagValueNodeByName() (#2703)
2022-07-23 09:02:51 +00:00
Tomas Votruba
d21608a0d4 Updated Rector to commit c4d6f19b4d6386758b1f7aee3f1a9d4e41b59b42
c4d6f19b4d [TypeDeclaration] Add AddReturnTypeDeclarationBasedOnParentClassMethodRector to type-declaration config set (#2702)
2022-07-22 14:40:56 +00:00
Tomas Votruba
1d657845a7 Updated Rector to commit 1836de97836c78ae4c85c1fdce3664688fb1011f
1836de9783 AddReturnTypeDeclarationBasedOnParentClassMethodRector (#2666)
2022-07-22 14:18:53 +00:00
Tomas Votruba
e383186790 Updated Rector to commit 764416672a588c4bd80084a853973773f9835690
764416672a Fix InlineArrayReturnAssignRector and ChangeReadOnlyPropertyWithDefaultValueToConstantRector collision (#2700)
2022-07-21 21:45:25 +00:00
Tomas Votruba
be073d8e55 Updated Rector to commit 1000cd51c57f7672d7e87c312cada4150bd98dd6
1000cd51c5 Attempt to fix incorrect doctrine table attribute values on php 8.1 (#2699)
2022-07-21 21:29:13 +00:00
Tomas Votruba
254b108ff5 Updated Rector to commit ff524c546b9bc82cd5f1dcf3d0870d40d2cd64df
ff524c546b bump deps (#2698)
2022-07-21 11:54:36 +00:00
Tomas Votruba
2f66cf1f32 Updated Rector to commit 07ab6051dff0262c2ee6ea060056bf9e56186ada
07ab6051df [PHPStan] Clean up ignore errors for narrow public (#2697)
2022-07-21 09:19:12 +00:00
Tomas Votruba
951e340c94 Updated Rector to commit 49a8343323c6cc5c40e1ca0ef4b3e6c418848ea7
49a8343323 [PHP 8.1] Keep use stmts in MyCLabsClassToEnumRector enum (#2696)
2022-07-20 13:38:02 +00:00
Tomas Votruba
cebbc835dd Updated Rector to commit 963c48c32a154f0045adde8793492afb0bf3caf2
963c48c32a [PHP 8.1] Extend MyCLabsMethodCallToEnumConstRector with getValue() and static call (#2695)
2022-07-20 13:20:59 +00:00
Tomas Votruba
cce8c4f1c9 Updated Rector to commit aee31cebb921d7213c9ffdf802e7481221c0453c
aee31cebb9 change to list of configs (#2694)
2022-07-20 11:52:30 +00:00
Tomas Votruba
aa6004e082 Updated Rector to commit ae31fb60aeb3c49fb47b3fa12c792098e67831c5
ae31fb60ae [PHPStan] Resolve variable name casing (#2689)
2022-07-20 05:05:58 +00:00
Tomas Votruba
8a0350a804 Updated Rector to commit 9cb0a5efb59c51c662a4b6eb56753b9cc2174e21
9cb0a5efb5 [PHPStan] Resolve duplicated regex value (#2690)
2022-07-20 05:00:44 +00:00
Tomas Votruba
f01bc715ee Updated Rector to commit c74cda7cead18dc51061bd8540c64e98a6aec3b8
c74cda7cea Remove UnwrapFutureCompatibleIfFunctionExistsRector as very niche and specific (#2688)
2022-07-19 22:41:37 +00:00
Tomas Votruba
3d514a7b40 Updated Rector to commit 0972dedb01bbc4ff1fa83965ffd8b26ab172f1eb
0972dedb01 Extend dead-code set (#2687)
2022-07-19 22:22:01 +00:00
Tomas Votruba
9b6234b1bc Updated Rector to commit b492d2077dfb0ee9c08664747c0c3e8ed73dbc97
b492d2077d [DX] Cleanup, Remove RepeatedLiteralToClassConstantRector, as very narrow use case; use rather phpstan + Remove ChangeLocalPropertyToVariableRector, as buggy and unreliable; better use PHPStan (#2686)
2022-07-19 21:15:00 +00:00
Tomas Votruba
643657d0ed Updated Rector to commit c3e31f067de83606b46188d26fcca61a3e89c3c8
c3e31f067d move ReturnTypeFromStrictTypedCallRector to enterprise (#2685)
2022-07-19 20:28:05 +00:00
Tomas Votruba
4f969ebd66 Updated Rector to commit c474c67319c9072b81dd9bcb1f4d6f201e1a1e4e
c474c67319 misc (#2678)
2022-07-19 18:25:44 +00:00
Tomas Votruba
ab3565ff17 Updated Rector to commit 0ffaacaf3cf1094d3abfb3e0aee9543d12aa6490
0ffaacaf3c Cleanup set list from old sets (#2684)
2022-07-19 18:21:38 +00:00
Tomas Votruba
6f849831d7 Updated Rector to commit d030813bb995528a026e8ea3c84028fd47a4debd
d030813bb9 Clean up skip rector.php config (#2682)
2022-07-19 08:22:01 +00:00
Tomas Votruba
9244858669 Updated Rector to commit ddb08dc9dd6e4a279dd0d88633cdd51ca14581e0
ddb08dc9dd Clean up PHPStan ignore errors (#2681)
2022-07-19 08:04:51 +00:00
Tomas Votruba
e87c453b7e Updated Rector to commit a66e6530decedb25b89c0049da402ec5828034b3
a66e6530de [Transform] Handle crash string in EnumCase on StringToClassConstantRector (#2680)
2022-07-18 23:37:02 +00:00
Tomas Votruba
9c5eda645c Updated Rector to commit c9ecc86d7e1621b435aed598317a6962e22e8039
c9ecc86d7e Cleanup of assign void (#2679)
2022-07-18 23:10:43 +00:00
Tomas Votruba
e67795209e Updated Rector to commit f74bdede72ab3a95dfa5f8670b369c2d4cd2e4db
f74bdede72 [CodingStyle] Deprecate PHPStormVarAnnotationRector, rather tokens responsibility (#2677)
2022-07-18 15:33:08 +00:00
Tomas Votruba
c855f5df1c Updated Rector to commit 6d7404c65000caede512a5bc5a993f472e11cd0d
6d7404c650 Home cleaning with Exacat 😎 (#2676)
2022-07-18 15:25:27 +00:00
Tomas Votruba
b8d580b548 Updated Rector to commit d1f91502773e1cc2de6fc5c7ee7b2077165f6762
d1f9150277 [CodeQuality] Handle crash attribute used on trait on CallableThisArrayToAnonymousFunctionRector (#2675)
2022-07-18 14:32:34 +00:00
Tomas Votruba
ce84017a24 Updated Rector to commit f6090319c24eb98de56d09353c24b5c30da9e7fc
f6090319c2 [PHPStan] Reduce PHPStan errors for narrow public - take 3 (#2674)
2022-07-17 12:27:00 +00:00
Tomas Votruba
da70700f98 Updated Rector to commit ce32685688660a000848322caadcf336bfc282f8
ce32685688 [PHPStan] Reduce PHPStan errors for narrow public - take 2 (#2673)
2022-07-17 01:16:52 +00:00
Tomas Votruba
46dd47dd4e Updated Rector to commit ac94ddd5bd269b17afc339f39af711c02d56b34a
ac94ddd5bd [PHPStan] Reduce PHPStan errors for narrow public - take 1 (#2672)
2022-07-16 14:24:54 +00:00
Tomas Votruba
5bce2cfaec Updated Rector to commit 97ef9ff17fb2a92141621baccae2f52d9659d0e6
97ef9ff17f Improve namespace names validation (#2670)
2022-07-16 12:31:38 +00:00
Tomas Votruba
09e7c38ed0 Updated Rector to commit e302870bd68ae670fdaffe529d26b5e1c5347408
e302870bd6 Improve RectorAssert tests + add assert name on rename configs (#2669)
2022-07-16 11:25:49 +00:00
Tomas Votruba
4b2bd56de7 Updated Rector to commit 6577da612c2824c2add06721b903de4cd438631e
6577da612c [DX] Add input validation for method, property and function name to avoid invalid output ast (#2668)
2022-07-16 09:41:53 +00:00
Tomas Votruba
587cd1ea1b Updated Rector to commit e8d0d572934d5faec64d480d9cd985a3823c9c0a
e8d0d57293 Fix getter method property substitution when the readable types don't match. (#2667)
2022-07-15 23:16:52 +00:00
Tomas Votruba
6f2ea78a3d Updated Rector to commit 12ab2ac8277a0899e2440ea36fb50ace4299f444
12ab2ac827 Fix test to only resolve to known classes (#2663)
2022-07-15 20:47:06 +00:00
Tomas Votruba
a05f4bdb4d Updated Rector to commit db7012edc116426e441645abdc1cffcb8c47ee85
db7012edc1 [Php80] Add implements interface support on single file on AddParamBasedOnParentClassMethodRector (#2660)
2022-07-15 15:03:05 +00:00
Tomas Votruba
0077120e40 Updated Rector to commit db7012edc116426e441645abdc1cffcb8c47ee85
db7012edc1 [Php80] Add implements interface support on single file on AddParamBasedOnParentClassMethodRector (#2660)
2022-07-15 08:20:20 +00:00
Tomas Votruba
ead00ac355 Updated Rector to commit 84012e4ac915dd5d8e7527bffdec302d53dc222e
84012e4ac9 Static type improvements (#2662)
2022-07-15 08:14:37 +00:00
Tomas Votruba
f75d563163 Updated Rector to commit 8a6b70456e536174d88a29c865bed73a6fa89534
8a6b70456e [Core] Move check CREATED_BY_RULE attribute from AbstractRector into RectifiedAnalyzer (#2665)
2022-07-15 08:02:59 +00:00
Tomas Votruba
4b78498132 Updated Rector to commit 328c43713e7b7ec77675637582117619af012985
328c43713e static fixes (#2661)
2022-07-14 22:29:28 +00:00
Tomas Votruba
24b5f6d999 Updated Rector to commit 14b5cb1d6747f44e827dcce2160105dc17496927
14b5cb1d67 [TypeDeclaration] Skip property exists in parent on TypedPropertyFromStrictConstructorRector (#2659)
2022-07-14 00:42:36 +00:00
Tomas Votruba
9d2c3a2853 Updated Rector to commit ae7648ed92396d39b4d364328312250b2c66f40e
ae7648ed92 [CodingStyle] Add StaticClosureRector (#2658)
2022-07-13 20:35:23 +00:00
Tomas Votruba
2747e037dd Updated Rector to commit 743fef03d939a8a4fc4aa9364df057854e97e5c7
743fef03d9 [CodingStyle] Add StaticArrowFunctionRector (#2657)
2022-07-13 16:07:41 +00:00
Tomas Votruba
4ddedc166e Updated Rector to commit b1ae9a141523ee35af1f63aab39d945e8df03275
b1ae9a1415 [DeadCode] Handle crash on indirect parent BinaryOp on RemoveDuplicatedInstanceOfRector (#2652)
2022-07-11 13:39:30 +00:00
Tomas Votruba
10beeee699 Updated Rector to commit aae75c63d5b30a61bcd9fae806ee201530a54669
aae75c63d5 [Php74] Skip TypedPropertyRector on final class by @final docblock (#2654)
2022-07-11 13:39:15 +00:00
Tomas Votruba
5741d7a8f3 Updated Rector to commit 5debc09c986ee0d92de270d4cd170f6285c430e8
5debc09c98 [TypeDeclaration] Skip modififed type between assign and return on ReturnTypeFromStrictNewArrayRector (#2651)
2022-07-10 17:47:25 +00:00
Tomas Votruba
0837a1f067 Updated Rector to commit 7e1c2bb2b9a0b8d5342499e0dbb8ebee921769d0
7e1c2bb2b9 [TypeDeclaration] Skip Type modified between Assign and Return_ on ReturnTypeFromReturnNewRector (#2650)
2022-07-10 15:47:24 +00:00
Tomas Votruba
368ad1b2c7 Updated Rector to commit f5896ace8c46fcfb1936946052e57623cced7f60
f5896ace8c [automated] Apply Coding Standard (#2649)
2022-07-10 00:42:06 +00:00
Tomas Votruba
fe7e52ca87 Updated Rector to commit d3cb26f2d3de667ace15710e5d52f2be61dd9613
d3cb26f2d3 DependencyClassMethodDecorator: Prevent duplication of arguments (#2643)
2022-07-09 19:04:30 +00:00