4463 Commits

Author SHA1 Message Date
Tomas Votruba
2e39614116 Updated Rector to commit 26a368c89ba8297d33600aa5a1c954d2a1b5d274
26a368c89b Fix ReturnBinaryOrToEarlyReturnRector mixing up returned nodes of array, hook into StmtsAwareInterface instead to keep next Rector rules updated (#4476)
2023-07-11 15:35:53 +00:00
Tomas Votruba
a552423177 Updated Rector to commit aac0f2a90922bcfe90a1918448dc6e80172beb62
aac0f2a909 Remove duplicated version_compare ReplaceFuncCallArgumentDefaultValue rule (#4473)
2023-07-10 23:27:24 +00:00
Tomas Votruba
6f70a13e76 Updated Rector to commit aac0f2a90922bcfe90a1918448dc6e80172beb62
aac0f2a909 Remove duplicated version_compare ReplaceFuncCallArgumentDefaultValue rule (#4473)
2023-07-10 23:19:20 +00:00
Tomas Votruba
dbd0b13b4f Rector 0.17.3 2023-07-10 13:32:43 +00:00
Tomas Votruba
5f68d82340 Updated Rector to commit 284596d4b976784ebe973370e2ed93d0e9977d90
284596d4b9 [Testing] Remove gc_collect_cycles() on AbstractRectorTestCase to avoid random error in tests due to SimpleParameterProvider static property usage lost (#4472)
2023-07-10 11:49:37 +00:00
Tomas Votruba
94fef75d5b Updated Rector to commit 284596d4b976784ebe973370e2ed93d0e9977d90
284596d4b9 [Testing] Remove gc_collect_cycles() on AbstractRectorTestCase to avoid random error in tests due to SimpleParameterProvider static property usage lost (#4472)
2023-07-10 11:44:16 +00:00
Tomas Votruba
56adf233ec Updated Rector to commit bed225d99e487388a60785fdb898fc997d3f759c
bed225d99e [Renaming] Use RunTestsInSeparateProcesses on RenameClassRector tests (#4471)
2023-07-10 11:20:12 +00:00
Tomas Votruba
474e8a76ec Updated Rector to commit 28412a49f7bd52094196e659ec0c68f9642c08b1
28412a49f7 [Naming] Skip used on next foreach on RenameForeachValueVariableToMatchExprVariableRector (#4469)
2023-07-10 10:56:25 +00:00
Tomas Votruba
2d46a8afb9 Updated Rector to commit 5b64258e7c9628d80fa3247a698c646def55dca4
5b64258e7c [DeadCode] Skip used defined in extract() on RemoveNonExistingVarAnnotationRector (#4468)
2023-07-10 09:23:28 +00:00
Tomas Votruba
3f51587157 Updated Rector to commit 3cc636540bccf0fc647ff13e1bea212c6bfa4962
3cc636540b [CodingStyle] Using in_array() instead of double loop on UseImportsRemover (#4467)
2023-07-09 23:56:37 +00:00
Tomas Votruba
484c94d08a Updated Rector to commit 868612ae6bac93afe8d9aea8fd7d2fb6c6306991
868612ae6b [DX] Remove parent node from AbstractRector (#4465)
2023-07-09 18:49:55 +00:00
Tomas Votruba
9bef88551a Updated Rector to commit a771c5621971eb1c527c75de17119a82ac8294e6
a771c56219 [DX] Remove autowrapping of expr/stmt to make return values in the same type and reliable (#4466)
2023-07-09 17:30:30 +00:00
Tomas Votruba
11aabec02c Updated Rector to commit 5c85bb6c455815d93d2026b430983ab28fb8d46e
5c85bb6c45 Remove NodeConnectingTraverser (#4464)
2023-07-09 14:55:22 +00:00
Tomas Votruba
5ae7edc0c7 Updated Rector to commit 2ad1b8f7fb44daabca0014770dd75b17d0e23b8d
2ad1b8f7fb [DX] Remove node connecting travserser from AbstractRector (#4463)
2023-07-09 14:20:13 +00:00
Tomas Votruba
2c65e379e2 Updated Rector to commit 9608c7cda5c29ee505d8e39f37e725b9b9fb5fbf
9608c7cda5 [DX] Remove node connecting traveser from SimplePhpParser (#4461)
2023-07-09 14:14:59 +00:00
Tomas Votruba
001414980a Updated Rector to commit 14089145f699c64437b484209998963d3c75b0a1
14089145f6 [Rector] Skip used after TryCatch on RemoveUnusedVariableInCatchRector (#4459)
2023-07-09 13:58:38 +00:00
Tomas Votruba
e24fff2c36 Updated Rector to commit 68d092c547af462f8e036a6d06bd343e15103901
68d092c547 [DX] Make use of SimpleParameterProvider directly, deprecate RectorConfigProvider (#4460)
2023-07-09 13:51:12 +00:00
Tomas Votruba
8b1461a064 Updated Rector to commit ab9d3219915e1bcab0f1cda02d76dc57ff03c9ce
ab9d321991 [DX] Fix duplicate check in RectorConfig (#4457)
2023-07-09 12:20:50 +00:00
Tomas Votruba
5fecc17d26 Updated Rector to commit 1eb97049da78c3d9a37d516176de89bb58fc4ecb
1eb97049da Remove deprecated resolveNextNode() to embrace local scope node (#4456)
2023-07-09 12:05:42 +00:00
Tomas Votruba
78db55b5d5 Updated Rector to commit ed6f2b66c4d1d58a5181b6d76d8ee09e9c7e7c6b
ed6f2b66c4 Deprecate resolveNextNode() to work only in current node tree context (#4455)
2023-07-09 11:55:46 +00:00
Tomas Votruba
994045415a Updated Rector to commit ad7d9b12ea0fa8bba78be8d0348daa6ecffe3abe
ad7d9b12ea [DX] Always init $this->hasChanged on Rector rule to ensure the flag is reset on same call on different file (#4454)
2023-07-09 11:49:50 +00:00
Tomas Votruba
50857a197a Updated Rector to commit 5ed67fb6cfd7bdb79ac993797123f25e78d61d11
5ed67fb6cf Cleanup RenameForeachValueVariableToMatchExprVariableRector (#4453)
2023-07-09 11:25:27 +00:00
Tomas Votruba
a319accada Updated Rector to commit d706d342846639545e2a19eadd618fac31751417
d706d34284 Make JsonThrowOnErrorRector work with local scope to detect error_json methods (#4451)
2023-07-09 11:07:02 +00:00
Tomas Votruba
bc1a862545 Updated Rector to commit cfc88dc019bc47deb44280e14940af355dfd1e81
cfc88dc019 [DX] Check only for current scope in RemoveUnusedVariableInCatchRector, as… magic exception use is bad practise and should be avoided (#4449)
2023-07-09 10:41:20 +00:00
Tomas Votruba
2d4dfa7604 Updated Rector to commit ce03029084e1d8c860de15ee6fcfef8f6f35dbdb
ce03029084 [DeadCode] Remove RemoveJustVariableAssignRector as often done on purpose or with side effect (#4450)
2023-07-09 10:36:52 +00:00
Tomas Votruba
0c4f4be946 Updated Rector to commit 33019ba2ff8abfa658b998db5a7ca88f2fa87da3
33019ba2ff [MysqlToMysqli] Deprecate set, as dangerous to use, better handle manually (#4448)
2023-07-09 09:46:05 +00:00
Tomas Votruba
46ce317aa4 Updated Rector to commit 14081fecec9a9079c6ec279b383f8ade48f2b990
14081fecec Add inside array item marker to remove PARENT_NODE from downgrade (#4447)
2023-07-09 08:23:58 +00:00
Tomas Votruba
b0309e26cf Updated Rector to commit 919f5d4ababb95e3cf9167926e81c65939d70bf3
919f5d4aba [Renaming] Remove parent attribute on ClassRenamer (#4446)
2023-07-09 02:51:17 +00:00
Tomas Votruba
c7f7cb60df Updated Rector to commit c8da7a564d3d5719b475e93e8c7d30b5db73aa75
c8da7a564d [Renaming] Remove check exists in Use_ on ClassRenamer (#4445)
2023-07-09 02:09:11 +00:00
Tomas Votruba
0e1f48fb00 Updated Rector to commit 3b6084dec770faeb7fca657b6f1ab6898a0801d5
3b6084dec7 [Php72] Remove parent attribute on AnonymousFunctionFactory (#4443)
2023-07-09 01:45:20 +00:00
Tomas Votruba
d701c75713 Updated Rector to commit c7a7046b05c0cfba50aa245973f42a00009540ad
c7a7046b05 [automated] Re-Generate Nodes/Rectors Documentation (#4444)
2023-07-09 00:38:42 +00:00
Tomas Votruba
c86937fb6b Updated Rector to commit b9ace5f53f1640ab947922957e8179b2b50ff2cd
b9ace5f53f [PHP 8] Resources object upgrade - remove 2 rules as the upgrade require wholesome manual work (#4442)
2023-07-08 22:49:07 +00:00
Tomas Votruba
c409764fcc Updated Rector to commit 499b272964a8b9dde2badaf872d053b3df17d162
499b272964 fixup! Make RemoveNonExistingVarAnnotationRector simpler, skip compact() check as not generic (#4439)
2023-07-08 22:47:24 +00:00
Tomas Votruba
bea2685039 Updated Rector to commit 2f1d4d3e66e896531cbfe6958307b451e972a624
2f1d4d3e66 Make RemoveNonExistingVarAnnotationRector simpler, skip compact() check as not generic (#4439)
2023-07-08 21:56:17 +00:00
Tomas Votruba
8028d6a7ce Updated Rector to commit ac63f2a6261963e8a7d353474b7c20311a72ded3
ac63f2a626 [NodeTypeResolver] Remove type detection from parent FunctionLike docblock on ParamTypeResolver (#4441)
2023-07-08 21:50:41 +00:00
Tomas Votruba
7912b23087 Updated Rector to commit 2f1d4d3e66e896531cbfe6958307b451e972a624
2f1d4d3e66 Make RemoveNonExistingVarAnnotationRector simpler, skip compact() check as not generic (#4439)
2023-07-08 21:50:21 +00:00
Tomas Votruba
0ae22238e2 Updated Rector to commit 3c90b2d0ec9aef15c1d869ceadf1dfeaea8235ce
3c90b2d0ec [DX] Remove parent node fixture, to avoid false positive on node discovery (#4440)
2023-07-08 21:47:47 +00:00
Tomas Votruba
830b50116f Updated Rector to commit 951fb8be8f890b118b87858d45afc93f2cd9a29c
951fb8be8f [DX] Remove findParentType() method (#4438)
2023-07-08 20:40:11 +00:00
Tomas Votruba
47fc2f5153 Updated Rector to commit 651616a14b47aadfd467da1dded6c420f1ef3f01
651616a14b [NodeTypeResolver] Reduce parent lookup on ParamTypeResolver (#4435)
2023-07-08 14:38:41 +00:00
Tomas Votruba
811311089b Updated Rector to commit 6daf93e54524b24be9b2d79edca98d97b6c2ae32
6daf93e545 [NodeAnalyzer] Remove find first previous on CallAnalyzer (#4434)
2023-07-07 16:13:45 +00:00
Tomas Votruba
4666787179 Updated Rector to commit 83a9221d6baa56dc6fc009db45db18f8b4ea63c8
83a9221d6b [NodeAnalyzer] Mark Variable as non-refreshable MutatingScope on ScopeAnalyzer (#4433)
2023-07-07 10:34:54 +00:00
Tomas Votruba
beaa6639c6 Updated Rector to commit ce207419aafa6effb8e2812408c09b1d8e9b874c
ce207419aa [DX] Lower parent node dependency in VariableToConstantGuard (#4430)
2023-07-06 22:39:41 +00:00
Tomas Votruba
d53aabefd9 Updated Rector to commit 1d0feb251132d3b766945bc80d8f914c5279277f
1d0feb2511 [DX] Lower readonly PropertyManipulator complexity (#4429)
2023-07-06 21:07:00 +00:00
Tomas Votruba
e3e96f6f96 Updated Rector to commit 3962227709fda9312f07d6a516a1ee405b392489
3962227709 [NodeTypeResolver] Reduce duplicated Scope fill on FuncCall (#4428)
2023-07-06 20:17:30 +00:00
Tomas Votruba
7f5bbceea9 Updated Rector to commit 3962227709fda9312f07d6a516a1ee405b392489
3962227709 [NodeTypeResolver] Reduce duplicated Scope fill on FuncCall (#4428)
2023-07-06 18:53:30 +00:00
Tomas Votruba
ef629ad2ed Updated Rector to commit 3962227709fda9312f07d6a516a1ee405b392489
3962227709 [NodeTypeResolver] Reduce duplicated Scope fill on FuncCall (#4428)
2023-07-06 15:20:15 +00:00
Tomas Votruba
d071e69583 Updated Rector to commit 3962227709fda9312f07d6a516a1ee405b392489
3962227709 [NodeTypeResolver] Reduce duplicated Scope fill on FuncCall (#4428)
2023-07-06 14:24:46 +00:00
Tomas Votruba
92a790ae25 Updated Rector to commit a4ef13b30cfd2ee5a02f547256673064d648c558
a4ef13b30c [NodeAnalyzer] Check statementDepth on Stmt, and expressionDepth on Expr on ScopeAnalyzer (#4425)
2023-07-05 17:31:36 +00:00
Tomas Votruba
4ded5a660a Updated Rector to commit 9df1445de8c8cb5eed5a85446628226f9b03ed76
9df1445de8 [DX] Remove SimplifyForeachToArrayFilterRector as it turns typed functions to string and make code worse (#4424)
2023-07-05 15:32:48 +00:00
Tomas Votruba
8c7b0e1592 Updated Rector to commit 14790b408cc616842ab25084c23c91cdd83559a1
14790b408c [NodeTypeResolver] Remove ArrayItem scope filling from Array_ and Name filling for Catch types on PHPStanNodeScopeResolver (#4423)
2023-07-05 12:35:10 +00:00