Commit Graph

2314 Commits

Author SHA1 Message Date
Tomas Votruba
e1b8b2e468 Updated Rector to commit 81ba0c90bd
81ba0c90bd [Scoper] Remove PHPStanStubLoader: move to dedicated file to define native classes (#2249)
2022-05-07 09:29:04 +00:00
Tomas Votruba
2786be52f6 Updated Rector to commit c2ade0583c
c2ade0583c [DX] Refactor ChangeNestedIfsToEarlyReturnRector to direct return (#2250)
2022-05-07 09:28:12 +00:00
Tomas Votruba
755d463439 Updated Rector to commit 1f6c7a6a20
1f6c7a6a20 [Scoper] Clean up bootstrap.php: move enum definitions to dedicated file and require in BootstrapFilesIncluder (#2248)
2022-05-07 08:49:37 +00:00
Tomas Votruba
3178565814 Updated Rector to commit b54fb77073
b54fb77073 [Scoper] Remove PHPStanStubLoader->loadStubs() call on config-downgrade (#2247)
2022-05-07 07:13:23 +00:00
Tomas Votruba
24318b9a19 Updated Rector to commit 26cad67b1c
26cad67b1c [CodingStyle] Clean up getParents() call on MakeInheritedMethodVisibilitySameAsParentRector (#2246)
2022-05-07 00:18:08 +00:00
Tomas Votruba
010ad20f65 Updated Rector to commit 6d814fb385
6d814fb385 Refactor DowngradePipeToMultiCatchExceptionRector to work directly with stmts (#2245)
2022-05-06 22:55:21 +00:00
Tomas Votruba
6a2c9a5de2 Updated Rector to commit 176d6d7e2a
176d6d7e2a Refactor ChangeAndIfToEarlyReturnRector to work with stmts (#2244)
2022-05-06 22:31:31 +00:00
Tomas Votruba
7885ef1835 Updated Rector to commit 712237ec22
712237ec22 Error message improvements (#2242)
2022-05-06 07:42:42 +00:00
Tomas Votruba
a548c62cde Updated Rector to commit ede1106a69
ede1106a69 [DX] Improve DowngradeCatchThrowableRector to return nodes directly (#2241)
2022-05-06 07:17:49 +00:00
Tomas Votruba
c3266af645 Updated Rector to commit 74b404e1d1
74b404e1d1 [DX] Change SplitListAssignToSeparateLineRector to direct return (#2240)
2022-05-05 18:07:01 +00:00
Tomas Votruba
d59bf7cd51 Updated Rector to commit 561e3963e1
561e3963e1 Use refactorWithScope() in MakeInheritedMethodVisibilitySameAsParentRector (#2236)
2022-05-05 17:42:23 +00:00
Tomas Votruba
7242caf99b Updated Rector to commit 7f5acb613b
7f5acb613b [Core] Add BetterNodeFinder::findFirstInlinedPrevious() (#2238)
2022-05-05 13:58:33 +00:00
Tomas Votruba
29c4bbb97a Updated Rector to commit aa6524e842
aa6524e842 [Core] Improve PropertyFetchAnalyzer::PropertyFetchAnalyzer() to check against Variable and Name (#2237)
2022-05-05 10:19:49 +00:00
Tomas Votruba
4b66436386 Updated Rector to commit d8c523625c
d8c523625c Various property + class context improvements (#2234)
2022-05-05 09:39:03 +00:00
Tomas Votruba
b674e4a170 Updated Rector to commit 4701b70f5a
4701b70f5a Clean up ComplexNodeRemover::resolvePropertyFetchFromDimFetch() (#2235)
2022-05-05 09:37:41 +00:00
Tomas Votruba
07a94318c5 Updated Rector to commit a19b983ce9
a19b983ce9 [DeadCode] Add StaticPropertyFetch removal support on RemoveUnusedPrivatePropertyRector (#2233)
2022-05-05 08:58:28 +00:00
Tomas Votruba
427d04477e Updated Rector to commit 3184d55477
3184d55477 [DX] Use direct return of multi nodes instead of 2 addNode before/after node (#2232)
2022-05-05 08:32:20 +00:00
Tomas Votruba
2c62b5ccdc Updated Rector to commit dd178deaa6
dd178deaa6 [DeadCode] Do not remove unused param in middle on RemoveUnusedConstructorParamRector (#2231)
2022-05-05 07:46:45 +00:00
Tomas Votruba
a2cfc4196f Updated Rector to commit 0175838a0c
0175838a0c [DX] Cleanup ComplexNodeRemover (#2230)
2022-05-05 06:11:24 +00:00
Tomas Votruba
975a637463 Updated Rector to commit 2d16736414
2d16736414 [DX] Remove poorly designed NodeToReplacePostRector, return changed nodes directly in the current rule (#2229)
2022-05-04 22:24:14 +00:00
Tomas Votruba
ebc3a0684d Updated Rector to commit 767e7692e1
767e7692e1 [Experimental] Add refactorWithScope() method to get typed Scope easily and required (#2227)
2022-05-04 15:20:50 +00:00
Tomas Votruba
770e1b0adc Updated Rector to commit 267d27bcd7
267d27bcd7 [Test] Remove PHPStanStubLoader::loadStubs() and require constants in tests bootstrap (#2228)
2022-05-04 13:49:45 +00:00
Tomas Votruba
476869ebf4 Updated Rector to commit 129ce269d3
129ce269d3 [Core] Use ReflectionResolver to get ClassReflection when possible (#2226)
2022-05-04 10:46:11 +00:00
Tomas Votruba
b11fa96b09 Updated Rector to commit 6327904617
6327904617 [CodingStyle] Skip override parent method on UnSpreadOperatorRector (#2223)
2022-05-04 07:09:23 +00:00
Tomas Votruba
1427924159 Updated Rector to commit 04914020bd
04914020bd [CodingStyle] Skip escaped quote on ConsistentPregDelimiterRector (#2225)
2022-05-04 06:58:31 +00:00
Tomas Votruba
f9a908d40c Updated Rector to commit e978256f4d
e978256f4d [TypeDeclaration] Skip array key with null coalescing return mixed on ReturnAnnotationIncorrectNullableRector (#2224)
2022-05-04 06:58:03 +00:00
Tomas Votruba
b4902f9b94 Updated Rector to commit 6327904617
6327904617 [CodingStyle] Skip override parent method on UnSpreadOperatorRector (#2223)
2022-05-04 06:57:15 +00:00
Tomas Votruba
128aa6dc82 Updated Rector to commit 7209b23341
7209b23341 [Php73] Skip both reset and key assigned on ArrayKeyFirstLastRector (#2219)
2022-05-04 00:06:05 +00:00
Tomas Votruba
467291c58c Updated Rector to commit 0052951dd0
0052951dd0 Bump Symplify and PHPStan rules version (#2218)
2022-05-03 15:01:15 +00:00
Tomas Votruba
80c29bac02 Updated Rector to commit c4e1ee2b3e
c4e1ee2b3e Added new functions to NullToStrictStringFuncCallArgRector (#2217)
2022-05-03 12:09:48 +00:00
Tomas Votruba
a7f83696f3 Updated Rector to commit f1dba8825b
f1dba8825b Remove Php71 comment reference on config-downgrade (#2216)
2022-05-02 22:39:25 +00:00
Tomas Votruba
75c03b0c52 Updated Rector to commit 4c3bf6f92a
4c3bf6f92a [Core] Make BetterNodeFinder::findFirstPrevious() consistent with findFirstNext() (#2215)
2022-05-02 14:19:56 +00:00
Tomas Votruba
485db1ca52 Updated Rector to commit 6bb8973182
6bb8973182 [NodeNestingScope] Remove ScopeAwareNodeFinder::findParentType (#2214)
2022-05-02 13:55:46 +00:00
Tomas Votruba
9dacdb4abb Updated Rector to commit 464b74c40d
464b74c40d [Core] Merge BetterNodeFinder findFirstPreviousOfNode() with findFirstPrevious() (#2213)
2022-05-02 12:45:52 +00:00
Tomas Votruba
d71e817365 Updated Rector to commit 992d1efc75
992d1efc75 [CodeQuality] Skip CallableThisArrayToAnonymousFunctionRector when inside of Attribute (#2212)
2022-05-02 09:44:00 +00:00
Tomas Votruba
79315b7df2 Updated Rector to commit 1c828eea13
1c828eea13 work around bug with autoload collistion with custom PHPStan rule test
2022-05-01 18:14:46 +00:00
Tomas Votruba
690b31768b Rector 0.12.23 2022-05-01 15:50:16 +00:00
Tomas Votruba
4285b35dbb Updated Rector to commit d5c927a40c
d5c927a40c fix comment (#2210)
2022-05-01 15:01:32 +00:00
Tomas Votruba
3ec2143b04 Updated Rector to commit 22bdd60e18
22bdd60e18 [Code] Improve BetterNodeFinder::findFirstPrevious() to only locate previous of parent if no previous of Node (#2209)
2022-05-01 13:59:43 +00:00
Tomas Votruba
27785851ec Updated Rector to commit 029820474c
029820474c [Naming] Improve UseImportsResolver to locate inlined Stmt (#2205)
2022-05-01 07:34:56 +00:00
Tomas Votruba
4b7ca796b9 Updated Rector to commit 039181ac6c
039181ac6c [DeadCode] Remove RemoveCodeAfterReturnRector, already handled at RemoveUnreachableStatementRector (#2199)
2022-05-01 05:55:37 +00:00
Tomas Votruba
0263197624 Updated Rector to commit 3f1f632c04
3f1f632c04 [automated] Apply Coding Standard (#2204)
2022-05-01 00:51:36 +00:00
Tomas Votruba
fe9dc1c27f Updated Rector to commit 1ff8eea8be
1ff8eea8be [DowngradePhp80] Support match as array item in DowngradeMatchToSwitchRector (#2178)
2022-04-30 21:35:42 +00:00
Tomas Votruba
905102ea3a Updated Rector to commit c8b47df3e4
c8b47df3e4 [Core] Remove loop on FilesFinder::findInDirectoriesAndFiles() (#2201)
2022-04-30 07:28:26 +00:00
Tomas Votruba
bd675463e2 Updated Rector to commit f30523f982
f30523f982 [Code] Rename IfManipulator->createIfExpr() to IfManipulator->createIfStmt() (#2202)
2022-04-30 06:43:47 +00:00
Tomas Votruba
7a30fbb500 Updated Rector to commit c8b47df3e4
c8b47df3e4 [Core] Remove loop on FilesFinder::findInDirectoriesAndFiles() (#2201)
2022-04-30 06:41:39 +00:00
Tomas Votruba
a36b608f99 Updated Rector to commit e782cccb55
e782cccb55 [CodingStyle] Clean up spl_object_hash() check on NewlineAfterStatementRector (#2203)
2022-04-30 06:40:36 +00:00
Tomas Votruba
934d528ddf Updated Rector to commit 6063b59cde
6063b59cde [Php74] Refactor MakePropertyTypedGuard to check directly on ClassReflection instead of lookup parent to get class (#2197)
2022-04-29 15:03:28 +00:00
Tomas Votruba
d9f463102f Updated Rector to commit dbc2638e42
dbc2638e42 [Php74][TypeDeclaration] Document for INLINE_PUBLIC constant set to false by default allow change protected on final with extends as far as property and/or its usage only in current class (#2198)
2022-04-29 14:53:32 +00:00
Tomas Votruba
639bf5c5d4 Updated Rector to commit 6063b59cde
6063b59cde [Php74] Refactor MakePropertyTypedGuard to check directly on ClassReflection instead of lookup parent to get class (#2197)
2022-04-29 14:53:17 +00:00
Tomas Votruba
db5c2a597b Updated Rector to commit 3e685a63ee
3e685a63ee [CodingStyle] Skip readonly type property on AddArrayDefaultToArrayPropertyRector (#2196)
2022-04-29 13:52:53 +00:00
Tomas Votruba
2619fc49bc Updated Rector to commit b33f8a529d
b33f8a529d [DeadCode] Register array_splice into impure functions on PureFunctionDetector (#2194)
2022-04-29 06:51:26 +00:00
Tomas Votruba
0ab11406b4 Updated Rector to commit 4d7c087805
4d7c087805 [DeadCode] Improve RemoveUnreachableStatementRector performance by return after array_splice early (#2193)
2022-04-29 06:42:11 +00:00
Tomas Votruba
af9fe53cfa Updated Rector to commit c411410fa5
c411410fa5 [Core] Move parent instanceof Node check on BetterNodeFinder::findParentType() inside do { } while condition (#2190)
2022-04-28 22:02:20 +00:00
Tomas Votruba
2539f83cf3 Updated Rector to commit 8332d8cc10
8332d8cc10 remove unused unwrapExpression(), use direct instanceof compare instead (#2186)
2022-04-28 21:56:13 +00:00
Tomas Votruba
954555d0df Updated Rector to commit c411410fa5
c411410fa5 [Core] Move parent instanceof Node check on BetterNodeFinder::findParentType() inside do { } while condition (#2190)
2022-04-28 21:55:05 +00:00
Tomas Votruba
fc5bf77719 Updated Rector to commit fb722fc4ce
fb722fc4ce [Core] Direct anonymous class check on BetterNodeFinder::findFirstNonAnonymousClass() (#2191)
2022-04-28 21:52:06 +00:00
Tomas Votruba
23db732224 Updated Rector to commit b4a1edfb88
b4a1edfb88 [DeadCode] Add empty and multi stmts support on RemoveAlwaysTrueIfConditionRector (#2192)
2022-04-28 21:50:14 +00:00
Tomas Votruba
19ffa21a89 Updated Rector to commit a218dda059
a218dda059 [DX] Move PhpVersionProvider from AbstractRector to particular services (#2189)
2022-04-28 20:11:07 +00:00
Tomas Votruba
7010e0938e Updated Rector to commit 680e8a1e3d
680e8a1e3d [Core] Add , , and  parameters to RectorConfig::parallel() method (#2188)
2022-04-28 18:36:02 +00:00
Tomas Votruba
3d30a34d24 Updated Rector to commit b055a88927
b055a88927 Add RectorConfigProvider to ask for configuration behave for 3rd party packages (#2187)
2022-04-28 17:21:22 +00:00
Tomas Votruba
0b4c6251c0 Updated Rector to commit b061dcdcf3
b061dcdcf3 [scoped] skip parameter provider class
2022-04-28 16:26:19 +00:00
Tomas Votruba
393ac88168 Updated Rector to commit de1d8592a9
de1d8592a9 Avoid scoping parameter provider to re-use, remove it from AbstractRector to ease the dependency tree (#2185)
2022-04-28 16:24:51 +00:00
Tomas Votruba
52322b58c1 Updated Rector to commit 8272c42bfa
8272c42bfa fix cs
2022-04-28 16:24:38 +00:00
Tomas Votruba
5a33df6c4f Updated Rector to commit 93030d3ef7
93030d3ef7 skip empty dim fetch (#2184)
2022-04-28 15:28:06 +00:00
Tomas Votruba
e6d9de7fba Updated Rector to commit 08bb10de6b
08bb10de6b [CodeQuality] Add InlineArrayReturnAssignRector (#2183)
2022-04-28 14:55:01 +00:00
Tomas Votruba
0e76f19491 Rector 0.12.22 2022-04-27 22:44:46 +00:00
Tomas Votruba
3912bd3674 Updated Rector to commit aa89fde52b
aa89fde52b link the token
2022-04-27 22:40:38 +00:00
Tomas Votruba
152dec0c68 Updated Rector to commit 0f83ac3c87
0f83ac3c87 [Doctrine][Nette][TypeDeclaration] Handle add __construct with no Scope on InitializeDefaultEntityCollectionRector+RenderMethodParamToTypeDeclarationRector (#2180)
2022-04-27 14:52:56 +00:00
Tomas Votruba
33e9a631fe Updated Rector to commit 80df62821f
80df62821f [Doc] Document deprecated USE_NODES and CURRENT_STATEMENT constant to use existing method call when needed (#2181)
2022-04-27 14:50:11 +00:00
Tomas Votruba
2e00657da7 Updated Rector to commit 4fea4e23b9
4fea4e23b9 [TypeDeclaration] Skip return type defined Closure on ReturnTypeDeclarationRector (#2179)
2022-04-27 13:37:37 +00:00
Tomas Votruba
127b77fdf0 Updated Rector to commit ae45be1cf3
ae45be1cf3 [DX] Add note warning about using old config (#2174)
2022-04-26 23:02:07 +00:00
Tomas Votruba
e0d9ac9eb0 Updated Rector to commit 7fb8254c23
7fb8254c23 Adds test for DowngradeMatchToSwitchRector match having true subject expression (#2176)
2022-04-26 22:43:42 +00:00
Tomas Votruba
e5c8dfa7cf Updated Rector to commit c5c620aa1a
c5c620aa1a [DowngradePhp80] Add Static Call Support on DowngradeMatchToSwitchRector (#2175)
2022-04-26 20:58:13 +00:00
Tomas Votruba
523a714661 Updated Rector to commit 6680bd8412
6680bd8412 DowngradeMatchToSwitchRector adds Method and Function call support (#2173)
2022-04-26 16:47:55 +00:00
Tomas Votruba
c7ca691738 Updated Rector to commit ba29e3fd5f
ba29e3fd5f Re-use name scope (#2171)
2022-04-26 13:03:56 +00:00
Tomas Votruba
63f8af346b Updated Rector to commit 588470337e
588470337e Failing Tests for DowngradeMatchToSwitchRector (#2114)
2022-04-26 08:17:16 +00:00
Tomas Votruba
5147929731 Updated Rector to commit 43aa4d91f7
43aa4d91f7 Add SameNamespacedTypeSpecifier (#2169)
2022-04-26 08:13:18 +00:00
Tomas Votruba
99b901c127 Updated Rector to commit 148dda778c
148dda778c Narrow to FQN (#2168)
2022-04-25 23:28:04 +00:00
Tomas Votruba
a71b4168c5 Updated Rector to commit 38e1f8a450
38e1f8a450 Remove NamespaceNodeVisitor (#2167)
2022-04-25 22:12:26 +00:00
Tomas Votruba
6b472ba52b Updated Rector to commit 88cfff17ba
88cfff17ba [TypeDeclaration] Use ParentPropertyLookupGuard on TypedPropertyFromStrictGetterMethodReturnTypeRector (#2166)
2022-04-25 19:20:08 +00:00
Tomas Votruba
e3ae598c02 Updated Rector to commit f7b095495b
f7b095495b Remove last USE_NODE (#2165)
2022-04-25 16:12:00 +00:00
Tomas Votruba
18c61e765a Updated Rector to commit 25e6b17a86
25e6b17a86 Remove USE_NODES from ObjectTypeSpecifier::matchShortenedObjectType() (#2164)
2022-04-25 10:15:48 +00:00
Tomas Votruba
d931048bad Updated Rector to commit 4b0d9e2c3d
4b0d9e2c3d remove USE_NODES from matchAliasedObjectType (#2163)
2022-04-25 09:09:11 +00:00
Tomas Votruba
8b3f1ca9f2 Updated Rector to commit bc39917aba
bc39917aba Remove USE_NODES from UseNodesToAddCollector (#2162)
2022-04-25 08:57:07 +00:00
Tomas Votruba
6a025e705f Updated Rector to commit 893c948a62
893c948a62 Remove USE_NODES from NameScopeFactory (#2161)
2022-04-25 08:36:39 +00:00
Tomas Votruba
ef4b5c7262 Updated Rector to commit 57b835b5d0
57b835b5d0 Make ClassRenamer use UseImportsResolver (#2160)
2022-04-25 08:34:54 +00:00
Tomas Votruba
c78996f799 Updated Rector to commit 2447c3155b
2447c3155b Cleanup (#2159)
2022-04-25 08:28:43 +00:00
Tomas Votruba
0fcbb82b6e Updated Rector to commit 4981ebea25
4981ebea25 Move FileWithoutNamespaceNodeTraverser outside RectorNodeTraverser (#2158)
2022-04-25 08:23:08 +00:00
Tomas Votruba
c6a4383d80 Updated Rector to commit 69de62a1d8
69de62a1d8 disable StatementNodeVisitor (#2154)
2022-04-25 08:05:28 +00:00
Tomas Votruba
f27b77df88 Updated Rector to commit 90dae505af
90dae505af Remove uses nodes attribute - part #1 (#2155)
2022-04-25 07:10:07 +00:00
Tomas Votruba
e7c3ff4e4f Updated Rector to commit f0223b6329
f0223b6329 remove current stmts (#2151)
2022-04-24 22:09:06 +00:00
Tomas Votruba
0e0fc76d65 Updated Rector to commit 07ab4e0325
07ab4e0325 [Php74] Allow change protected property of final class when property only in current class on TypedPropertyRector (#2153)
2022-04-24 19:57:12 +00:00
Tomas Votruba
7466aca164 Updated Rector to commit c3adc6b043
c3adc6b043 [Privatization] Add ParentPropertyLookupGuard service (#2152)
2022-04-24 19:43:23 +00:00
Tomas Votruba
19e48f49f2 Updated Rector to commit 366c994a5c
366c994a5c More current statement attribute clean up (#2150)
2022-04-24 17:30:55 +00:00
Tomas Votruba
b739fa46b8 Updated Rector to commit 0954611a38
0954611a38 Remove CURRENT_STATEMENT where not needed (#2149)
2022-04-24 17:00:46 +00:00
Tomas Votruba
623fdf63b7 Updated Rector to commit 80a04aa51f
80a04aa51f [Core] Remove Current Statement check on RectifiedAnalyzer, use Original Node instead (#2148)
2022-04-24 16:33:56 +00:00
Tomas Votruba
348b2f0e8d Updated Rector to commit eaaecc39d7
eaaecc39d7 Remove PREVIOUS_STATEMENT from StatementNodeVisitor (#2146)
2022-04-24 16:25:18 +00:00
Tomas Votruba
671dde4094 Updated Rector to commit 1084889b30
1084889b30 [Php80] Skip different type cases cond on ChangeSwitchToMatchRector (#2147)
2022-04-24 15:27:24 +00:00
Tomas Votruba
22a6a7d222 Updated Rector to commit dc7a9a85f3
dc7a9a85f3 [DeadCode] Skip remove variable on switch use return after break on RemoveUnusedVariableAssignRector (#2145)
2022-04-24 07:48:38 +00:00
Tomas Votruba
54f1bf6955 Updated Rector to commit 55807fad4f
55807fad4f [cs] clean up use statement (#2144)
2022-04-23 22:44:46 +00:00
Tomas Votruba
44cb73b377 Updated Rector to commit e4858d9a60
e4858d9a60 [Php80] Handle named type on JMS\AccessType on AnnotationToAttributeRector (#2141)
2022-04-23 22:28:13 +00:00
Tomas Votruba
ae847cdf27 Updated Rector to commit eb1090c934
eb1090c934 [DeadCode] Add Break_, Continue_, Goto_ support on RemoveUnreachableStatementRector (#2142)
2022-04-23 22:22:46 +00:00
Tomas Votruba
20c7d5ad3a Updated Rector to commit 31656ed51d
31656ed51d [NodeCollector] Remove CurrentStmtResolver service (#2143)
2022-04-23 22:21:52 +00:00
Tomas Votruba
45aa9e4e71 Updated Rector to commit 469f0eed63
469f0eed63 [DeadCode] Register more Stmt Nodes on RemoveUnreachableStatementRector (#2140)
2022-04-23 19:00:01 +00:00
Tomas Votruba
eb4cd2911f Updated Rector to commit 365b289eb7
365b289eb7 [DeadCode] Skip Try { finally } assign and loop stmts on RemoveUnreachableStatementRector (#2139)
2022-04-23 13:47:51 +00:00
Tomas Votruba
6f99610f8c Updated Rector to commit f80d476d66
f80d476d66 [DeadCode] Refactor RemoveUnreachableStatementRector to check previuos stmt against Throw_,Exit_,Return_,TryCatch_ (#2137)
2022-04-23 13:06:33 +00:00
Tomas Votruba
81086d15be Updated Rector to commit e7caae2a5c
e7caae2a5c Improve BetterNodeFinder::findFirstPrevious() to work without statements (#2136)
2022-04-23 12:56:55 +00:00
Tomas Votruba
28d0d1c997 Updated Rector to commit 6fe4de3eae
6fe4de3eae invalidate errored files in cache, to avoid hiding errors (#2138)
2022-04-23 12:03:29 +00:00
Tomas Votruba
8ba4c2c3e0 Updated Rector to commit ccd3ba67e2
ccd3ba67e2 cleanup MethodCallManipulator (#2135)
2022-04-23 10:42:40 +00:00
Tomas Votruba
a88be0b498 Updated Rector to commit 7bc7426a7d
7bc7426a7d Remove PREVIOUS_STATEMENT from SimplifyUselessVariableRector (#2127)
2022-04-23 10:16:16 +00:00
Tomas Votruba
52972e6b76 Updated Rector to commit dd2b376263
dd2b376263 [TypeDeclaration] Skip return property not exists by ClassReflection on ReturnTypeDeclarationRector (#2134)
2022-04-23 10:14:27 +00:00
Tomas Votruba
11667e7491 Updated Rector to commit 2f5a525e65
2f5a525e65 Revert adding RemoveNamespaceRector (#2133)
2022-04-23 10:11:50 +00:00
Tomas Votruba
2714e07134 Updated Rector to commit cd3f45d8e2
cd3f45d8e2 [TypeDeclaration][Strict] Skip different type assigned different method on TypedPropertyFromStrictConstructorRector (#2128)
2022-04-22 23:13:44 +00:00
Tomas Votruba
2a14888af7 Updated Rector to commit e5c94a20cf
e5c94a20cf [DeadCode] Handle skipped RemoveUnreachableStatementRector on MultiDirnameRector (#2129)
2022-04-22 23:06:34 +00:00
Tomas Votruba
56baeb9471 Updated Rector to commit b192ec7ca8
b192ec7ca8 simplify RemoveDoubleAssignRector to use less connecting nodes (#2126)
2022-04-22 15:58:01 +00:00
Tomas Votruba
8cf0a1bf3a Updated Rector to commit 5cc41ac787
5cc41ac787 Simplify RemoveUnreachableStatementRector to use less connecting nodes (#2125)
2022-04-22 15:22:45 +00:00
Tomas Votruba
7e10a637a2 Updated Rector to commit 3ddac18c51
3ddac18c51 [Php74] Add class-string not filled by __construct to be to nullable string on TypedPropertyRector (#2123)
2022-04-22 14:28:27 +00:00
Tomas Votruba
af205b10a4 Updated Rector to commit 75fccc5d58
75fccc5d58 [Php71] Remove PropertyFetchAnalyzer::isFilledByConstructParam (#2122)
2022-04-22 00:49:25 +00:00
Tomas Votruba
90aca384f1 Updated Rector to commit aa345bc51d
aa345bc51d [Php74] Add class-string to string support on TypedPropertyRector (#2120)
2022-04-21 22:59:51 +00:00
Tomas Votruba
8166f3df0d Updated Rector to commit 465b3f61d6
465b3f61d6 [DogFood] Skip call(configure) on UpgradeRectorConfigRector (#2119)
2022-04-21 22:49:02 +00:00
Tomas Votruba
0b7f3ac154 Updated Rector to commit 0c649b2e38
0c649b2e38 [DX] Update super old configure to RectorConfig (#2121)
2022-04-21 22:44:15 +00:00
Tomas Votruba
4036792902 Updated Rector to commit d7d7c463ec
d7d7c463ec [TypeDeclaration] Skip union param type on AddArrayParamDocTypeRector (#2117)
2022-04-21 18:46:27 +00:00
Tomas Votruba
05dcaf8290 Updated Rector to commit ad04b5931b
ad04b5931b [DogFood] Skip services variable used as service load/defaults definition on UpgradeRectorConfigRector (#2115)
2022-04-21 17:32:13 +00:00
Tomas Votruba
c744400fb0 Updated Rector to commit 5f5b43add2
5f5b43add2 [DogFood] Failing fixture do not flip phpversion feature set after import (#2111)
2022-04-21 09:46:29 +00:00
Tomas Votruba
07e4ebd293 Updated Rector to commit a0c8a6be61
a0c8a6be61 add deprecations to Option constants and refer to RectorConfig (#2112)
2022-04-21 06:47:26 +00:00
Tomas Votruba
7731557b47 Updated Rector to commit 2d91dd0a11
2d91dd0a11 Add deprecations to Option constants and refer to RectorConfig (#2110)
2022-04-20 21:18:03 +00:00
Tomas Votruba
4ee46cc02c Updated Rector to commit 2d91dd0a11
2d91dd0a11 Add deprecations to Option constants and refer to RectorConfig (#2110)
2022-04-20 19:25:22 +00:00
Tomas Votruba
fbc225b532 Updated Rector to commit 40e09ab281
50da11869e bump nette/neon to 3.3.3 40e09ab281 remove nette/neon dependency as not used directly
2022-04-20 19:07:27 +00:00
Tomas Votruba
2a9a3a7f8f Updated Rector to commit 568a69b8c0
568a69b8c0 Add paths() and skip() to UpgradeRectorConfigRector (#2109)
2022-04-20 19:05:00 +00:00
Tomas Votruba
5dd71bbea3 Updated Rector to commit 91f6470cbc
91f6470cbc [DX] Update to use Method Call from RectorConfig on rector configs ( config/set dir) (#2108)
2022-04-20 18:29:39 +00:00
Tomas Votruba
9f5c92023c Updated Rector to commit f5aadc590c
f5aadc590c [DX] Update to use Method Call from RectorConfig on rector configs ( packages-tests/ dir) (#2107)
2022-04-20 18:02:23 +00:00
Tomas Votruba
220af6be52 Updated Rector to commit d446ae9476
d446ae9476 [DX] Update to use Method Call from RectorConfig on rector configs ( rules-tests/ dir) (#2106)
2022-04-20 17:43:27 +00:00
Tomas Votruba
d58ebce473 Updated Rector to commit d9eb8d2194
d9eb8d2194 [DX] Update to use Method Call from RectorConfig on rector configs (tests/ dir) (#2105)
2022-04-20 17:16:16 +00:00
Tomas Votruba
2aa7002bee Updated Rector to commit 61fd4d8308
61fd4d8308 [config] Add import bare support (#2103)
2022-04-20 14:29:16 +00:00
Tomas Votruba
d4e4ff8300 Updated Rector to commit 61fd4d8308
61fd4d8308 [config] Add import bare support (#2103)
2022-04-20 10:02:04 +00:00
Tomas Votruba
5a03282dce Updated Rector to commit 3986087473
3986087473 [DX] Extract ContainerConfiguratorImportsMerger (#2101)
2022-04-20 08:09:40 +00:00
Tomas Votruba
c32676bea1 Updated Rector to commit de95ab646f
de95ab646f [DX] Add sets() to RectorConfig upgrade rule (#2100)
2022-04-20 07:44:00 +00:00
Tomas Votruba
e3b6e1da0f Updated Rector to commit 03fbf02ec4
03fbf02ec4 [DX] Run UpgradeRectorConfigRector on /configs/set (#2099)
2022-04-20 07:12:09 +00:00
Tomas Votruba
764369f38b Updated Rector to commit d90953d9a9
d90953d9a9 [DX] Add RectorConfig upgrade rule to make upgrade easier :) (#2098)
2022-04-20 07:06:09 +00:00
Tomas Votruba
614136ae37 Updated Rector to commit b92465d5c0
b92465d5c0 fixes #7118 (#2097)
2022-04-19 22:20:46 +00:00
Tomas Votruba
53645dcaed Updated Rector to commit b4efb43c04
b4efb43c04 [Fix][InlineSimplePropertyAnnotationRector] Add test case and minor fix (#2096)
2022-04-19 11:59:29 +00:00
Tomas Votruba
2684ff98ab Updated Rector to commit 5025d255ca
5025d255ca [Core] Rollback ParameterProvider autowire into AbstractRector (#2095)
2022-04-19 08:10:27 +00:00
Tomas Votruba
7bdca9f843 Updated Rector to commit 0a98c58b91
0a98c58b91 [Php74] Skip static property filled by trait on TypedPropertyRector (#2091)
2022-04-18 22:44:12 +00:00
Tomas Votruba
4c91bd28f4 Updated Rector to commit 569560bff5
569560bff5 [Scoped] Register ParameterProvider to Excluded class on Scoped version (#2093)
2022-04-18 22:33:02 +00:00
Tomas Votruba
18190b5ece Updated Rector to commit 8e51a6c3d1
8e51a6c3d1 [Php74] Skip array type on trait on RestoreDefaultNullToNullableTypePropertyRector (#2094)
2022-04-18 22:25:27 +00:00
Tomas Votruba
7dab0762cc Updated Rector to commit 961f67cc0a
961f67cc0a [Php80] Skip stringable on Anonymous class on StringableForToStringRector (#2092)
2022-04-18 17:44:13 +00:00
Tomas Votruba
72a0a9f05b Updated Rector to commit 25616949cb
25616949cb make resolveParentClassMethods() for re-use in nette package
2022-04-18 12:18:09 +00:00
Tomas Votruba
2fb3b1c1d8 Rector 0.12.21 2022-04-18 12:12:41 +00:00
Tomas Votruba
5a655d625d Updated Rector to commit 11fdd74f8a
11fdd74f8a build docs (#2090)
2022-04-17 19:22:30 +00:00
Tomas Votruba
5d5bb830df Updated Rector to commit c7ff21825e
c7ff21825e [Php81] Skip multiple assign on __construct on ReadOnlyPropertyRector (#2088)
2022-04-17 15:25:10 +00:00
Tomas Votruba
6bec0089b6 Updated Rector to commit 996caa3f1f
996caa3f1f [PHPStan] Clean up PHPStan ignore errors (#2089)
2022-04-17 14:08:53 +00:00
Tomas Votruba
4b9139b523 Updated Rector to commit b8d0606305
b8d0606305 [Doc] Typo fix; autoimportNames -> importNames (#2086)
2022-04-17 06:12:37 +00:00
Tomas Votruba
5f10b8092d Updated Rector to commit 46d2c00038
46d2c00038 [automated] Re-Generate Nodes/Rectors Documentation (#2085)
2022-04-17 00:35:02 +00:00
Tomas Votruba
c821b3294b Updated Rector to commit 92c2fc1035
92c2fc1035 [Php74] Handle standalone false on php >=8 feature enabled on TypedPropertyRector (#2084)
2022-04-16 19:55:39 +00:00
Tomas Votruba
99ecd74e28 Updated Rector to commit f0cad1a722
f0cad1a722 [TypeDeclaration] Clean up remove NullType when mixed type exists process (#2083)
2022-04-16 17:33:46 +00:00
Tomas Votruba
840e8ecb40 Updated Rector to commit 6cb95c1be3
6cb95c1be3 Update rector_rules_overview.md (#2082)
2022-04-16 16:37:14 +00:00
Tomas Votruba
cfa1942bf9 Updated Rector to commit 73bf29c279
73bf29c279 [TypeDeclaration] Remove NullType when already has mixed on ParamAnnotationIncorrectNullableRector (#2081)
2022-04-16 16:16:44 +00:00
Tomas Votruba
b733212c38 Updated Rector to commit 91b8573525
91b8573525 [PHPStan] Set compatible with upcoming PHPStan 1.6.x with set NodeConnectingVisitor tags (#2014)
2022-04-15 17:36:53 +00:00
Tomas Votruba
1fd50e0517 Updated Rector to commit c7e4530a82
c7e4530a82 [Naming][TypeDeclaration] Handle RenameVariableToMatchMethodCallReturnTypeRector + AddVoidReturnTypeWhereNoReturnRector (#2080)
2022-04-15 17:12:35 +00:00
Tomas Votruba
5efb6c74b3 Updated Rector to commit 269858a92c
269858a92c [Php56] Skip with coalesce assign on AddDefaultValueForUndefinedVariableRector (#2078)
2022-04-15 11:39:05 +00:00
Tomas Votruba
74a8a29f4c Updated Rector to commit 8be11db297
8be11db297 [Naming] Skip used by trait on RenamePropertyToMatchTypeRector (#2077)
2022-04-15 07:29:32 +00:00
Tomas Votruba
254106fbd6 Updated Rector to commit 4519646150
4519646150 [build] fix tagging on release
2022-04-14 21:57:42 +00:00
Tomas Votruba
15e49d365b Updated Rector to commit d7590ea66c
d7590ea66c Bump PHPStan, ECS and Symplify to 10.2 + make use of brand new ECSConfig (#2076)
2022-04-14 21:28:22 +00:00
Tomas Votruba
fb6a326e0e Updated Rector to commit 86647cc3ad
86647cc3ad [CodingStyle] Add Future note comment to not register to coding-style config set when ecs with PhpdocLineSpanFixer used (#2075)
2022-04-14 18:13:07 +00:00
Tomas Votruba
99d2e969d8 Updated Rector to commit 9d5ea4c3e6
9d5ea4c3e6 [CodeQuality][CodingStyle][DeadCode] Handle SimplifyIfElseToTernaryRector+InlineSimplePropertyAnnotationRector+RemoveUnusedVariableAssignRector (#2074)
2022-04-14 17:41:58 +00:00
Tomas Votruba
9dc4771f4a Updated Rector to commit 51228e4c49
51228e4c49 [CodingStyle] Skip comment after @var on InlineSimplePropertyAnnotationRector (#2073)
2022-04-14 17:01:10 +00:00
Tomas Votruba
1cdd8d4e52 Updated Rector to commit 09499098eb
09499098eb [TypeDeclaration] Register ParamAnnotationIncorrectNullableRector to type-declaration config set (#2071)
2022-04-14 14:58:58 +00:00
Tomas Votruba
1f0de4d2de Updated Rector to commit d30a86313f
d30a86313f [Feature] Add configurable InlineSimplePropertyAnnotationRector for inlining of simple annotations (#2070)
2022-04-14 08:14:01 +00:00
Tomas Votruba
446b0a8f86 Updated Rector to commit c509923516
c509923516 [Feature] Add ParamAnnotationIncorrectNullableRector for fixing incorrect null type in @param (#2069)
2022-04-14 08:12:26 +00:00
Tomas Votruba
180b4b0a8f Updated Rector to commit 1c1732f017
1c1732f017 [Php74] Add support for string|false|null on RestoreDefaultNullToNullableTypePropertyRector (#2068)
2022-04-13 16:41:54 +00:00
Tomas Votruba
be26c813d6 Updated Rector to commit d0c25cc4b9
d0c25cc4b9 [TypeDeclaration] Register ReturnAnnotationIncorrectNullableRector and VarAnnotationIncorrectNullableRector to type-declaration config set (#2062)
2022-04-13 16:41:06 +00:00
Tomas Votruba
863e58bc5e Updated Rector to commit 363f4083d5
363f4083d5 [TypeDeclaration] Make TypedPropertyFromAssignsRector configurable with INLINE_PUBLIC (#2052)
2022-04-13 16:35:59 +00:00
Tomas Votruba
e7029ad1f5 Updated Rector to commit 0ba8579821
0ba8579821 [Fix] Make UnionTypesRector and ReturnAnnotationIncorrectNullableRector skip chaotic methods (#2067)
2022-04-13 16:29:57 +00:00
Tomas Votruba
b1c2035103 Updated Rector to commit dd96863b8e
dd96863b8e [ci] separate e2e test with changed attributes (#2066)
2022-04-12 15:58:47 +00:00
Tomas Votruba
071d7cb788 Updated Rector to commit c35cc97d38
c35cc97d38 [DX] Add phpVersion() method to RectorConfig + make use of new config class in test configs (#2065)
2022-04-12 14:41:09 +00:00
Tomas Votruba
c983f7c3b5 Updated Rector to commit 799b77a8ed
799b77a8ed Fix typo in a comment (#2064)
2022-04-12 12:57:21 +00:00
Tomas Votruba
0dc28df936 Updated Rector to commit 8d92c466fd
8d92c466fd [DX] Use RectorConfig in configs (#2063)
2022-04-12 11:52:08 +00:00
Tomas Votruba
ab464c9742 Updated Rector to commit ccbeeebb51
ccbeeebb51 [docs] your name
2022-04-12 09:00:20 +00:00
Tomas Votruba
66a823a2fb Updated Rector to commit 51e89c3f32
51e89c3f32 [docs] Improve first-time contributors docs (#2061)
2022-04-12 08:58:57 +00:00
Tomas Votruba
6c73983fe9 Updated Rector to commit a1ac1b6fdf
a1ac1b6fdf [Feature] Add ReturnAnnotationIncorrectNullableRector for fixing incorrect null type in @return (#2060)
2022-04-12 06:58:51 +00:00
Tomas Votruba
b5cb7d46ba Updated Rector to commit 1fc2825e17
1fc2825e17 [Transform] Add FileGetContentsAndJsonDecodeToStaticCallRector (#2059)
2022-04-11 22:52:54 +00:00
Tomas Votruba
04f0c86bba Updated Rector to commit 1fc2825e17
1fc2825e17 [Transform] Add FileGetContentsAndJsonDecodeToStaticCallRector (#2059)
2022-04-11 18:05:17 +00:00
Tomas Votruba
27249773f0 Updated Rector to commit 05f07aab18
05f07aab18 [TypeDeclaration] Skip has space and dot in inner array key on ArrayShapeFromConstantArrayReturnRector (#2057)
2022-04-11 16:09:13 +00:00
Tomas Votruba
b08d5fd8e1 Updated Rector to commit 255a178828
255a178828 [Core] Remove unused PropertyManipulator::isInlineStmtWithConstructMethod() (#2056)
2022-04-11 15:43:01 +00:00
Tomas Votruba
58077e6924 Updated Rector to commit f00dfc048d
f00dfc048d [TypeDeclaration] Using ConstructorAssignDetector on TypedPropertyFromStrictConstructorRector (#2055)
2022-04-11 15:13:47 +00:00
Tomas Votruba
cf05c72543 Updated Rector to commit d4c5ec6dfa
d4c5ec6dfa [Feature] Add VarAnnotationIncorrectNullableRector for fixing incorrect null type in @var (#2053)
2022-04-11 13:09:08 +00:00
Tomas Votruba
2afd97948d Updated Rector to commit 20a5be338e
20a5be338e [Php74] Use ConstructorAssignDetector on RestoreDefaultNullToNullableTypePropertyRector (#2054)
2022-04-11 11:30:16 +00:00
Tomas Votruba
d4a4c8a21a Updated Rector to commit ac8b42e394
ac8b42e394 [Php74] Handle object type filled stdClass and array shape filled array on TypedPropertyRector (#2050)
2022-04-11 08:32:28 +00:00
Tomas Votruba
a8fd7e13df Updated Rector to commit afcdc65704
afcdc65704 [CodeQuality] Skip from non typed param on UseIdenticalOverEqualWithSameTypeRector (#2044)
2022-04-11 08:32:16 +00:00
Tomas Votruba
479b159635 Updated Rector to commit f12861bda0
f12861bda0 [Php74] Move multi rules used tests to tests/Issues for TypedPropertyRector (#2051)
2022-04-11 08:29:44 +00:00
Tomas Votruba
05005b8a89 Updated Rector to commit 0c69df8c24
0c69df8c24 rebuild docs
2022-04-10 20:12:42 +00:00
Tomas Votruba
2c0475807b Updated Rector to commit 60f1dadd6f
60f1dadd6f Merge FollowRequireByDirRector to almost identical AbsolutizeRequireAndIncludePathRector (#2048)
2022-04-10 20:11:02 +00:00
Tomas Votruba
931bfb66df Updated Rector to commit 0227d24e36
0227d24e36 Merge InArrayAndArrayKeysToArrayKeyExistsRector to ArrayKeysAndInArrayToArrayKeyExistsRector with almost identical behavior (#2047)
2022-04-10 19:50:50 +00:00
Tomas Votruba
650661e16c Updated Rector to commit 9b8e161878
9b8e161878 merge SimplifyDuplicatedTernaryRector to UnnecessaryTernaryExpressionRector, almost identical rule (#2046)
2022-04-10 19:09:26 +00:00
Tomas Votruba
d76ed237fa Updated Rector to commit a2ee46d16e
a2ee46d16e Refactor SymplifyUselessVariableRector to avoid using PREVIOUS_NODE, use current scope instead (#2045)
2022-04-10 18:18:46 +00:00
Tomas Votruba
a4e8d9fc7a Updated Rector to commit b9a912bb5d
b9a912bb5d [DX] RectorConfig - add ruleWithConfiguration() and other methods (#2043)
2022-04-10 17:44:48 +00:00
Tomas Votruba
2807e577a5 Updated Rector to commit d3bb21316e
d3bb21316e [DX] Add RectorConfig->parallel() and skip() (#2040)
2022-04-10 13:02:53 +00:00
Tomas Votruba
d58370849e Updated Rector to commit 76894e5c63
76894e5c63 [Naming] Add Closure and Function_ on RenameParamToMatchTypeRector (#2042)
2022-04-10 08:30:09 +00:00
Tomas Votruba
33ba60faee Updated Rector to commit 9b46906e39
9b46906e39 [Strict] Add support string|null|false on BooleanInBooleanNotRuleFixerRector (#2035)
2022-04-10 06:08:51 +00:00