Commit Graph

4114 Commits

Author SHA1 Message Date
Tomas Votruba a0204cf9f1 Updated Rector to commit b37e2733e1c393bc802d0c378abfa3f3f4d87068
b37e2733e1 [Core] Ensure reindex node attributes even on re-print (#4030)
2023-05-30 13:30:54 +00:00
Tomas Votruba 36bff0a577 Updated Rector to commit 105df5f485c8e3b2e9b75320555a32b5325186b5
105df5f485 Remove NewToMethodCallRector as unused core and no other extension, niche to use, better handle by PHPStorm (#4029)
2023-05-30 13:20:44 +00:00
Tomas Votruba df2ad70dd3 Updated Rector to commit 4c782243fdb6b03474faa0076800048cb3ef0de9
4c782243fd Remove ChangeReadOnlyPropertyWithDefaultValueToConstantRector as overly detailed checks, better use PHPStan and refactor individually (#4028)
2023-05-30 13:09:27 +00:00
Tomas Votruba 010d5d2c6f Updated Rector to commit 22e97d1c418d0772cf449ed888522ca060829ddf
22e97d1c41 Cleanup stmts (#4027)
2023-05-30 13:05:48 +00:00
Tomas Votruba 8fa5f13430 Updated Rector to commit 953ecb9ecd02d5fc13a21cd7086b60aa45eac31d
953ecb9ecd Improve RemoveUnusedNonEmptyArrayBeforeForeachRector to work with foreach over stmts (#4026)
2023-05-30 12:38:31 +00:00
Tomas Votruba 01ece07757 Updated Rector to commit e0d7483c6257a772829bc28ca76c8237cabb6435
e0d7483c62 Make use of stmts assign in StringableForToStringRector (#4025)
2023-05-30 12:30:41 +00:00
Tomas Votruba fed7beb412 Updated Rector to commit 5bae1ebdcee327ac3dcf4a25175f9013af54ec3d
5bae1ebdce trigger CI
2023-05-30 10:33:01 +00:00
Tomas Votruba 1a69dcf241 Updated Rector to commit d413dc15e6cbe5ac10f5fe6fd06711fcb7267a0b
d413dc15e6 Remove unused method addNodesBeforeNode() (#4024)
2023-05-30 09:18:02 +00:00
Tomas Votruba 9fd6682367 Updated Rector to commit e2213f21762d74946a34197921aa905623493e8c
e2213f2176 Remove unused addNodeAfterNode(), return nodes instead (#4023)
2023-05-30 09:05:58 +00:00
Tomas Votruba 28d2a3ced0 Updated Rector to commit d413dc15e6cbe5ac10f5fe6fd06711fcb7267a0b
d413dc15e6 Remove unused method addNodesBeforeNode() (#4024)
2023-05-30 09:05:54 +00:00
Tomas Votruba 6f79fcfb1e Updated Rector to commit e2213f21762d74946a34197921aa905623493e8c
e2213f2176 Remove unused addNodeAfterNode(), return nodes instead (#4023)
2023-05-30 08:41:10 +00:00
Tomas Votruba 672d7d7dfe Updated Rector to commit e2213f21762d74946a34197921aa905623493e8c
e2213f2176 Remove unused addNodeAfterNode(), return nodes instead (#4023)
2023-05-30 08:16:08 +00:00
Tomas Votruba 305fa5edd6 Updated Rector to commit b97fe194b45a7915fd1509b9388315f49582cb2c
b97fe194b4 [Php80] Remove parent attribute usage on ClassPropertyAssignToConstructorPromotionRector (#4022)
2023-05-29 23:40:49 +00:00
Tomas Votruba 74fee33fad Updated Rector to commit 5979f30756eca7e8f2736514451d5c7bdfed50ce
5979f30756 Remove removeNode() from FuncGetArgsToVariadicParamRector (#4021)
2023-05-29 21:33:59 +00:00
Tomas Votruba 5062188fe8 Updated Rector to commit 0ea7b49d5839f4dcdf5c9966cf410b3394c5e060
0ea7b49d58 [Testing] Remove require_once on TestingParser::parseFileToDecoratedNodes() (#4009)
2023-05-29 18:30:06 +00:00
Tomas Votruba 83e5614f51 Updated Rector to commit 45a9dd5df8411c31f89e87b8cfcc4348625ce627
45a9dd5df8 fix cs
2023-05-29 14:21:32 +00:00
Tomas Votruba 84d2957596 Updated Rector to commit 3dfe7f9c11dc0ea75ba73da6f4639c1718843dc2
3dfe7f9c11 [Test] Enable displayDetailsOnTestsThatTriggerWarnings to true in tests to show warning (#4020)
2023-05-29 14:21:02 +00:00
Tomas Votruba 9f963a664a Updated Rector to commit 3dfe7f9c11dc0ea75ba73da6f4639c1718843dc2
3dfe7f9c11 [Test] Enable displayDetailsOnTestsThatTriggerWarnings to true in tests to show warning (#4020)
2023-05-29 14:08:28 +00:00
Tomas Votruba 8d722f5b92 Updated Rector to commit 3dfe7f9c11dc0ea75ba73da6f4639c1718843dc2
3dfe7f9c11 [Test] Enable displayDetailsOnTestsThatTriggerWarnings to true in tests to show warning (#4020)
2023-05-29 14:02:39 +00:00
Tomas Votruba 4c71bd6171 Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 13:42:03 +00:00
Tomas Votruba 8925a6a4f0 Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 13:28:38 +00:00
Tomas Votruba e4e5a9d57d Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 12:58:14 +00:00
Tomas Votruba 0610c13b0a Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 12:45:31 +00:00
Tomas Votruba 694cd80b82 Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 12:40:47 +00:00
Tomas Votruba 2f8ba99efb Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 12:32:37 +00:00
Tomas Votruba 85587ab16d Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 12:26:31 +00:00
Tomas Votruba 6b379fd240 Updated Rector to commit e6048295f9001e693403f9f47fd956c543636c16
e6048295f9 [DeadCode] Use  flag on return ClassMethod node on RemoveUnusedConstructorParamRector (#4017)
2023-05-29 12:18:38 +00:00
Tomas Votruba 672507859d Updated Rector to commit 580c76d7fe50f608dfac67f011cd6cac33b6ef72
580c76d7fe [DeadCode] Revert constructor with middle param removal on RemoveUnusedPrivatePropertyRector (#4016)
2023-05-29 12:06:26 +00:00
Tomas Votruba 485a9df50b Updated Rector to commit a91057e5a1f14fe12a1e9bded2c006012c09b00d
a91057e5a1 Remove PARENT_NODE from ArrayDimFetchTypeResolver (#4015)
2023-05-29 09:58:15 +00:00
Tomas Votruba 1b08d37c26 Updated Rector to commit f15cbd7a7d1913287cf67fa9ee2311ebee11cae3
f15cbd7a7d Remove PARENT_NODE from RemoveUnusedConstructorParamRector (#4014)
2023-05-29 09:38:38 +00:00
Tomas Votruba 601ac11f14 Updated Rector to commit 32510e0dc7ee63d5a38c7d088aaf82eee605c516
32510e0dc7 Remove array items directly RemoveDuplicatedArrayKeyRector (#4013)
2023-05-29 09:16:46 +00:00
Tomas Votruba c98c306aa8 Updated Rector to commit cd48bfcc4785fb0d2cf828240f8f71231b232c85
cd48bfcc47 Cleanup removeNodeFromStatements(), removeArg(), removeParam(), removeStmt() methods and remove nodes directly (#4012)
2023-05-29 08:39:56 +00:00
Tomas Votruba b6aa01ccb7 Updated Rector to commit 8f24c73f1894356dd9ad3745924d027fa65a5602
8f24c73f18 Remove PARENT_NODE from CommentsMerger (#4011)
2023-05-29 08:09:04 +00:00
Tomas Votruba 969127f9a6 Updated Rector to commit f429e2811c97689001f45c420d1d674322d00822
f429e2811c Remove use imports directly (#4008)
2023-05-29 06:32:46 +00:00
Tomas Votruba b4e067384d Updated Rector to commit 7891fdab42c174d2443674004396aef362994d4a
7891fdab42 [ProcessAnalyzer] Remove parent attribute on RectifiedAnalyzer (#4010)
2023-05-29 00:14:54 +00:00
Tomas Votruba b403b25ebd Updated Rector to commit 1f594c05a70e6a8a40f15503644ed86a75bbc5f9
1f594c05a7 [CodeQuality] Remove parent attribute on LocalPropertyAnalyzer (#4007)
2023-05-28 21:32:40 +00:00
Tomas Votruba 4cf0c8c8ba Updated Rector to commit 48991c6394059d53256dcfacf41957f8a434a453
48991c6394 [Performance] Reduce ClassReflection lookup on RemoveUnusedPrivateMethodRector (#4006)
2023-05-28 21:08:58 +00:00
Tomas Votruba 45419321ce Updated Rector to commit 95d3dc93770718d2337a7addbfed021f6cad8072
95d3dc9377 [DeadCode] Remove parent lookup on RemoveUnusedPrivateMethodRector (#4005)
2023-05-28 21:02:39 +00:00
Tomas Votruba 1e426f9497 Updated Rector to commit cc6dc93b566930e66b61ee04205ef943a8d9d339
cc6dc93b56 [CodeQuality] Reduce parent lookup on LocalPropertyAnalyzer::resolveFetchedPropertiesToTypesFromClass() (#4004)
2023-05-28 20:47:12 +00:00
Tomas Votruba 84236fa01b Updated Rector to commit 25d6a9740ed21735c4194b94f4d5cabe5b976832
25d6a9740e Cleanup usage of NodesToAddCollector, return nodes directly instead (#4003)
2023-05-28 20:45:54 +00:00
Tomas Votruba aadd5bb215 Updated Rector to commit 3fb912c94432b75fb50a14071f584671a882970d
3fb912c944 Rebuild docs (#4002)
2023-05-28 20:41:33 +00:00
Tomas Votruba 0ac7af6da1 Updated Rector to commit 3fb912c94432b75fb50a14071f584671a882970d
3fb912c944 Rebuild docs (#4002)
2023-05-28 16:17:31 +00:00
Tomas Votruba 99ac9186fd Updated Rector to commit 25ae1d85be40243e03c950de3ac15af7b5b5d3b2
25ae1d85be Remove TokenGetAllToObjectRector, as rare to use and leaky to handle, better handle in controller manual way (#4001)
2023-05-28 16:12:02 +00:00
Tomas Votruba 82f764337c Updated Rector to commit ec2893301809a41a4629aabc3888b968a9613f5e
ec28933018 [Naming] Remove parent attribute on VariableRenamer (#4000)
2023-05-28 14:39:57 +00:00
Tomas Votruba 35af12fddf Updated Rector to commit 7a739fd157144b4a03d88a01a5dd01740a02f2c7
7a739fd157 [Php81] Remove parent attribute on ReadOnlyPropertyRector (#3999)
2023-05-28 14:30:49 +00:00
Tomas Votruba 80189225db Updated Rector to commit 4d4c73d5957cd03b26d4a7f6b6b3e209f4506cd3
4d4c73d595 [automated] Apply Coding Standard (#3998)
2023-05-28 14:14:36 +00:00
Tomas Votruba c1d2a2d580 Updated Rector to commit 4d4c73d5957cd03b26d4a7f6b6b3e209f4506cd3
4d4c73d595 [automated] Apply Coding Standard (#3998)
2023-05-28 13:57:53 +00:00
Tomas Votruba 9b4ae51505 Updated Rector to commit 4d4c73d5957cd03b26d4a7f6b6b3e209f4506cd3
4d4c73d595 [automated] Apply Coding Standard (#3998)
2023-05-28 00:32:17 +00:00
Tomas Votruba 23ab3fd50e Updated Rector to commit fddbb6231342654d15bbaec2792f182881ef66fe
fddbb62313 [TypeDeclaration] Remove parent attribute on ConstructorAssignDetector (#3996)
2023-05-27 21:03:27 +00:00
Tomas Votruba 9c4d020ccb Updated Rector to commit fddbb6231342654d15bbaec2792f182881ef66fe
fddbb62313 [TypeDeclaration] Remove parent attribute on ConstructorAssignDetector (#3996)
2023-05-27 20:24:32 +00:00
Tomas Votruba 1ba4e98604 Updated Rector to commit a73aa4e226b74463ba3025dfe3e8bf11bb07a953
a73aa4e226 [Performance] Reduce resolveClassReflection() on PrivatizeFinalClassPropertyRector (#3994)
2023-05-27 15:56:25 +00:00
Tomas Votruba ea8041895c Updated Rector to commit ebe2a37fe2c0c387e655259548ab7a6f76b3f298
ebe2a37fe2 [Php74][Privatization] Refactor ParentPropertyLookupGuard to use ClassReflection to reduce IO (#3993)
2023-05-27 15:46:25 +00:00
Tomas Votruba 88a00032b7 Updated Rector to commit 754fca568f1d19b792bd5ccd476d10c675ba77f3
754fca568f [Php74] Remove parent attribute on PropertyTypeChangeGuard (#3992)
2023-05-27 12:07:30 +00:00
Tomas Votruba 3ab41786d6 Updated Rector to commit f9f1c269c7cfb02b3a78efca476cb2f189fbb33c
f9f1c269c7 [Php81] Add  flag to only return node on changed params on NewInInitializerRector (#3991)
2023-05-27 11:23:52 +00:00
Tomas Votruba ffca1acc2d Updated Rector to commit e8151293d5a25a776c73dd73eeed461c26dc7e6b
e8151293d5 Remove PARENT_NODE from CatchExceptionNameMatchingTypeRector (#3990)
2023-05-27 10:47:14 +00:00
Tomas Votruba 0256872962 Updated Rector to commit fdf11bab10f9e7e1d63b4e0dba1325b947391e5d
fdf11bab10 Refactor PARENT_NODE from StringClassNameToClassConstantRector (#3989)
2023-05-27 10:40:14 +00:00
Tomas Votruba d48ca72a44 Updated Rector to commit d9908088500d235348a84de13f96823bc03b4706
d990808850 Remove PARENT_NODE from PseudoNamespaceToNamespaceRector (#3988)
2023-05-27 10:31:41 +00:00
Tomas Votruba 3305b77873 Updated Rector to commit 61d780b7491001fa13597795320c9e92f893c50d
61d780b749 add symfony contracts for trigger_deprecation function (#3987)
2023-05-27 10:19:41 +00:00
Tomas Votruba c613309b06 Updated Rector to commit 1e0a1ceb897de085e3b8a68fbf88b4028d2064b0
1e0a1ceb89 Return nodes directly in MoneyFormatToNumberFormatRector (#3986)
2023-05-27 10:18:32 +00:00
Tomas Votruba 466c54de06 Updated Rector to commit 582af523662c9aac2603a1535d58fc932ab1c330
582af52366 Refactor PARENT_NODE from ChangeAndIfToEarlyReturnRector (#3985)
2023-05-27 09:52:50 +00:00
Tomas Votruba 4af8e96d37 Updated Rector to commit 330e1c5845ca7a569840384fa6eb3e730e13df71
330e1c5845 Update dependencies (#3984)
2023-05-27 09:31:07 +00:00
Tomas Votruba eb19a0084e Updated Rector to commit 18d8df639c4376c2784a585eb5deafeda971597e
18d8df639c Refactor away PARENT_NODE from AssignArrayToStringRector (#3983)
2023-05-27 09:26:50 +00:00
Tomas Votruba 2774b5f9dd Updated Rector to commit c70a5b8fdbbb3306603c67a972265872eaa3da2b
c70a5b8fdb Refactor away from PARENT_NODE in ListToArrayDestructRector (#3982)
2023-05-27 08:27:32 +00:00
Tomas Votruba f8cd68d049 Updated Rector to commit 0f412e7961d9c00f47185bd8ed235db950f2d3eb
0f412e7961 handle nested ternary have last and start with () (#3981)
2023-05-27 03:12:54 +00:00
Tomas Votruba d9bf6b5c97 Updated Rector to commit 0f412e7961d9c00f47185bd8ed235db950f2d3eb
0f412e7961 handle nested ternary have last and start with () (#3981)
2023-05-27 03:07:15 +00:00
Tomas Votruba c9d2c84bc5 Updated Rector to commit 385a9cb5f1235808c7226c2efccdc10fc6de6542
385a9cb5f1 [Php74] Skip parenthesize ternary if on ParenthesizeNestedTernaryRector (#3980)
2023-05-27 00:03:37 +00:00
Tomas Votruba 3267b9499d Updated Rector to commit 385a9cb5f1235808c7226c2efccdc10fc6de6542
385a9cb5f1 [Php74] Skip parenthesize ternary if on ParenthesizeNestedTernaryRector (#3980)
2023-05-26 23:56:10 +00:00
Tomas Votruba d3dfbb4638 Updated Rector to commit 2f84187dc1d6db09788adf8346339d6854902db5
2f84187dc1 Remove RenameNamespaceRector, better handle by IDE or explicit RenameClassRector (#3979)
2023-05-26 21:28:23 +00:00
Tomas Votruba 0d04da1bab Updated Rector to commit 33d05d3b9ee7838d254edf58dbd05a355891b48b
33d05d3b9e Refactor RenameVariableToMatchMethodCallReturnTypeRector to StmtsAwareInterface (#3977)
2023-05-26 16:04:15 +00:00
Tomas Votruba d8c877db45 Updated Rector to commit 33d05d3b9ee7838d254edf58dbd05a355891b48b
33d05d3b9e Refactor RenameVariableToMatchMethodCallReturnTypeRector to StmtsAwareInterface (#3977)
2023-05-26 14:00:49 +00:00
Tomas Votruba ce521dbd34 Updated Rector to commit bb3d37ab214177a4e2877a5e0b383d055c62b6ad
bb3d37ab21 Remove ChangeReflectionTypeToStringToGetNameRector as niche and overly detailed, better refactor reflectio na as a whole (#3976)
2023-05-26 13:24:53 +00:00
Tomas Votruba 1539fc211a Updated Rector to commit c1cb710c872d25f5daa3fd085fc24640716a80f4
c1cb710c87 Remove ReservedObjectRector as requires explicit configuration and is handled by RenameClassRector already (#3975)
2023-05-26 13:14:15 +00:00
Tomas Votruba 11b175ef12 Updated Rector to commit 6d4a73ed6e31a7fb64b547edad2270391ef03ca2
6d4a73ed6e Remove PARENT_NODE from ParenthesizeNestedTernaryRector (#3974)
2023-05-26 13:12:31 +00:00
Tomas Votruba 7587e17e7b Updated Rector to commit d8e8a34a606b1e0b0a1a674a4e008822bbedf624
d8e8a34a60 Refactor PARENT_NODE away from EregToPregMatchRector (#3973)
2023-05-26 13:00:21 +00:00
Tomas Votruba af4dc685fb Updated Rector to commit 14fc01359ed4b27798ac64532cb128ab0ad2f32e
14fc01359e Make MysqlAssignToMysqliRector return new stmts directly (#3972)
2023-05-26 12:44:21 +00:00
Tomas Votruba f3a4204585 Updated Rector to commit 6c78d67c41b6445159db4d1c0841d1690d4ac2fe
6c78d67c41 Revert [NodeTypeResolver] Remove parent attribute usage on PHPStanNodeScopeResolver for next UnreachableStatementNode detection (#3970) (#3971)
2023-05-26 10:03:50 +00:00
Tomas Votruba eae5c53485 Updated Rector to commit 265d627ddf7663fe65bfda2aa4cf32fc4a3ba95d
265d627ddf Remove IsObjectOnIncompleteClassRector as blindly turns all incomplete checks to negated, better examine manually (#3969)
2023-05-25 16:35:30 +00:00
Tomas Votruba 2a68777a50 Updated Rector to commit d99713c7d55f25612440948b8a85b5b99e0b0e11
d99713c7d5 [CodingStyle] Remove parent attribute on NewlineAfterStatementRector (#3967)
2023-05-25 15:39:32 +00:00
Tomas Votruba c3d9ce9a50 Updated Rector to commit d279f71da7380aa7a55356c81f798aa56c7644f3
d279f71da7 [CodingStyle] Remove Else as next stmt on NewlineAfterStatementRector (#3966)
2023-05-25 15:31:05 +00:00
Tomas Votruba 48f64cd534 Updated Rector to commit eb463524bc550781d37cb170c416329bfe727992
eb463524bc Remove PARENT_NODE from CountArrayToEmptyArrayComparisonRector (#3965)
2023-05-25 15:20:14 +00:00
Tomas Votruba 3a65d40447 Updated Rector to commit a244917a428baa6fa06fabaa4e0be15fd3154e50
a244917a42 Remove PARENT_NODE from AddReturnTypeDeclarationBasedOnParentClassMethodRector (#3964)
2023-05-25 14:52:36 +00:00
Tomas Votruba 28adaf00cf Updated Rector to commit 041fa832d50b0548594e5f8aa53036b394016c27
041fa832d5 Refactor from PARENT_NODE in RemoveParentCallWithoutParentRector (#3963)
2023-05-25 14:40:36 +00:00
Tomas Votruba 92a1548c49 Updated Rector to commit 8e3620b0fb37f25a4966d9c07b0a55c02814f89c
8e3620b0fb Refactor from PARENT_NODE in PostIncDecToPreIncDecRector (#3962)
2023-05-25 14:00:24 +00:00
Tomas Votruba 0efdb38927 Updated Rector to commit 31712a1a466b4f2f2f83986aa6710405a00b446e
31712a1a46 Refactor from PARENT_NODE in TokenGetAllToObjectRector (#3961)
2023-05-25 13:52:45 +00:00
Tomas Votruba 94c1b64b7e Updated Rector to commit 18ac565714b7b66506a901ed4787d1ffbdd0af2d
18ac565714 Refactor from PARENT_NODE in EncapsedStringsToSprintfRector (#3960)
2023-05-25 13:47:07 +00:00
Tomas Votruba 511b8597e6 Updated Rector to commit fc1fabe1a396339cbf1d9d0346f3f35bc75a33c3
fc1fabe1a3 [PostRector] Remove parent lookup on ClassRenamingPostRector (#3959)
2023-05-25 12:11:39 +00:00
Tomas Votruba f7d28cee5d Updated Rector to commit 794bc8b5484e3eafcc91f85d443f665565c4ad44
794bc8b548 Remove PARENT_NODE from ForeachItemsAssignToEmptyArrayToAssignRector (#3958)
2023-05-25 09:21:23 +00:00
Tomas Votruba 2a39baa0c1 Updated Rector to commit 179b5cba82257fd1d310301679a1913db458809e
179b5cba82 Make ChangeGlobalVariablesToPropertiesRector add properties directly, remove Nette inject methods (#3957)
2023-05-24 18:48:59 +00:00
Tomas Votruba e74948ca4a Updated Rector to commit 69220a7b2d424babad1a6560dc546295d4e9ebe5
69220a7b2d [Traverser] Remove beforeTraverse() in StmtKeyNodeVisitor (#3955)
2023-05-24 15:18:00 +00:00
Tomas Votruba eb3e6c221d Updated Rector to commit ce12406878b202f9ceb1506a546e732ab1ca2716
ce12406878 Remove ChangeReadOnlyVariableWithDefaultValueToConstantRector overly complex and risky, better job for PHPStan (#3954)
2023-05-24 15:09:06 +00:00
Tomas Votruba 7117aa039a Updated Rector to commit c4b524e77a5eccd387d1ebe5b01ab3ae680049a3
c4b524e77a Remove GetAndSetToMethodCallRector, as not practical and used for single legacy job (#3953)
2023-05-24 13:47:55 +00:00
Tomas Votruba 7dcc1f5c95 Updated Rector to commit 7e9ee7afbf04ede850da1639b1b234e4e86730fb
7e9ee7afbf Refactor from PARENT_NODE in AddReturnTypeDeclarationRector (#3952)
2023-05-24 13:42:05 +00:00
Tomas Votruba a1e2ba76d0 Updated Rector to commit 2e80e00913eacfcfded3af426cc7691a58d7f886
2e80e00913 Refactor from PARENT_NODE in AddArrayDefaultToArrayPropertyRector (#3951)
2023-05-24 13:20:51 +00:00
Tomas Votruba 06e1c20df4 Updated Rector to commit 49561b6c81580ca995de4a8a00184f6935bec7db
49561b6c81 Refactor PARENT_NODE away from ParamTypeFromStrictTypedPropertyRector (#3950)
2023-05-24 13:12:14 +00:00
Tomas Votruba bddc5333e6 Updated Rector to commit 11e6796c0044a9217aed0c725e4b0f7c5767cb22
11e6796c00 Remove PARENT_NODE from FuncGetArgsToVariadicParamRector (#3949)
2023-05-24 13:08:24 +00:00
Tomas Votruba 26ac08e306 Updated Rector to commit fa6f1f67578dbe765fc13abaa294e0f62e66d4a8
fa6f1f6757 [CodeQuality] Remove ExplicitMethodCallOverMagicGetSetRector designed for nette smart object migration only, not useful for general projects (#3948)
2023-05-24 12:27:19 +00:00
Tomas Votruba 50ec3d44e9 Updated Rector to commit eef0e5d1f47500c9f56c5ccaa16523b11b47c8a7
eef0e5d1f4 Refactor PARENT_NODE away from JoinStringConcatRector (#3947)
2023-05-24 12:18:40 +00:00
Tomas Votruba 1f89bb9561 Updated Rector to commit c050b66f9b9812f8f7735673e651deaccded0071
c050b66f9b Refactor PARENT_NODE away from ListEachRector (#3946)
2023-05-24 10:04:51 +00:00
Tomas Votruba 13cb0fa921 Updated Rector to commit 279126145e995c4d0b39a60bd6fc5fff5799199e
279126145e Refactor PARENT_NODE away from UnsetCastRector (#3945)
2023-05-24 09:42:43 +00:00
Tomas Votruba d7eced92e2 Updated Rector to commit c504b2f11f2b732a744ad804b3a4b5afc30e2841
c504b2f11f Refactor PARENT_NODE away from GetClassOnNullRector (#3944)
2023-05-24 09:36:58 +00:00
Tomas Votruba a32354e5eb Updated Rector to commit 3eadce164860c1d4465e40fd5e07fb11d3aa1b99
3eadce1648 [NodeTypeResolver] Reduce parent attribute usage on PHPStanNodeScopeResolver (#3943)
2023-05-24 04:20:01 +00:00
Tomas Votruba 5f32b6989a Updated Rector to commit 62ecc9028796457cc58e717ac50c9d2cc5339b17
62ecc90287 [DeadCode] Skip assign closure bind by reference on RemoveUnusedVariableAssignRector (#3942)
2023-05-24 02:50:28 +00:00
Tomas Votruba f45c2e9273 Updated Rector to commit a354edaa5547f63a3407f3155e696f2709f4231a
a354edaa55 [DeadCode][Php56] Handle infinite loop on RemoveUnusedVariableAssignRector+AddDefaultValueForUndefinedVariableRector take 2 (#3941)
2023-05-24 02:18:56 +00:00
Tomas Votruba f7fccae5ba Updated Rector to commit e04e51c25d95e3b2133adca5f01f8e7e002534af
e04e51c25d [DeadCode][Php56] Handle infinite loop on RemoveUnusedVariableAssignRector+AddDefaultValueForUndefinedVariableRector (#3940)
2023-05-23 22:15:37 +00:00
Tomas Votruba 31acf8cd20 Updated Rector to commit 5cd8ac7e0ef22955fc9db7ff6ac6c34e38217d85
5cd8ac7e0e [Parser] Allow to get next of just changed node to new node by map stmt_key directly on AbstractRector for single node return (#3939)
2023-05-23 16:54:12 +00:00
Tomas Votruba b1c6bc3189 Updated Rector to commit 3f0b5649057005937557917b39212c3a6ac4343d
3f0b564905 [Traverser] Refactor set stmt_key set 0 for Else_, ElseIf, Catch_, Finally_, removing tweak start token pos on BetterNodeFinder (#3934)
2023-05-23 16:30:10 +00:00
Tomas Votruba a9dddd2b37 Updated Rector to commit fe7b5cd28f2333a07b22ddd955d693ebfbc44344
fe7b5cd28f Remove PARENT_NODE from AddVoidReturnTypeWhereNoReturnRector (#3938)
2023-05-23 14:21:41 +00:00
Tomas Votruba 22d4bdfac5 Updated Rector to commit d031c059eb2b7b07bbf9609b4eee0b6b895a4095
d031c059eb Remove PARENT_NODE from RemoveJustPropertyFetchRector (#3937)
2023-05-23 14:08:54 +00:00
Tomas Votruba 62ef1326dc Updated Rector to commit 8a74ea74d5501f5f850632c834878468eaa39b8e
8a74ea74d5 [DeadCode] Remove RemoveDuplicatedInstanceOfRector as hardly practical (#3936)
2023-05-23 13:59:54 +00:00
Tomas Votruba ee06436c96 Updated Rector to commit d603b00818cfabc8aa1699b1154145e68bdb60a0
d603b00818 Remove PARENT_NODE from RemoveUnusedVariableAssignRector (#3935)
2023-05-23 13:36:55 +00:00
Tomas Votruba ad4182dc96 Updated Rector to commit 8f3569e84677b4a29feb0af0788a0156086f921f
8f3569e846 [DeadCode][CodeQuality] Fix infinite loop on RemoveUnusedVariableAssignRector+SimplifyIfElseToTernaryRector (#3933)
2023-05-22 18:59:06 +00:00
Tomas Votruba 71d07f8bbf Updated Rector to commit 6e88b21cfdbf459d4c2b4c97c0db2c9b2d90b572
6e88b21cfd Remove PARENT_NODE from RemoveEmptyMethodCallRector (#3932)
2023-05-22 14:37:37 +00:00
Tomas Votruba 410006adf0 Updated Rector to commit 4793a0d4c1294645177a18710667c7b35bcaaca3
4793a0d4c1 [CodingStyle] Skip jump change variable name on CatchExceptionNameMatchingTypeRector (#3931)
2023-05-22 14:28:10 +00:00
Tomas Votruba bbd4807a0e Updated Rector to commit 88f17e9bb640c69d6b8ef31c6901ac71e2214c0d
88f17e9bb6 Remove array function from RemoveEmptyMethodCallRector as too narrow (#3930)
2023-05-22 14:16:43 +00:00
Tomas Votruba 215231b596 Updated Rector to commit 112e490e3ca0d5949c97189c31fd4aef8833cfc1
112e490e3c Remove PARENT_NODE from CatchExceptionNameMatchingTypeRector (#3929)
2023-05-22 14:09:12 +00:00
Tomas Votruba ed0c750f6e Updated Rector to commit 26b32be535516bf80da94b85b2172b2ac64f9a7c
26b32be535 Remove PARENT_NODE from StringClassNameToClassConstantRector (#3928)
2023-05-22 13:58:34 +00:00
Tomas Votruba 96fc00fd8e Updated Rector to commit 3c69a0f9d7b075cef7e0e382eee94234f3629efa
3c69a0f9d7 Remove AddPregQuoteDelimiterRector as very narrow area and has not context awareness, better handle manually (#3927)
2023-05-22 13:43:31 +00:00
Tomas Votruba 5f824909cb Updated Rector to commit 79ffda7d8537ca6b04e14082bd9f0091fb97215d
79ffda7d85 Remove PARENT_NODE from CountOnNullRector (#3924)
2023-05-22 13:31:04 +00:00
Tomas Votruba 8724ff4d63 Updated Rector to commit 392d81f7b01253711f7aa48344673b5f01b1c325
392d81f7b0 [DeadCode] Remove RemoveDuplicatedIfReturnRector as can lead to unexpeced consequences, better use static analysis and contextual handling (#3926)
2023-05-22 13:11:03 +00:00
Tomas Votruba 325ed23768 Updated Rector to commit c5196d467d772a84590cc08909d01ae68409dbd4
c5196d467d Fix PrivatesAccessor: use selectFromArgs() instead (#3923)
2023-05-22 10:28:27 +00:00
Tomas Votruba 7eb9eec801 Updated Rector to commit 6c3f2cdf953587cdf0945c7fb6c05fd0083c25fc
6c3f2cdf95 [DX] Deprecate parent node attribute, allow return of NodeTraverser::* in refactor() method (#3922)
2023-05-22 10:21:31 +00:00
Tomas Votruba 88a767b244 Updated Rector to commit 71f00d95fc16f31f7af4a524d5e179f467089e16
71f00d95fc [1.0] Replace NodeConnectingVisitor with ParentConnectingVisitor (#3900)
2023-05-22 08:41:41 +00:00
Tomas Votruba f6d5507bbf Updated Rector to commit d90c645a1fbe976efee82c32fd6a5a021c33645a
d90c645a1f [DX] Try removing resolved name attribute, as namespacedName is already part of named nodes (#3921)
2023-05-22 08:26:02 +00:00
Tomas Votruba 60fec4c15c Updated Rector to commit 44735d3f2451e4c27ea85d1bc3052e06f8ed703c
44735d3f24 [ci] split rules tests to code quality, type declaration and dead-code to speed up (#3920)
2023-05-22 08:03:15 +00:00
Tomas Votruba e59b9e0910 Updated Rector to commit a813b1747dc78a40a22c993b1d8ebbc47e261298
a813b1747d Remove ChangeOrIfReturnToEarlyReturnRector as makes code harder to read by duplication, rather use PHSPtan and extract method (#3916)
2023-05-22 07:55:47 +00:00
Tomas Votruba 060e167ec1 Updated Rector to commit edc60fc2e9b431a69b66eac9318e9af3eb340d84
edc60fc2e9 [Traverser] Using bool value for assigned_to attribute on variable assign (#3918)
2023-05-22 07:35:57 +00:00
Tomas Votruba bd8dcc9cae Updated Rector to commit 33c04c5c90725b36c864cfc86c5491f8d6912396
33c04c5c90 [DeadCode] Remove next attribute on RemoveUnusedVariableAssignRector (#3917)
2023-05-21 22:39:40 +00:00
Tomas Votruba aa57f0b8dc Updated Rector to commit 8ec3a2722663bd6cc8e5d0714178ba03bc43056f
8ec3a27226 [1.0] Add public method BetterNodeFinder::resolvePreviousNode() and BetterNodeFinder::resolveNextNode() (#3896)
2023-05-21 22:28:59 +00:00
Tomas Votruba ab18d95c87 Updated Rector to commit e1f19806fb24f507172f8e8b17ebd51c159b3fe6
e1f19806fb Remove NEXT_NODE from SimplifyIfReturnBoolRector (#3915)
2023-05-21 15:34:58 +00:00
Tomas Votruba 0693ebbfc2 Updated Rector to commit a87a9d8e026c3499c980facf1bf24bd51b69c924
a87a9d8e02 Remove NEXT_NODE from ChangeIfElseValueAssignToEarlyReturnRector (#3914)
2023-05-21 15:26:41 +00:00
Tomas Votruba fce66262b4 Updated Rector to commit 46f5209563e77fb36fe1b04749419fb258e9d710
46f5209563 Remove NEXT_NODE dependency in ChangeAndIfToEarlyReturnRector, narrow to only closed scope function likes (#3913)
2023-05-21 15:18:02 +00:00
Tomas Votruba c1e94593a2 Updated Rector to commit a87a9d8e026c3499c980facf1bf24bd51b69c924
a87a9d8e02 Remove NEXT_NODE from ChangeIfElseValueAssignToEarlyReturnRector (#3914)
2023-05-21 15:17:01 +00:00
Tomas Votruba 63128d63b6 Updated Rector to commit 26ca0e49ec38adfbff5432e3e0184a8f64c6176d
26ca0e49ec [Parser] Fix Expr on edge Stmt start/end token detection on BetterNodeFinder (#3912)
2023-05-21 14:46:45 +00:00
Tomas Votruba 5678d14ccc Updated Rector to commit b1d123cf565cd0dcf011249ef535f3604f7ea2d6
b1d123cf56 Revert tweak start token pos compare  (#3911)
2023-05-21 14:18:15 +00:00
Tomas Votruba 1eed4009a2 Updated Rector to commit 1adea7295ddcdf79c0ee5c2859e42cbabb32f26b
1adea7295d [automated] Re-Generate Nodes/Rectors Documentation (#3909)
2023-05-21 00:34:59 +00:00
Tomas Votruba d41cd2c891 Updated Rector to commit 6e9310b65c1139a8102ed7aab73b658ba5f97c83
6e9310b65c [automated] Apply Coding Standard (#3910)
2023-05-21 00:33:57 +00:00
Tomas Votruba dde8a00cee Updated Rector to commit b68e7e6f3672aa35776dd9a2ff829bf735d2a1f5
b68e7e6f36 [automated] Re-Generate preload.php (#3908)
2023-05-21 00:33:23 +00:00
Tomas Votruba bd4da5b387 Updated Rector to commit 78c35a0f724f7c6088ba39156dda4673deeab171
78c35a0f72 [Parser] Cover faster edge Expr in first token or end token of Stmt (#3907)
2023-05-21 00:02:07 +00:00
Tomas Votruba 5bec307b19 Updated Rector to commit 32d2eed8a6e9cac8db8defe4a822f0d7b44bc6d8
32d2eed8a6 [Parser] Clean up BetterNodeFinder::findFirstInTopLevelStmtsAware() param type (#3906)
2023-05-20 23:48:41 +00:00
Tomas Votruba d3b93de97f Updated Rector to commit 20fce3b76e3e6bbe510b79e11387831854b6cc3d
20fce3b76e [Parser] Allow resolve next/prev stmt inside ClassLike or Declare_ on BetterNodeFinder (#3905)
2023-05-20 23:37:39 +00:00
Tomas Votruba c1ef3ac6b3 Updated Rector to commit 974a1bed608c4dedb4190e5fae4760c0d9bdfc72
974a1bed60 [Traverser] Clean up nullable stmt_key check on BetterNodeFinder::resolveNeighborNextStmt() take 2 (#3904)
2023-05-20 19:24:20 +00:00
Tomas Votruba d597a0e3f6 Updated Rector to commit 6b20ed1b7507740b9568ef1b6cec125849172f9e
6b20ed1b75 [Traverser] Clean up: Remove afterTraverse() on StmtKeyNodeVisitor (#3903)
2023-05-20 17:12:03 +00:00
Tomas Votruba cb0cb645f5 Updated Rector to commit e26c80b297515d924f61ed8518a42cdcbe666e19
e26c80b297 [Traverser] Clean up FileWithoutNamespace check on StmtKeyNodeVisitor.php (#3901)
2023-05-20 15:16:20 +00:00
Tomas Votruba 6404cf85e9 Updated Rector to commit b5807b7bb1d2decb69755554a118f44ee5983fbb
b5807b7bb1 [Parser] Fix key negative on BetterNodeFinder locate stmt on FileWithoutNamespace lookup Declare_ (#3899)
2023-05-19 17:48:51 +00:00
Tomas Votruba c6385617d2 Updated Rector to commit a4d6d414fb2f6ce98c792178895ab01664fab358
a4d6d414fb [TypeDeclaration] Add BoolReturnTypeFromStrictScalarReturnsRector (#3898)
2023-05-19 15:03:57 +00:00
Tomas Votruba b2768ca2ed Updated Rector to commit 11b94117e5e915866695379b12dbb5cab0f90b79
11b94117e5 [Parser] Handle just removed stmt on BetterNodeFinder::resolveNodeFromFile() as fall for get next stmt (#3897)
2023-05-19 13:48:58 +00:00
Tomas Votruba 6f986503de Updated Rector to commit 5b990ff50f851726e5d3a28590572c8e3f99bb04
5b990ff50f Bump symplify/phpstan-rules deps (#3894)
2023-05-19 13:30:27 +00:00
Tomas Votruba 4d2dd37572 Updated Rector to commit e6d869b35e2e5785d8691408b490fa6283abb784
e6d869b35e [Parser] Using resolveNeighborNextStmt() in resolveNextNodeFromOtherNode() as well on BetterNodeFinder (#3895)
2023-05-19 12:24:31 +00:00
Tomas Votruba d9f7fc972a Updated Rector to commit f24703ec719c78e87fc75cdbe6e7eadde51dfde9
f24703ec71 [Parser] Avoid infinite loop due search fallback inline next on BetterNodeFinder (#3893)
2023-05-19 12:06:28 +00:00
Tomas Votruba 51a6ca5220 Updated Rector to commit aef093ee8a5a19bb1351345770ac761ae9e0f655
aef093ee8a [Traverser] Remove next attribute in BetterNodeFinder (#3887)
2023-05-19 11:20:36 +00:00