Tomas Votruba
8525cf1533
Updated Rector to commit 1da1e62cc92be1df0d51f5a69d0d3d865918426d
...
1da1e62cc9
[automated] Apply Coding Standard (#4526 )
2023-07-16 00:38:58 +00:00
Tomas Votruba
5a2fb08bac
Updated Rector to commit d5e448d37dab6eb9352907aaaf82626207181be1
...
d5e448d37d
[TypeDeclaration] Null stmts check early on ReturnTypeFromStrictParamRector (#4512 )
2023-07-14 17:47:57 +00:00
Tomas Votruba
70b8468a69
Updated Rector to commit 875b2a319f2d01db4ca0d64a6a15d497117f70c8
...
875b2a319f
Implement ReturnTypeFromStrictParamRector (#4501 )
2023-07-14 16:16:08 +00:00
Tomas Votruba
267a05386e
Updated Rector to commit b3c4aff2ad46d78c1c03800c7301129601aefc4e
...
b3c4aff2ad
Support literals in ReturnTypeFromStrictTypedCallRector (#4511 )
2023-07-14 13:32:55 +00:00
Tomas Votruba
b42f14508b
Updated Rector to commit baa394358b3dc76f6db5a003b226948ab9b32045
...
baa394358b
Micro optimizations: cheap checks first (#4510 )
2023-07-14 09:46:43 +00:00
Tomas Votruba
1463cdd31a
Updated Rector to commit d64a761597a5e2f8b9158c770dcad5de08286f69
...
d64a761597
[Php70] Remove $scope->isInClass on Php4ConstructorRector (#4507 )
2023-07-13 16:34:50 +00:00
Tomas Votruba
5df86ccec2
Updated Rector to commit 77167c7a1047f430b68f7b1063b5f2cb8dfa9830
...
77167c7a10
[Php52] Use instanceof check instead of compare object $newStmt === $caseStmt on ContinueToBreakInSwitchRector (#4494 )
2023-07-12 15:15:50 +00:00
Tomas Votruba
fe7bab8799
Updated Rector to commit c0983f1000c1ca67b23d6da0c7f43eede90d14db
...
c0983f1000
Skip coalsce assign in RemoveUnusedPrivatePropertyRector (#4491 )
2023-07-12 09:53:27 +00:00
Tomas Votruba
03be03391c
Updated Rector to commit d514a5ad79c530cf236308d4f7ab9254e2340996
...
d514a5ad79
Fix StrictArrayParamDimFetchRector on same named property (#4488 )
2023-07-12 08:37:36 +00:00
Tomas Votruba
7312a4cf9b
Updated Rector to commit d4be167d7e1bc3940db01d3a2096df7aa9cebe1c
...
d4be167d7e
Fix trait rename in Php4ConsturctorRector (#4487 )
2023-07-12 08:11:47 +00:00
Tomas Votruba
100d1e2fc8
Updated Rector to commit d4a432e7e490695a11daa32bce6bf20ab0d075f6
...
d4a432e7e4
Fix StrictArrayParamDimFetchRector on `is_*` calls (#4486 )
2023-07-12 08:02:53 +00:00
Tomas Votruba
db04f76104
Updated Rector to commit d78bfb44bebd32bd212a1f1ca43d2da51b22286d
...
d78bfb44be
[Strict] Fix DisallowedEmptyRuleFixerRector on empty string isset (#4485 )
2023-07-12 07:23:56 +00:00
Tomas Votruba
ae068885cc
Updated Rector to commit 3648297e5b2bc393b41fa85eba1028d3735dbaa6
...
3648297e5b
[CodeQuality][Php80] Handle infite loop swap params on RemoveUnusedVariableInCatchRector + OptionalParametersAfterRequiredRector (#4484 )
2023-07-11 23:50:02 +00:00
Tomas Votruba
9aefef183d
Updated Rector to commit 5dfb6218ec53caa197456adb78baebaae0a4334a
...
5dfb6218ec
[Php80] Handle crash on ClassOnObjectRector + GetDebugTypeRector (#4483 )
2023-07-11 23:03:45 +00:00
Tomas Votruba
72fec64c3b
Updated Rector to commit 4fbeab88e1b505c0740e66d53864667cc3d7700a
...
4fbeab88e1
fix(rules): Skip readonly classes from restoring default null value. (#4479 )
2023-07-11 22:02:27 +00:00
Tomas Votruba
802b78e28b
Updated Rector to commit dd6a1fb651c07c558d28a9dcf72ff1248b2c0614
...
dd6a1fb651
[DeadCode] Skip property not exists on RemoveTypedPropertyDeadInstanceOfRector (#4481 )
2023-07-11 21:50:58 +00:00
Tomas Votruba
fb5e28c38b
Updated Rector to commit db16e33a9a72d6c75600187d9f7851060d9a88fe
...
db16e33a9a
[EarlyReturn] Remove ReturnBinaryAndToEarlyReturnRector as creates code hard to read and flips condition (#4478 )
2023-07-11 15:52:31 +00:00
Tomas Votruba
e73319defd
Updated Rector to commit 59b4c8d69f788a36184b69adf06b03e2ab2e8989
...
59b4c8d69f
cs
2023-07-11 15:36:25 +00:00
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
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
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
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
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
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
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
830b50116f
Updated Rector to commit 951fb8be8f890b118b87858d45afc93f2cd9a29c
...
951fb8be8f
[DX] Remove findParentType() method (#4438 )
2023-07-08 20:40:11 +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
d53aabefd9
Updated Rector to commit 1d0feb251132d3b766945bc80d8f914c5279277f
...
1d0feb2511
[DX] Lower readonly PropertyManipulator complexity (#4429 )
2023-07-06 21:07:00 +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
67e1d2d61c
Updated Rector to commit 3fa4bec792258ae18bf56c665d5ec3fa4938d475
...
3fa4bec792
[Renaming] Remove Scope filling from Name node on PHPStanNodeScopeResolver for RenameClassRector (#4422 )
2023-07-05 12:18:11 +00:00
Tomas Votruba
e534d832ec
Updated Rector to commit b4ff32ef246fe2c36351701995759ee4fc21f370
...
b4ff32ef24
[TypeDeclaration] Remove aliased object type from MethodCall/StaticCall on ObjectTypeSpecifier (#4421 )
2023-07-05 09:25:45 +00:00
Tomas Votruba
7251a47b0d
Updated Rector to commit 93a4b2b15eec15c506ae55c25b23a40dd0390cff
...
93a4b2b15e
[NodeTypeResolver] Remove parent attribute on PHPStanNodeScopeResolver for after UnreachableStatementNode detector (#4415 )
2023-07-04 08:36:47 +00:00
Tomas Votruba
1f28e1c52a
Updated Rector to commit 708cc4fb49562e19a98849abd50216048b1f48ba
...
708cc4fb49
[TypeDeclaration] Handle crash on no namespace with + operation on DeclareStrictTypesRector (#4414 )
2023-07-03 17:30:02 +00:00
Tomas Votruba
d16d5ab29c
Updated Rector to commit 3bd0e9faa5e015df82ccf511e248b5ca3d168b33
...
3bd0e9faa5
[DeadCode] Skip used as closure on RemoveUnusedPrivateMethodRector (#4413 )
2023-07-03 16:48:28 +00:00
Tomas Votruba
54dbeae92c
Updated Rector to commit ddc3d946366d72d91ef608b08ccd6f3e17eed830
...
ddc3d94636
[DX] Make use of SimpleParameterProvider::provideIntParameter() (#4409 )
2023-07-03 15:00:57 +00:00
Tomas Votruba
e055ea60b8
Updated Rector to commit 2502fe2e92aa8fcee621b2aa3eb2a1cfdf2b0621
...
2502fe2e92
[Php82] Skip extends unknown class on ReadonlyClassRector (#4408 )
2023-07-03 14:56:15 +00:00
Tomas Votruba
493a57e478
Updated Rector to commit df5a7bbfbf4e01f4b485603bacab0f1fd807b7f7
...
df5a7bbfbf
[DX] Kick of SimpleParameterProvider (#4405 )
2023-07-03 13:55:43 +00:00