Commit Graph

15297 Commits

Author SHA1 Message Date
Tomas Votruba
7c46ba037e Updated Rector to commit c21cafaf90cab17ae26900679f70461063ab791e
c21cafaf90 [Php82] Add Utf8DecodeEncodeToMbConvertEncodingRector (#3195)
2022-12-14 10:07:44 +00:00
Tomas Votruba
a6cbd606d0 Updated Rector to commit f20fd6e9daf997a2116f34a305d2c9afa72d393a
f20fd6e9da Bump phpdoc-parser to 1.15.0 (#3194)
2022-12-13 15:54:47 +00:00
Tomas Votruba
12fbd94766 Updated Rector to commit 30bc9ac21ab0e2acbd617954ed6358557514e188
30bc9ac21a [Core] Refactor NodeComparator::areSameNode() to always compare printed node on last (#3193)
2022-12-13 13:56:55 +00:00
Tomas Votruba
04232cb88d Updated Rector to commit d80ddd193deeebd47e765dfb58d300faaedc25b4
d80ddd193d [CodeQuality] Handle possible crash on ParametersAcceptorSelector::selectSingle() on OptionalParametersAfterRequiredRector (#3192)
2022-12-13 12:09:37 +00:00
Tomas Votruba
d2059134fe Updated Rector to commit de008767d91ad6cd5ed77bdc259454665e4bbde9
de008767d9 Replace static with self for private constants (#3178)
2022-12-13 07:34:24 +00:00
Tomas Votruba
5a40891bc0 Updated Rector to commit de008767d91ad6cd5ed77bdc259454665e4bbde9
de008767d9 Replace static with self for private constants (#3178)
2022-12-12 14:06:38 +00:00
Tomas Votruba
7924f6944c Updated Rector to commit de008767d91ad6cd5ed77bdc259454665e4bbde9
de008767d9 Replace static with self for private constants (#3178)
2022-12-12 12:29:16 +00:00
Tomas Votruba
5c3e98d25a Updated Rector to commit bea2e12a6d6e7a7b1eb1f7b6f82a0ec1e7c21f2c
bea2e12a6d [Privatization][TypeDeclaration] Skip inside class with @final docblock on PrivatizeFinalClassMethodRector and AddVoidReturnTypeWhereNoReturnRector (#3190)
2022-12-12 08:02:46 +00:00
Tomas Votruba
26753f8f8b Updated Rector to commit 96c457badfd0c198a57a758c552ec82aee0049de
96c457badf Fix RenamePropertyToMatchTypeRector for non-docblocks properties (#3189)
2022-12-11 17:49:34 +00:00
Tomas Votruba
fd21735258 Updated Rector to commit 809467ed2ddb362ad833142177d3148cfaf368bc
809467ed2d Fix no return in ChangeSwitchToMatchRector (#3188)
2022-12-11 16:30:49 +00:00
Tomas Votruba
aec87d7b85 Updated Rector to commit 4a03eb97153dd3d3868d90feeb0a269f3be754e6
4a03eb9715 [DeadCode] Skip expr as MethodCall or StaticCall from ClassMethod @return string docblock on RecastingRemovalRector (#3187)
2022-12-11 16:22:41 +00:00
Tomas Votruba
84c989ec89 Updated Rector to commit 8bf7073f83f1758013cdecc804075ddce316f0f5
8bf7073f83 [Php81] Skip const Fetch non static method on FirstClassCallableRector (#3183)
2022-12-11 15:49:39 +00:00
Tomas Votruba
38a6f76199 Updated Rector to commit 8bf7073f83f1758013cdecc804075ddce316f0f5
8bf7073f83 [Php81] Skip const Fetch non static method on FirstClassCallableRector (#3183)
2022-12-11 15:37:59 +00:00
Tomas Votruba
6c239a0299 Updated Rector to commit 5ccf468c144112121d0ab7933430a796d82ef8a2
5ccf468c14 [Privatization] Use PropertyManipulator::isUsedByTrait() on ParentPropertyLookupGuard for PrivatizeFinalClassPropertyRector (#3185)
2022-12-11 10:36:44 +00:00
Tomas Votruba
e288bdf650 Updated Rector to commit 802d98e8c6cb0b29c731e2238160b860b33be13c
802d98e8c6 [Php72] Handle crash on trailing comma last on WhileEachToForeachRector (#3186)
2022-12-11 10:32:24 +00:00
Tomas Votruba
c529321b60 Updated Rector to commit e4791145fc9ec5709183c9af173f33e780109fb6
e4791145fc [Php81] Allow normal variable in trait on NullToStrictStringFuncCallArgRector (#3181)
2022-12-10 15:34:03 +00:00
Tomas Votruba
43883a9642 Updated Rector to commit e1f7637ca3a2fd4064053f1d70179acd064ed2a6
e1f7637ca3 Fix trait property visibility in PrivatizeFinalClassPropertyRector (#3182)
2022-12-10 15:03:24 +00:00
Tomas Votruba
7cccf103fd Updated Rector to commit 91f4caeba4b8fbaeb8928fcd1f9d526b076154f5
91f4caeba4 [PHP 8.1] Skip trait in NullToStrictStringFuncCallArgRector as unknown context (#3180)
2022-12-10 12:49:18 +00:00
Tomas Votruba
c4151416ec Updated Rector to commit 44ebacea719f64590b4644081e862437be7ce466
44ebacea71 [Php80] Do not remove Parameter attribute on ClassPropertyAssignToConstructorPromotionRector (#3179)
2022-12-10 11:57:52 +00:00
Tomas Votruba
7d6c5d58c3 Updated Rector to commit b23e1fb2ea7795a7f7bb3f6232e4fa82aa26b199
b23e1fb2ea [DeadCode] Skip Class Constant used in Enum on RemoveUnusedPrivateCla… (#3174)
2022-12-09 21:47:53 +00:00
Tomas Votruba
bf6dd6454a Updated Rector to commit 4ba03abd12be377a7227ace643c670daec31246f
4ba03abd12 [CodeQuality][CodingStyle] Handle crash on SimplifyIfReturnBoolRector+NewlineAfterStatementRector+StringClassNameToClassConstantRector (#3175)
2022-12-09 20:05:20 +00:00
Tomas Votruba
f63eee898e Updated Rector to commit 863fee39147717a4f85c42eacaec28fe6971ac52
863fee3914 [PHPStanStaticTypeMapper] Handle Nullable Type on UnionType on UnionTypeMapper when possible (#3173)
2022-12-09 11:23:23 +00:00
Tomas Votruba
4bc9094047 Updated Rector to commit bbd9d4fa2c6811c9c68984549d2c0dfb68232219
bbd9d4fa2c [CodeQuality] Skip non typed property no default value never assigned on SimplifyEmptyCheckOnEmptyArrayRector (#3171)
2022-12-08 21:31:19 +00:00
Tomas Votruba
7e4cd5dfba Updated Rector to commit bbd9d4fa2c6811c9c68984549d2c0dfb68232219
bbd9d4fa2c [CodeQuality] Skip non typed property no default value never assigned on SimplifyEmptyCheckOnEmptyArrayRector (#3171)
2022-12-08 10:16:49 +00:00
Tomas Votruba
6cbbfd0d97 Updated Rector to commit 2848e0d0cc5b819ba90fb1393ee2607b9eac555d
2848e0d0cc [Core] Use FullyQualifiedObjectType and ThisType detection for local property fetch on PropertyFetchAnalyzer (#3172)
2022-12-08 10:12:10 +00:00
Tomas Votruba
0a53c32d58 Updated Rector to commit f8ad265fa5e4c58a4d0e973a73cac2c4e1efcb3f
f8ad265fa5 [CodeQuality] Handle BooleanNot on SimplifyEmptyCheckOnEmptyArrayRector (#3170)
2022-12-07 23:23:54 +00:00
Tomas Votruba
653c1c8d93 Updated Rector to commit 84b54c0949ae4d0b642899b12f15a6cd53f7554a
84b54c0949 [Php82] Skip ReadOnlyClassRector on has parent non-readonly class (#3169)
2022-12-07 17:34:36 +00:00
Tomas Votruba
e381b4574f Updated Rector to commit 99ac0029803859361b510f46cf13bb88153367ee
99ac002980 [TypeDeclaration] Skip void return on AddArrowFunctionReturnTypeRector (#3167)
2022-12-07 17:13:54 +00:00
Tomas Votruba
50000ad3ec Updated Rector to commit b8aff0861788200f2e098191118d1e5e8948a242
b8aff08617 Do not apply property promotion to parameters with the SensitiveParameter attribute (#3165)
2022-12-07 15:32:15 +00:00
Tomas Votruba
4397f883bd Updated Rector to commit 7636b888661966e3679770d868481cd02e31517f
7636b88866 [CodeQuality] Skip stdClass in IssetOnPropertyObjectToPropertyExistsRector, as always nested (#3166)
2022-12-07 15:29:56 +00:00
Tomas Votruba
37d402dcce Updated Rector to commit 045ada5f68b80eeea5edadb202d621007f7baf90
045ada5f68 [TypeDeclaration] Skip multi return types on ReturnTypeFromReturnDirectArrayRector (#3164)
2022-12-07 15:27:26 +00:00
Tomas Votruba
b2e081777a Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-07 13:37:40 +00:00
Tomas Votruba
e1dd377fd8 Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-06 19:32:35 +00:00
Tomas Votruba
3748da8b80 Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-06 18:18:33 +00:00
Tomas Votruba
bd0997346d Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-06 16:54:58 +00:00
Tomas Votruba
639da95550 Updated Rector to commit 44c95d4157d8b3d2db32e9c352c0202064ad0a40
44c95d4157 Add skipped Rectors to list-rules (#3162)
2022-12-06 13:36:55 +00:00
Tomas Votruba
7bd500a158 Updated Rector to commit d3abaa1d05318488f8c1f401fc46a9e48b056d4f
d3abaa1d05 [TypeDeclaration] Handle Anonymous class extends existing class in union (#3161)
2022-12-06 13:12:41 +00:00
Tomas Votruba
80576040f6 Updated Rector to commit 91ebee8f0771ec3dbfbb1108e996ecf2351e6e9a
91ebee8f07 [TypeDeclaration] Skip union mixed on TypedPropertyFromAssignsRector (#3160)
2022-12-06 10:28:55 +00:00
Tomas Votruba
228e63ca2e Updated Rector to commit 001fb3fe9252b8f03705caf5bd288a513834a8a8
001fb3fe92 [CodingStyle] Split SplitGroupedConstantsAndPropertiesRector to SplitGroupedClassConstantsRector and SplitGroupedPropertiesRector (#3158)
2022-12-05 15:46:09 +00:00
Tomas Votruba
32c2bc3f13 Updated Rector to commit 3149ea4ebb6e3ec324ebb0e9e58db0fef7e2a9a8
3149ea4ebb revert previous misscommit
2022-12-05 15:07:35 +00:00
Tomas Votruba
021d5852a6 Updated Rector to commit 3149ea4ebb6e3ec324ebb0e9e58db0fef7e2a9a8
3149ea4ebb revert previous misscommit
2022-12-05 13:47:32 +00:00
Tomas Votruba
a3ac4e57af Updated Rector to commit 3149ea4ebb6e3ec324ebb0e9e58db0fef7e2a9a8
3149ea4ebb revert previous misscommit
2022-12-05 13:28:47 +00:00
Tomas Votruba
84ab546ff7 Updated Rector to commit b56440ac4b137539230a3e907c36f1705c7ed5f4
b56440ac4b allow compatible phpdoc-parser (#3157)
2022-12-05 13:25:12 +00:00
Tomas Votruba
b12a622f23 Updated Rector to commit 3f1a285063f1c40d4c1a2bcdfc7d622ed63d5db6
3f1a285063 [Core] Fix crash indentation on indent(\t, 1) config (#3155)
2022-12-05 11:04:26 +00:00
Tomas Votruba
62c3ac9363 Updated Rector to commit f4ff24c16110daa22312f443fd25e88060e17123
f4ff24c161 Skip short class names in UseClassKeywordForClassNameResolutionRector (#3156)
2022-12-05 11:03:13 +00:00
Tomas Votruba
fbfbe499d0 Rector 0.15.0 2022-12-04 22:40:18 +00:00
Tomas Votruba
ab11a00c74 Updated Rector to commit 25dec6b32504d747ff62193ff4704144ca10b040
25dec6b325 Rollback ClassRenamePhpDocNodeVisitor to use clone  to avoid unnecessary touch Identifier when no change (#3154)
2022-12-04 17:34:34 +00:00
Tomas Votruba
3d977e083e Updated Rector to commit 16680c4f102d8155d94340307e8ec02c03ac42ed
16680c4f10 Bump to phpstan/phpdoc-parser:^1.14 (#3153)
2022-12-04 15:21:41 +00:00
Tomas Votruba
c390fa85ec Updated Rector to commit 4e9214f313edac16dbb4ff6ac48da2d1d706a360
4e9214f313 Copy tests from symplify/autowire-array-parameter (#3152)
2022-12-04 14:35:28 +00:00
Tomas Votruba
113d4ed2e7 Updated Rector to commit 58069c319777423311a4877733c01c54394c3a27
58069c3197 static fixes
2022-12-04 13:38:03 +00:00