Commit Graph

3370 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
Tomas Votruba
2a553a9afd Updated Rector to commit 3dea2bdc4de76d217cc2d67cce4ccb41d2b4c7f3
3dea2bdc4d skip false positive chagne report on RemoveUselessParamTagRector (#3151)
2022-12-04 13:35:33 +00:00
Tomas Votruba
83accd4a98 Updated Rector to commit efd09bbb400b2382be39effc206551e6964fa5ea
efd09bbb40 Compatibility with BetterReflection 6.x on ClassFromEnumFactory (#3150)
2022-12-04 13:15:14 +00:00
Tomas Votruba
642698e22d Updated Rector to commit e8a252fe262cac38eb74b9584f78e2daee006ffa
e8a252fe26 Fix test error Call to undefined method Rector\Config\RectorConfig::disableImportNames() (#3147)
2022-12-03 12:33:51 +00:00
Tomas Votruba
82eda1fecd Updated Rector to commit d670b4e50deb738f15d77c6a4f7fe773791c871f
d670b4e50d [docs] cleanup, add links to the official docs
2022-12-03 11:10:19 +00:00
Tomas Votruba
670f9998e8 Updated Rector to commit 1f46de3de704155da47e3b8d87312224cb5550d6
1f46de3de7 indent
2022-12-03 10:53:17 +00:00
Tomas Votruba
3920dabc60 Updated Rector to commit cc37f412da23302e38d8ccecce625576ba883b0f
cc37f412da space
2022-12-03 10:52:32 +00:00
Tomas Votruba
d2a6e3f136 Updated Rector to commit 06cb6754d6f04703093905fbaddbbbe4f9546a22
06cb6754d6 move package ci status directly to README to make easier to discovery
2022-12-03 10:51:45 +00:00
Tomas Votruba
afd435c4e5 Updated Rector to commit 0f0d93ec97edfcdca58f0f5b65e9b7b578f19f60
0f0d93ec97 [config] fix missing indent size (#3145)
2022-12-03 10:40:36 +00:00
Tomas Votruba
c09a0ac83d Updated Rector to commit f30593c3ae24948041136796a6e0dad80342876e
f30593c3ae fix misisng method
2022-12-03 10:40:09 +00:00
Tomas Votruba
5365b49bf8 Updated Rector to commit a4e7a4371a1a85f2dd3fcb9ec7d9de2a8a04d3b9
a4e7a4371a remove deprecated APPLY_AUTO_IMPORT_NAMES_ON_CHANGED_FILES_ONLY option
2022-12-03 10:32:39 +00:00
Tomas Votruba
c142c944a1 Updated Rector to commit 5936f82a40b1e9626718f224a6c1a981d789f582
5936f82a40 skip autoimport of docblocks too
2022-12-03 10:25:04 +00:00
Tomas Votruba
313379d206 Updated Rector to commit 2f0fca8ba89353a96a8f3a1aecdc8b5db028fc0f
2f0fca8ba8 remove deprecated RectorConfig::disableImportNames(), use importNames(false) instead
2022-12-03 10:17:25 +00:00
Tomas Votruba
425778e348 Updated Rector to commit 750758971cd05a576eb9928d5dbbad6fbc36d0d4
750758971c remove deprecated RectorConfig::disableImportShortClasses(), use importShortClasses(false) instead
2022-12-03 10:17:15 +00:00
Tomas Votruba
d61fad8ff5 Updated Rector to commit d4173d7a869cae0775c476dbce302cacb44f1e3a
d4173d7a86 remove no rector use
2022-12-03 10:10:49 +00:00
Tomas Votruba
df7c74ec60 Updated Rector to commit 16647397cc155594371858f316bd82e9dd436117
16647397cc [Php55] Handle crash on curly parentheses delimiter on PregReplaceEModifierRector (#3144)
2022-12-03 09:23:44 +00:00
Tomas Votruba
091bb20142 Updated Rector to commit 139c19cbdf666ce3df7dea712faaf84772f19051
139c19cbdf Fix foreach key evaluation for SimplifyForeachToArrayFilterRector. (#3100)
2022-12-03 07:01:22 +00:00
Tomas Votruba
c742d0130f Updated Rector to commit 12ea285bcd922dbacaaed44a4819c7ee3477b1c2
12ea285bcd simplify PHPStanStaticTypeMapper (#3143)
2022-12-02 15:40:44 +00:00
Tomas Votruba
8ed08b4e24 Updated Rector to commit 962dfc600487e2312c5a80fc675b57df29db5976
962dfc6004 return bare run
2022-12-02 14:16:42 +00:00
Tomas Votruba
3c99dc15fc Updated Rector to commit a31ae50227e48b078b9a3e78da55507a23127887
a31ae50227 Add Missing in Set Command to CI + complete sets from their category (#3141)
2022-12-02 14:15:07 +00:00
Tomas Votruba
91e646a878 Updated Rector to commit 7648780936ffae358b4f79230923ee61dde30e14
7648780936 Use Symfony 6.1 to avoid BC break now (#3142)
2022-12-02 14:00:07 +00:00
Tomas Votruba
9181dd5876 Updated Rector to commit 076642f73eee5814a096552c33b28740fbbd48ce
076642f73e [Scoper] Remove manual register DowngradeEnumToConstantListClassRector on config-downgrade.php (#3138)
2022-12-02 12:41:23 +00:00
Tomas Votruba
91f18482f3 Updated Rector to commit 076642f73eee5814a096552c33b28740fbbd48ce
076642f73e [Scoper] Remove manual register DowngradeEnumToConstantListClassRector on config-downgrade.php (#3138)
2022-12-02 12:28:08 +00:00
Tomas Votruba
949696b350 Updated Rector to commit 076642f73eee5814a096552c33b28740fbbd48ce
076642f73e [Scoper] Remove manual register DowngradeEnumToConstantListClassRector on config-downgrade.php (#3138)
2022-12-02 12:17:17 +00:00
Tomas Votruba
712a8e76ba Updated Rector to commit c2c4970b65302b216724ad1faa639354e487a30e
c2c4970b65 [Set] Add missing LevelSetList::UP_TO_PHP_53 (#3139)
2022-12-02 12:17:13 +00:00
Tomas Votruba
6a49e0a4b7 Updated Rector to commit 3699f33c2b928990e05fc17a1f2aec80966dfaec
3699f33c2b Remove symfony/property-access from require-dev (#3140)
2022-12-02 12:15:57 +00:00
Tomas Votruba
5e2e700040 Updated Rector to commit d2064068055fb25da2c245515a6c6260fbe6a597
d206406805 [PHP 8.1] Add other methods to ClassFromEnumFactory
2022-12-01 18:05:56 +00:00
Tomas Votruba
3d2c841cea Updated Rector to commit 4e15a691a006b0ee95df856ac18f8a2b399ccfad
4e15a691a0 temporarily skip list
2022-12-01 18:01:51 +00:00
Tomas Votruba
09f8be2dde Updated Rector to commit f387890dbeba0617f9a4f98f44ac1c8f08e6c1b0
f387890dbe [build] add enum to const list downgrade
2022-12-01 16:57:08 +00:00
Tomas Votruba
fc7f082962 Updated Rector to commit 22b612ef79a1437b891d94154285ad4a2a3e0576
22b612ef79 [Naming] Handle crash on VariableNaming::resolveBareFromNode() on unwrapNode() return null (#3136)
2022-12-01 14:39:21 +00:00
Tomas Votruba
ff75474d25 Updated Rector to commit 39f43c01cbc34a8bb064f056d39f1b8d2bd7a152
39f43c01cb Use Symfony ~6.1.x to avoid crash on update vendor-patch (#3134)
2022-12-01 14:10:32 +00:00
Tomas Votruba
9bae807e4c Updated Rector to commit 64c03bdd16b666a482a27fad2086b1539b7d557c
64c03bdd16 [TypeDeclaration] Deprecate unreliable AddArrayReturnDocTypeRector, used split strict typed rules instead (#3133)
2022-11-30 15:15:38 +00:00
Tomas Votruba
70b85c0532 Updated Rector to commit 36e9b6cf74173091196fd91c858f663e65bb9af1
36e9b6cf74 [build] remove docs from remote, to allow updates
2022-11-30 12:08:14 +00:00
Tomas Votruba
42cb6fc0b5 Updated Rector to commit b1e22bb59aa41b69ea3d0a0632978d3082e83c76
b1e22bb59a [docs] remove unused images
2022-11-30 12:04:40 +00:00
Tomas Votruba
80187d02e3 Updated Rector to commit e3d4d706ca862a201725cd545410e56306856c04
e3d4d706ca [docs] remove dobblock/comments section, way too detailed and not useful for general use
2022-11-30 11:49:42 +00:00
Tomas Votruba
b84808cfa7 Updated Rector to commit 7a65218f2442c2ad4e6d7ecbc55560408522fe08
7a65218f24 Remove auto import on changed files only to avoid too detailed setup and making ambiguous code (#3132)
2022-11-30 07:38:26 +00:00
Tomas Votruba
a91bb662d1 Updated Rector to commit 7331d043786c1f74eff315fcc1d55032e9939dfc
7331d04378 [TypeDeclaration] Use existing MakePropertyTypedGuard on TypedPropertyFromStrictConstructorRector (#3131)
2022-11-30 01:03:05 +00:00
Tomas Votruba
8c4eaabd37 Updated Rector to commit 02bdae0fcfae253c103638411300625f474aa67c
02bdae0fcf [TypeDeclaration] Skip doctrine collection type (#3130)
2022-11-29 20:32:30 +00:00
Tomas Votruba
9e5592263d Updated Rector to commit e28b04a36a9fc2020dd5d3ff97dfa322c61d17b4
e28b04a36a [TypeDeclaration] Make TypedPropertyFromStrictSetUpRector use Class_ (#3129)
2022-11-29 20:22:22 +00:00
Tomas Votruba
2f473df977 Updated Rector to commit e8e3bd5ed90bab56caef0c0fc5829e42efb9f9ba
e8e3bd5ed9 [TypeDeclaration] Skip property names in TypedPropertyFromStrictConstructorRector (#3128)
2022-11-29 19:26:20 +00:00
Tomas Votruba
ab712cfd9a Updated Rector to commit 571a1e6067342b21c2baaa10976103915299b0c6
571a1e6067 docs
2022-11-29 16:10:51 +00:00
Tomas Votruba
29f73e023d Updated Rector to commit 85845707ba3326888bf7a7287f942dfc9d0a6783
85845707ba [Php74] Register TypedPropertyFromAssignsRector to php74 config set (#3127)
2022-11-29 16:07:36 +00:00
Tomas Votruba
782f920c5f Updated Rector to commit 3f2a16a0166d301162482c91d2ead5e9125c0d14
3f2a16a016 [Php80] Make configurable INLINE_PUBLIC on ClassPropertyAssignToConstructorPromotionRector (#3126)
2022-11-29 15:48:49 +00:00
Tomas Votruba
05f2f137c6 Updated Rector to commit 2b35d2e75ea03ffe643c012485952ec6df3ea2ba
2b35d2e75e [TypeDeclaration] Move Rector Enterprise TypeDeclaration rules here (#3125)
2022-11-29 10:19:51 +00:00
Tomas Votruba
cbd1da8466 Updated Rector to commit 2b35d2e75ea03ffe643c012485952ec6df3ea2ba
2b35d2e75e [TypeDeclaration] Move Rector Enterprise TypeDeclaration rules here (#3125)
2022-11-28 20:42:41 +00:00
Tomas Votruba
789d270789 Updated Rector to commit ecec40ce9d1b075c65dbbbabe38dbd70d5a50df5
ecec40ce9d [DeadCode] Skip re-assigned variable in RemoveJustPropertyFetchRector (#3124)
2022-11-28 16:12:25 +00:00
Tomas Votruba
d60996d358 Updated Rector to commit 63ca8727cbf38fdbcc1a68c429ce3dc2340f268e
63ca8727cb [DeadCode] Fix RemoveJustPropertyFetchRector to skip concat assigns (#3123)
2022-11-28 15:58:59 +00:00
Tomas Votruba
7a4c4657bb Updated Rector to commit 67ec259ce70190a02d29c697dfb2d325f781d8aa
67ec259ce7 [TypeDeclaration] Disable and deprecate PropertyTypeDeclarationRector and TypedPropertyRector, to avoid breaks; use split strict rules instead (#3122)
2022-11-28 15:11:02 +00:00
Tomas Votruba
bcdfbe4726 Updated Rector to commit 6014da46149a6f8312c1931534eea48bafeda12d
6014da4614 Remove NonInformativeReturnTagRemover (#3121)
2022-11-28 14:43:16 +00:00
Tomas Votruba
6d4224583e Updated Rector to commit e3bea6625da7cce29eaa3d7016825be0d36e8a89
e3bea6625d typos
2022-11-28 12:58:17 +00:00
Tomas Votruba
3965103e78 Updated Rector to commit dd44b98fd9da53cdc02797a8b6400df514bf2438
dd44b98fd9 deprecate generic and breaking PropertyTypeDeclarationRector
2022-11-28 12:52:40 +00:00
Tomas Votruba
d192e83312 Updated Rector to commit 325387738852fd1be30b8918910b049967a368e2
3253877388 [TypeDeclaration] Remove and disable breaking ReturnTypeDeclarationRector, use split rules instead (#3120)
2022-11-28 12:49:02 +00:00
Tomas Votruba
09d2ee9618 Updated Rector to commit 696ddd92aa288b3ade2075688faef2b3d81f5101
696ddd92aa [TypeDeclaration] Remove existing type override in ReturnTypeDeclarationRector (#3119)
2022-11-28 12:26:04 +00:00
Tomas Votruba
44ed5df29f Updated Rector to commit 9ffa707afd96ae67e73d52a1e1dfab478d251e12
9ffa707afd Remove unused priority aware sorter etc (#3118)
2022-11-28 12:14:20 +00:00
Tomas Votruba
23a994ee6e Updated Rector to commit 183bb5bda001a9d8d7302a350fe4c8979dbe4f19
183bb5bda0 Remove ReturnTypeDeclarationReturnTypeInferer (#3117)
2022-11-28 12:02:35 +00:00
Tomas Votruba
7feb5bf3e3 Updated Rector to commit 742378fb0f73a07fd8d63c9dd41ea5f6b8021ef2
742378fb0f [TypeDeclaration] Add AddReturnTypeDeclarationFromYieldsRector (#3114)
2022-11-28 11:47:46 +00:00
Tomas Votruba
cc9387f91d Updated Rector to commit fdb9239a9f079bef34db3e0b864ebbc996022c12
fdb9239a9f [CodeQuality] Skip from non-typed param on SimplifyEmptyCheckOnEmptyArrayRector (#3115)
2022-11-28 10:39:45 +00:00
Tomas Votruba
060a00ccd9 Updated Rector to commit 93e87a1574bf15cb21a9d5eb0ef84d6a91a30f07
93e87a1574 [Php80] Do not remove existing attribute on NestedAnnotationToAttributeRector (#3116)
2022-11-28 10:38:42 +00:00
Tomas Votruba
cef35235bd Updated Rector to commit c72e697796062def8dff0db00d3ae875ec18fb3a
c72e697796 Remove return doc resolving from ReturnTypeDeclarationRector (#3113)
2022-11-28 01:16:49 +00:00
Tomas Votruba
84537d899c Updated Rector to commit 06a050a11a8466ede78981a4209f45e4c9e4e7a8
06a050a11a cs
2022-11-28 00:30:00 +00:00
Tomas Votruba
82b9caaed2 Updated Rector to commit 6a87f70301abfd2e521ed24ac7190ce234a06c26
6a87f70301 user error const
2022-11-28 00:28:34 +00:00
Tomas Votruba
10623e91f0 Updated Rector to commit a0db5e38beebe47e8d0edc84fb8148f57001649e
a0db5e38be remove from set
2022-11-28 00:23:25 +00:00
Tomas Votruba
105da345bb Updated Rector to commit ab670b487796369245cef17254d310b56805633c
ab670b4877 note
2022-11-28 00:21:32 +00:00
Tomas Votruba
116d294510 Updated Rector to commit 5eff14fcc51da2ba72b763be5cd60183b9db46bc
5eff14fcc5 Deprecated and remove AddArrayParamDocTypeRector to work with strict type declarations only (#3112)
2022-11-28 00:05:06 +00:00
Tomas Votruba
d27ad935cb Updated Rector to commit 83b13f530c9612a65ff921c994e7fa0cd29a21bf
83b13f530c Remove deprecated ParamTypeDeclarationRector, that treated docs as strict types to keep type declaration set reliable (#3111)
2022-11-27 23:28:48 +00:00
Tomas Votruba
997c77c140 Updated Rector to commit 0d8c29645d2beaf5e0c1b96215628e5bae16c7f5
0d8c29645d [TypeDeclaration] Decouple AddParamTypeFromPropertyTypeRector (#3109)
2022-11-27 23:03:34 +00:00
Tomas Votruba
7eb6b4b9d3 Updated Rector to commit f862bf997aa6cb52d0c2fa3ed75744e4da1b3475
f862bf997a Remove GetterNodeParamTypeInferer (#3108)
2022-11-27 21:45:20 +00:00
Tomas Votruba
9149620423 Updated Rector to commit ca8249d3c0abad56143d7ecd17b08fe4d0764e30
ca8249d3c0 Enable spl array rule (#3107)
2022-11-27 21:29:39 +00:00
Tomas Votruba
00d4ffef47 Updated Rector to commit 803fad69aeb8c9f417923e24d877c521e93df30a
803fad69ae Enable PHPUnit data provider rule (#3106)
2022-11-27 21:23:52 +00:00
Tomas Votruba
f0d81253f6 Updated Rector to commit 10c76b3d85cc21a8834cd8952ff47a6bbcbf5915
10c76b3d85 [TypeDeclaration] Add AddParamTypeSplFixedArrayRector (#3105)
2022-11-27 21:07:35 +00:00
Tomas Votruba
b492db7306 Updated Rector to commit 48febdb978201ffdd2d62ccb970ede09c3160134
48febdb978 [TypeDeclaration] Add AddParamTypeBasedOnPHPUnitDataProviderRector + remove too narrow KnownArrayParamTypeInferer (#3104)
2022-11-27 17:56:33 +00:00
Tomas Votruba
566033e175 Updated Rector to commit 2af3c7fb68f59fbc5f8ffee9a4fa80d430331159
2af3c7fb68 Deprecated type-declaration-strict to type-declaration set, as single group of rules (#3103)
2022-11-27 16:42:00 +00:00
Tomas Votruba
067bd1245f Updated Rector to commit 1f8c88a5f1966ba9f3ec740f8c9bebc13f6d46f4
1f8c88a5f1 fix reporting on renamed proeprty match type (#3098)
2022-11-26 13:09:30 +00:00
Tomas Votruba
3b829bfdce Updated Rector to commit 07b529abc4a1e8cd8ebe0ea90333a15016ab5062
07b529abc4 [BetterPhpDocParser] Call phpdocInfo->markAsChanged() on change param/return type on PhpDocTypeChanger (#3099)
2022-11-26 13:08:12 +00:00
Tomas Votruba
05578e7653 Updated Rector to commit f37a6eb0de44306065b24137a7922190622f5ccc
f37a6eb0de Add ClassOnThisVariableObjectRector to rules docs (#3096)
2022-11-26 10:04:16 +00:00
Tomas Votruba
f4d905239b Updated Rector to commit 9a93704c5aa267807287645f9d07772a554ac960
9a93704c5a Add parent constructor call only once (#3094)
2022-11-26 09:45:45 +00:00
Tomas Votruba
0442e9ecd7 Updated Rector to commit c98ec0e60219fdde5842e6efe0afa6848c5d3f5e
c98ec0e602 Fix ClassOnThisVariableObjectRector code example (#3095)
2022-11-26 09:30:32 +00:00
Tomas Votruba
e7ef0c8412 Updated Rector to commit 1e8ffcc6a113ae4ad2a3e04b86d2f7ef22bbac01
1e8ffcc6a1 [Php80] Add ClassOnThisVariableObjectRector (#3093)
2022-11-25 23:37:32 +00:00
Tomas Votruba
96db1edee6 Updated Rector to commit 8ef808705cd8f467602f2411ec831552648295ae
8ef808705c deprecate createShortClassConstFetch() as the FQN must be used by convention (#3092)
2022-11-25 15:33:24 +00:00
Tomas Votruba
bd5d4027f7 Updated Rector to commit 8ef808705cd8f467602f2411ec831552648295ae
8ef808705c deprecate createShortClassConstFetch() as the FQN must be used by convention (#3092)
2022-11-25 15:17:49 +00:00
Tomas Votruba
aecb5f86de Updated Rector to commit 8ef808705cd8f467602f2411ec831552648295ae
8ef808705c deprecate createShortClassConstFetch() as the FQN must be used by convention (#3092)
2022-11-25 15:06:04 +00:00
Tomas Votruba
d446f7302b Updated Rector to commit 7842486329539de6901544f0e50707b6a2aea29e
7842486329 Fix few rules reporting in case of no change (#3090)
2022-11-24 14:41:27 +00:00
Tomas Votruba
4a64f39171 Updated Rector to commit 7842486329539de6901544f0e50707b6a2aea29e
7842486329 Fix few rules reporting in case of no change (#3090)
2022-11-24 14:31:52 +00:00
Tomas Votruba
91fba736ad Updated Rector to commit b981b372c1d56437ad16c19bcace3f94fe7519c7
b981b372c1 end of line
2022-11-24 11:55:01 +00:00
Tomas Votruba
c856b5faf0 Updated Rector to commit a9372bb3e90aa966412b2deab075a44769bb119c
a9372bb3e9 Add list-rules command for tool interoperabtility (#3087)
2022-11-23 11:11:18 +00:00
Tomas Votruba
8b12bd8a12 Updated Rector to commit 335d593e34bbc124a505bdb150eb971fb92a0e87
335d593e34 [TypeDeclaration] Handle return self on TypedPropertyFromStrictGetterMethodReturnTypeRector on php 8.0 feature enabled (#3088)
2022-11-23 10:02:01 +00:00
Tomas Votruba
ed44a0660b Updated Rector to commit 30afbb8da236ab0935851b91a7fb4b5cf26aa2e8
30afbb8da2 Fix StrContainsRector when strpos offset is set (#3086)
2022-11-23 07:31:53 +00:00
Tomas Votruba
fde9488adf Updated Rector to commit 30afbb8da236ab0935851b91a7fb4b5cf26aa2e8
30afbb8da2 Fix StrContainsRector when strpos offset is set (#3086)
2022-11-22 20:11:10 +00:00
Tomas Votruba
8a05dae6dd Updated Rector to commit 30afbb8da236ab0935851b91a7fb4b5cf26aa2e8
30afbb8da2 Fix StrContainsRector when strpos offset is set (#3086)
2022-11-22 20:03:52 +00:00
Tomas Votruba
f4e86ad8b3 Updated Rector to commit eddc376c77b1211e055e7cdbc8214c3d1dae3d8a
eddc376c77 [Core] Remove RectifiedNode value object for RectifiedAnalyzer (#3079)
2022-11-21 17:08:26 +00:00
Tomas Votruba
d164f1a05f Updated Rector to commit eddc376c77b1211e055e7cdbc8214c3d1dae3d8a
eddc376c77 [Core] Remove RectifiedNode value object for RectifiedAnalyzer (#3079)
2022-11-21 16:16:00 +00:00
Tomas Votruba
957a902ebd Updated Rector to commit eddc376c77b1211e055e7cdbc8214c3d1dae3d8a
eddc376c77 [Core] Remove RectifiedNode value object for RectifiedAnalyzer (#3079)
2022-11-21 14:49:30 +00:00
Tomas Votruba
a5406b6411 Updated Rector to commit eddc376c77b1211e055e7cdbc8214c3d1dae3d8a
eddc376c77 [Core] Remove RectifiedNode value object for RectifiedAnalyzer (#3079)
2022-11-20 12:34:31 +00:00
Tomas Votruba
e5b061e232 Updated Rector to commit 23c2282d9aecc36c9123656be3b39dc8edca795e
23c2282d9a [ci] run phpstan on packages too to detect bugs in configs (#3081)
2022-11-19 12:05:34 +00:00
Tomas Votruba
75e646ce54 Updated Rector to commit 6c7caa63c4025b47a382cd2e28b6f05fbcb55e71
6c7caa63c4 Reverts Use MethodCallRename directly (#3080)
2022-11-19 11:50:17 +00:00
Tomas Votruba
141dc65509 Updated Rector to commit 24b9eb7a4cf97a05b66163545a9d315e0f15d7f5
24b9eb7a4c [Core] Refactor CreatedByRuleDecorator to make consistent check for consecutive same Rector run (#3078)
2022-11-19 07:50:13 +00:00
Tomas Votruba
87bf8a85b4 Updated Rector to commit 31bf9e468a1c271296236e6363a4d7e69f7f73c1
31bf9e468a Use MethodCallRename directly (#3077)
2022-11-18 21:07:17 +00:00
Tomas Votruba
f30d1123a7 Updated Rector to commit 0d16e131d69ce999dea28bde40af1f6be3edbd7d
0d16e131d6 remove monolog 2.0 set, only marginal and beyond full path (#3076)
2022-11-18 20:56:35 +00:00
Tomas Votruba
3a59daa588 Updated Rector to commit a1ec5d278803a7f31105911da8063ca42ded2735
a1ec5d2788 Cleanup PHPStan errors (#3075)
2022-11-18 20:47:19 +00:00
Tomas Votruba
dcc7f6941e Updated Rector to commit b5ddb028c0b29c03b20fb4967f88873ddfd42411
b5ddb028c0 Skip MakeTypedPropertyNullableIfCheckedRector for constructor assigment. (#3074)
2022-11-18 00:08:55 +00:00
Tomas Votruba
d085266247 Updated Rector to commit a1df08d2dfe392f42b58288c47646e2a565851dc
a1df08d2df [Core] Connect Expression parent Node on transform Stmt to Expr (#3071)
2022-11-17 10:57:22 +00:00
Tomas Votruba
8360fa1a7a Updated Rector to commit a8f322ad7e93f7902fca0a057e8d604482f71080
a8f322ad7e [Core] Remove BetterStandardPrinter::pStmt_Class() (#3072)
2022-11-17 10:44:46 +00:00
Tomas Votruba
ad35b62266 Updated Rector to commit 8ac960d30cd26f5e071cda5835e4df5c26d30314
8ac960d30c fix(UpdateFileNameByClassNameFileSystemRector): compare shortClass Wi… (#3070)
2022-11-16 21:18:32 +00:00
Tomas Votruba
4c8be8a104 Updated Rector to commit 07941b8f3dd7151db77df19243aed5c03a64cf63
07941b8f3d [SimplifyEmptyCheckOnEmptyArrayRector] Add new rule #7485 (#3069)
2022-11-16 15:33:33 +00:00
Tomas Votruba
18779fffd6 Updated Rector to commit 4140e7807611cb29cfcdd768e86a9203b0c69b9b
4140e78076 [Core] Handle no scope crash on foreach value with array item variable (#3068)
2022-11-16 14:19:15 +00:00
Tomas Votruba
18b5311e05 Updated Rector to commit fa9a953fc8df6d31c24b0415b177580f7edd4100
fa9a953fc8 [Php80] Skip possible numeric string switch cond with all integer case cond on ChangeSwitchToMatchRector (#3067)
2022-11-15 20:31:43 +00:00
Tomas Votruba
42553ae453 Updated Rector to commit 1b236c8ae8f497c445a136bf0361aa99e4cd865e
1b236c8ae8 Utilize Type->isString() (#3063)
2022-11-15 15:43:41 +00:00
Tomas Votruba
b0ce719527 Updated Rector to commit 04257d3c76ee23722447433f07c8e5678ac9a07b
04257d3c76 Utilize Type->isArray() (#3065)
2022-11-15 15:22:43 +00:00
Tomas Votruba
e05478f2e2 Updated Rector to commit e78e4727d513475187dae0300f78ef70043379f9
e78e4727d5 Utilize Type->isString() in rules/ (#3064)
2022-11-15 00:01:27 +00:00
Tomas Votruba
f714817bb9 Updated Rector to commit f094438f26f1795a0c4c991aaeaeda37389aff8c
f094438f26 [README] Remove ci status for phpoffice, as standalone package
2022-11-14 15:22:22 +00:00
Tomas Votruba
e6a22bed57 Updated Rector to commit c12f90964a75280c3803eb1c147c51d570411985
c12f90964a Make Rector PHPOffice optional package, as only migrates ~7 years old version (#3061)
2022-11-14 15:07:52 +00:00
Tomas Votruba
46ee9a173a Rector 0.14.8 2022-11-14 14:09:49 +00:00
Tomas Votruba
e97dbec59e Updated Rector to commit 2af80959bc599d7318c1fe4f1662c411937634be
2af80959bc [Caching] Fix cache consecutive run rector with --dry-run (#3060)
2022-11-13 08:57:38 +00:00
Tomas Votruba
cf32f86c20 Updated Rector to commit 419c4f8e5268854e234b14e62dfc2d90d904951b
419c4f8e52 [automated] Re-Generate Nodes/Rectors Documentation (#3059)
2022-11-13 00:36:04 +00:00
Tomas Votruba
3495067553 Updated Rector to commit 2be958b4e4db947c63777443eafb886274a5c7c7
2be958b4e4 [Core] Fix resolve scope handling when parent Node just re-printed (#3056)
2022-11-12 18:05:41 +00:00
Tomas Votruba
c976b41d9f Updated Rector to commit 2be958b4e4db947c63777443eafb886274a5c7c7
2be958b4e4 [Core] Fix resolve scope handling when parent Node just re-printed (#3056)
2022-11-12 17:49:29 +00:00
Tomas Votruba
142e95d9c7 Updated Rector to commit 295c489f26f3509e9980ea0529137e710e7227e3
295c489f26 Update PHP-Parser to ^4.15.2 (#3057)
2022-11-12 17:44:08 +00:00
Tomas Votruba
4464342ec0 Updated Rector to commit 03f627b38589a03c59108e71d66fb3c04bf0dacf
03f627b385 count
2022-11-12 10:21:30 +00:00
Tomas Votruba
311b8e7d20 Updated Rector to commit 3fd129ff50ca57f219130fe9665bd4951fac42bd
3fd129ff50 remove NodeTypeAnalyzer (#3055)
2022-11-12 09:58:36 +00:00
Tomas Votruba
726ca40b8d Updated Rector to commit 64f4a55aa43b1197247637192b04bc48c7a77877
64f4a55aa4 [Core] Use parent attribute check instead of origNode for check update and connect parent node after refactor (#3054)
2022-11-12 03:26:34 +00:00
Tomas Votruba
d48b0e7654 Updated Rector to commit a8fd5aacc7d1adc87d971e29604deacdcc3376c1
a8fd5aacc7 Re-print on constructor promotion (#3051)
2022-11-11 18:10:55 +00:00
Tomas Votruba
393315b792 Updated Rector to commit 21b1ff921f15c820d065a9bc288bf18dc7ecb94f
21b1ff921f [Core] Improve performance: remove unnecessary loop on SimpleCallableNodeTraverser (#3053)
2022-11-11 18:00:09 +00:00
Tomas Votruba
db8311e52e Updated Rector to commit e28e7a18fe894974b31eae2fa2ff829a130a8a05
e28e7a18fe Use the correct word (#3052)
2022-11-11 15:03:05 +00:00
Tomas Votruba
9a86942399 Updated Rector to commit 86c0920bdf0222f3c3e6ddf8490804f428a39fae
86c0920bdf [Init] Add smart paths detection to init command to make first Rector experience better (#3050)
2022-11-11 14:53:57 +00:00
Tomas Votruba
44bd6589c7 Updated Rector to commit e3ff080a96e2efbcd4a62c07b44ef4f950bd023d
e3ff080a96  [Core] Improve performance on NodeComparator  (#3049)
2022-11-11 13:43:14 +00:00
Tomas Votruba
73bd079d75 Updated Rector to commit 21ead88cdeef5013e635c9e4eb2a22456d6e93e9
21ead88cde [Core] Improve performance: remove unnecessary loop StmtsAwareInterface to fill Scope on PHPStanNodeScopeResolver (#3048)
2022-11-11 13:35:09 +00:00
Tomas Votruba
fac0875c1b Updated Rector to commit fced569c7d60f32dbe3bc02e7ba8b64dd5aeef0f
fced569c7d [Core] Improve performance: only update and connect parent Node when different Node (#3044)
2022-11-11 11:49:04 +00:00
Tomas Votruba
04b65fc52f Updated Rector to commit 4d931030cb41813a2cfc90d5f7f7a1825ae87686
4d931030cb [Core] Improve performance: verify consecutive execute same Rector Rule when Original Node is Null (#3047)
2022-11-11 11:48:30 +00:00
Tomas Votruba
e974c922b9 Updated Rector to commit b31bb42c902e6de649cb1228579be72023c171ec
b31bb42c90 [Php81] Register uniqid function on NullToStrictStringFuncCallArgRector (#3045)
2022-11-11 11:47:05 +00:00
Tomas Votruba
3bcc7247cb Updated Rector to commit ac8fc4c418132ab78ca3c0d61d8533bf530fe58f
ac8fc4c418 [Core] Improve performance: only reindex Node Attributes when Original Node is not null (#3043)
2022-11-11 11:46:13 +00:00
Tomas Votruba
197d502349 Updated Rector to commit 51c2bbe321adb08bb8f35cb8ce71f61fc456fcd4
51c2bbe321 [Php81][Restoration] Handle crash on ReadOnlyPropertyRector+MakeTypedPropertyNullableIfCheckedRector (#3046)
2022-11-11 11:41:25 +00:00
Tomas Votruba
d72c3a41d9 Updated Rector to commit 8ede862b8de3239aafea64484802903aaa6d5e95
8ede862b8d Update phpstan message (#3042)
2022-11-10 16:47:52 +00:00
Tomas Votruba
b7d3b6ee6d Updated Rector to commit baf8394798205ee0d9c6f27e72f018e0996e624f
baf8394798 Fix var/property usage for RemoveUnusedNonEmptyArrayBeforeForeachRector. (#3040)
2022-11-10 14:51:25 +00:00
Tomas Votruba
728e63c6c2 Updated Rector to commit baf8394798205ee0d9c6f27e72f018e0996e624f
baf8394798 Fix var/property usage for RemoveUnusedNonEmptyArrayBeforeForeachRector. (#3040)
2022-11-10 13:29:01 +00:00
Tomas Votruba
d9e32f78d0 Updated Rector to commit baf8394798205ee0d9c6f27e72f018e0996e624f
baf8394798 Fix var/property usage for RemoveUnusedNonEmptyArrayBeforeForeachRector. (#3040)
2022-11-10 07:49:28 +00:00
Tomas Votruba
329458c65d Updated Rector to commit 10c6a3047fde6a6a2f94c9260dc3482de6e7f5c0
10c6a3047f [Php80] Add ::class support on GetDebugTypeRector (#3039)
2022-11-08 13:37:31 +00:00
Tomas Votruba
bba6495f7d Updated Rector to commit 10346eea20d2222819f59b2ae994acc0948352e4
10346eea20 Apply node->isFirstCallable() check early before ->getArgs() when possible on CallLike (#3038)
2022-11-07 17:28:06 +00:00
Tomas Votruba
bde184a1bc Updated Rector to commit 84361b82b630d31b49b009b46bdd3b1312ced2e8
84361b82b6 try bumping scoper 0.17.7
2022-11-07 09:45:55 +00:00
Tomas Votruba
c0fad45833 Updated Rector to commit 49917308b21560e58d22e7faec5924261d12ec4c
49917308b2 Clarify SwapFuncCallArguments rule documentation (#3036)
2022-11-07 09:45:26 +00:00
Tomas Votruba
1d6c26bf79 Updated Rector to commit 5aa424865a1cadfa260a14d101d46fda76ec087e
5aa424865a [Core] Typo fix on @param callable on ForeachManipulator and BinaryOpManipulator (#3035)
2022-11-07 09:33:09 +00:00
Tomas Votruba
cc3b0a4b46 Updated Rector to commit b7a64276d51f16a3c5cd7af482a20c6c9f70c656
b7a64276d5 [Php55] Handle crash on ([[:upper:]]+) regex on PregReplaceEModifierRector (#3037)
2022-11-07 09:32:02 +00:00
Tomas Votruba
0d82d6bf1d Updated Rector to commit 64d0a8375814c9da2fe93036e4c0fa5fbf06aa25
64d0a83758 [Php80][CodeQuality] Handle crash on ExplicitMethodCallOverMagicGetSetRector+ChangeSwitchToMatchRector (#3034)
2022-11-05 11:30:02 +00:00
Tomas Votruba
f9414241aa Updated Rector to commit 64d0a8375814c9da2fe93036e4c0fa5fbf06aa25
64d0a83758 [Php80][CodeQuality] Handle crash on ExplicitMethodCallOverMagicGetSetRector+ChangeSwitchToMatchRector (#3034)
2022-11-05 11:18:42 +00:00
Tomas Votruba
3553aaba0e Rector 0.14.7 2022-11-04 08:48:40 +00:00
Tomas Votruba
ce3c134b0d Updated Rector to commit a5051ff31121d95ac2ccf7db351ea486024a0b3f
a5051ff311 Bump to PHPStan ^1.9.0 (#3033)
2022-11-04 07:12:49 +00:00
Tomas Votruba
ecee0c4cb7 Updated Rector to commit 7dae36df19a081561ca342751d9727eff503106b
7dae36df19 Register driftingly/rector-laravel for community package (#3031)
2022-11-02 14:48:20 +00:00
Tomas Votruba
896854b9a6 Updated Rector to commit 92a5c65cc2ce07fcdffecce0344c4878184cb7cb
92a5c65cc2 [Php81] Skip on Array Destructuring on ReadOnlyPropertyRector (#3030)
2022-11-02 13:07:49 +00:00
Tomas Votruba
1724f088d6 Updated Rector to commit 6902b17851f2b7172c0351e72cd1d4263684818f
6902b17851 InlineConstructorDefaultToPropertyRector fix code example (#7465) (#3028)
2022-11-02 00:04:20 +00:00
Tomas Votruba
6afda57164 Updated Rector to commit 9e4a9c0c25fbbd630cac07c9dab074f8dc9c54b8
9e4a9c0c25 [CodeQuality] Add TernaryEmptyArrayArrayDimFetchToCoalesceRector (#3027)
2022-11-01 19:57:56 +00:00
Tomas Votruba
ddc864eff4 Updated Rector to commit 7b7d5a4b8bb61b52a298cbf941b7df131897f55b
7b7d5a4b8b Revert string specific identifier values on Type Mappers (#3024)
2022-11-01 14:15:38 +00:00
Tomas Votruba
f424fd6a95 Updated Rector to commit 7b7d5a4b8bb61b52a298cbf941b7df131897f55b
7b7d5a4b8b Revert string specific identifier values on Type Mappers (#3024)
2022-10-30 11:16:14 +00:00
Tomas Votruba
b7fb4398da Updated Rector to commit 997e5f4ae8c388b8a12d16539e8109fe821e8fd6
997e5f4ae8 [TypeDeclaration] Skip intersection with iterable on ReturnTypeDeclarationRector on php 8.1 feature enabled (#3022)
2022-10-29 10:54:11 +00:00
Tomas Votruba
0f38f3753c Updated Rector to commit af4cf28751f652d2ee1a8319d6cb39bf8614a1c1
af4cf28751 [DX] Use directly instanceof (#3021)
2022-10-28 10:16:48 +00:00
Tomas Votruba
34ee94e559 Updated Rector to commit 81d79a85ee8b75e8e61800aefffb3286e870109b
81d79a85ee [PHPStan] Fix Multiple services of type PHPStan\Rules\PHPUnit\CoversHelper on require phpstan-phpunit ^1.2.1 (#3020)
2022-10-28 09:01:53 +00:00
Tomas Votruba
52256749df Updated Rector to commit 40ab9ab2b4d529c8d465d5730c29b09efd5ed3ba
40ab9ab2b4 Move Rector Laravel to the community (#3019)
2022-10-27 17:45:09 +00:00
Tomas Votruba
d8598b36c0 Updated Rector to commit 4bf158721cf9fb872cda789f446709e6967a983f
4bf158721c [Php80] Handle nested annotation not end with () on AnnotationToAttributeRector (#3017)
2022-10-27 16:27:05 +00:00
Tomas Votruba
37117895cd Updated Rector to commit 478cf1456091c3c095870588ebf2cd7a94672264
478cf14560 pin phpstan/phpstan-phpunit to 1.1.3 (#3018)
2022-10-27 12:57:23 +00:00
Tomas Votruba
ccac2c982e Updated Rector to commit b46d5f50092e61888943960a5320e77822e047c3
b46d5f5009 [DeadCode] Handle crash on has first class callable on RemoveUnusedConstructorParamRector (#3015)
2022-10-26 09:00:10 +00:00
Tomas Votruba
2d8d2f847a Updated Rector to commit d82ef173e81083a942087f1bced44c3ba77145fc
d82ef173e8 [Core] Improve RectifiedAnalyzer: no need to check created by rule when original Node is null (#3014)
2022-10-25 14:59:55 +00:00
Tomas Votruba
39e69b0939 Updated Rector to commit a59fd4879215f2c831e863894fe3447144d5feaf
a59fd48792 Upgrade deprecated set-* (#3013)
2022-10-25 14:01:23 +00:00
Tomas Votruba
b9c04e2a17 Updated Rector to commit a59fd4879215f2c831e863894fe3447144d5feaf
a59fd48792 Upgrade deprecated set-* (#3013)
2022-10-24 17:38:27 +00:00
Tomas Votruba
f9e1eca05d Updated Rector to commit 5131abdb5a98a12658c4d13af3c2be655456bf43
5131abdb5a [EarlyReturn] Handle crash on RemoveAlwaysElseRector+ReturnEarlyIfVariableRector (#3011)
2022-10-24 16:11:57 +00:00
Tomas Votruba
c07fbf550b Updated Rector to commit f915a1f1c9c178fa40f7443dab547397245be278
f915a1f1c9 [Php80] Skip callable type different definition on ClassPropertyAssignToConstructorPromotionRector (#3010)
2022-10-24 08:19:06 +00:00
Tomas Votruba
e17cd185d3 Updated Rector to commit b4c0637b1f59b5110a41205df6af51105bee7520
b4c0637b1f Register Ctype functions (#3008)
2022-10-23 13:38:34 +00:00
Tomas Votruba
c3426445a0 Updated Rector to commit 0f1af3c50904de090dcbbf89460de3ad83169055
0f1af3c509 [Php80] Handle crash on extends \mysqli on AddParamBasedOnParentClassMethodRector (#3009)
2022-10-23 13:36:33 +00:00
Tomas Votruba
d5ca88382b Updated Rector to commit 64b241f9922cebf368dc705c7931404e32980852
64b241f992 [AutoImport] Add support use existing imported short name (#3005)
2022-10-22 12:50:23 +00:00
Tomas Votruba
10e29c44d8 Updated Rector to commit 81e326c2ff3957fe65c2bba5a85bad57887c7c8f
81e326c2ff [DeadCode] Handle RemoveUnusedPrivateMethodRector+RemoveDuplicatedIfReturnRector when private method used in FuncCall with ArrowFunction (#3007)
2022-10-22 09:55:21 +00:00
Tomas Votruba
65d5921fd9 Updated Rector to commit 1dcd9faf6d5eae5b911f764c6877343774b6a359
1dcd9faf6d [Core] Move currentFileProvider->setFile() early before loop on PhpFileProcessor::process() (#3006)
2022-10-22 09:54:30 +00:00
Tomas Votruba
48bf5c84cd Updated Rector to commit befc5441a1ef5c19cabf9cae0619d5c2cd23a028
befc5441a1 Add real path to filePaths when not false (#3004)
2022-10-21 10:12:40 +00:00
Tomas Votruba
ab87062075 Updated Rector to commit 4cecebfd7e86cafd9e09f8e1fd493046aa1181ea
4cecebfd7e [Down_To_PHP71] Handle Downgrade Param Widening + Downgrade Reflection Get on DowngradeLevelSetList::DOWN_TO_PHP_71 (#3001)
2022-10-20 07:40:24 +00:00
Tomas Votruba
e8603ff6cb Updated Rector to commit e4ec1f9d52d17b7d9f0effe1230f2e0778156ba4
e4ec1f9d52 [Php70] Handle crash on First class callable on ThisCallOnStaticMethodToStaticCallRector (#3003)
2022-10-19 11:11:32 +00:00
Tomas Votruba
edd2c3657d Updated Rector to commit 71ffc807faa4ee0ec144d5a7b6051a7c86c730c8
71ffc807fa Update all classlike pseudo rector (#3002)
2022-10-18 11:35:10 +00:00
Tomas Votruba
fe83c2a756 Updated Rector to commit 56620a9e3f49a1a71c6586752c9d5f67c0e7281c
56620a9e3f [CodeQuality] Skip different array_filter value on SimplifyEmptyArrayCheckRector (#3000)
2022-10-17 13:38:23 +00:00
Tomas Votruba
f459d3e9f0 Updated Rector to commit 63976bccf69c247b0a47407fb9d8f92daee4f94e
63976bccf6 Compatibility with BetterReflection 6.x (#2999)
2022-10-17 13:37:08 +00:00
Tomas Votruba
cb2aa6330e Updated Rector to commit 71b1142ee41eceef21d9c3d3a1bf5bc4f67ad9d2
71b1142ee4 [CodeQuality] Skip different value left and right on SimplifyEmptyArrayCheckRector (#2998)
2022-10-17 09:13:38 +00:00
Tomas Votruba
5929517b01 Updated Rector to commit ac76ba0e96b5fe71e38ee28e1a63e81e412199ab
ac76ba0e96 Split test fixture (#2996)
2022-10-16 14:22:53 +00:00
Tomas Votruba
20e9e232f5 Updated Rector to commit d0f2b3a33b8dbd832b635a2ddb436dd9b91d5337
d0f2b3a33b Add greater than test fixture (#2995)
2022-10-16 09:54:22 +00:00
Tomas Votruba
292c8dba69 Updated Rector to commit 5d1f686bc072284b8d2b1319dd34cdbeb7c1010b
5d1f686bc0 NullToStrictStringFuncCallArgRector - Register a few more functions (#2994)
2022-10-16 08:59:58 +00:00
Tomas Votruba
5a0db977a5 Updated Rector to commit 34040f38fa28b4980b3ba755dc6990afdd8fd613
34040f38fa [CodeQuality] Register SimplifyUselessLastVariableAssignRector to code-quality config set (#2993)
2022-10-16 07:31:59 +00:00
Tomas Votruba
0488330c62 Updated Rector to commit 7b1b3568da825c850f5a8338d55edb108e77f845
7b1b3568da [automated] Re-Generate preload.php (#2992)
2022-10-16 00:46:44 +00:00
Tomas Votruba
e615742886 Rector 0.14.6 2022-10-15 22:58:22 +00:00
Tomas Votruba
4f7e013ec1 Updated Rector to commit ee222b28938a1debe2849c45660097eb1d6eeb5f
ee222b2893 Assert JoinColumns in CPP should be converted (#2991)
2022-10-15 22:34:17 +00:00
Tomas Votruba
ee8ab57a67 Updated Rector to commit f4f758c7431f66bc97a019eb53055d05c15705c6
f4f758c743 Fix missing extra import on NestedAnnotationToAttributeRector (#2989)
2022-10-15 22:31:48 +00:00
Tomas Votruba
2c34505711 Updated Rector to commit ea25cb04aa92e0961a120347daaf7590e8c83782
ea25cb04aa apply rector (#2990)
2022-10-15 21:17:53 +00:00
Tomas Votruba
de1025734c Updated Rector to commit 4f8a0ad5194898f6947276b308c53e391cf524ac
4f8a0ad519 Add new rule to simplify a last useless variable assignment. (#2963)
2022-10-15 15:39:52 +00:00
Tomas Votruba
a018694585 Updated Rector to commit ee04ee1dc59ff0a6c3ff5d6558612dce7757a8f2
ee04ee1dc5 Fix multi property default assign (#2986)
2022-10-14 16:51:28 +00:00
Tomas Votruba
6fe76031c4 Updated Rector to commit 2427c5a094a39018e0c558482faf218d577e3382
2427c5a094 [Php80] Handle crash after transform with trait-string on UnionTypesRector (#2985)
2022-10-14 09:48:08 +00:00
Tomas Votruba
25d0f35ef8 Updated Rector to commit 1bf154701ccf924896e9a318947d731ea865d273
1bf154701c Improve docs on auto import short classes (#2983)
2022-10-13 23:39:22 +00:00
Tomas Votruba
0427ebc0e1 Updated Rector to commit 84a720bc93a7ecbce501f2afdff755ac12174a72
84a720bc93 [Core][Symfony] Handle crash on get dynamic value ClassConstFetch by method call on ChangeStringCollectionOptionToConstantRector (#2984)
2022-10-13 23:35:13 +00:00
Tomas Votruba
ed0b84e86c Updated Rector to commit 888c63cc9bae31b8ab77dfff059b9d2727341c87
888c63cc9b [Core] Ensure refresh Scope Nodes when AbstractRector refactor() return array of Nodes (#2979)
2022-10-13 11:08:50 +00:00
Tomas Votruba
81fd8afd56 Updated Rector to commit ef8a8171a9662414b9d17c2a56598d9db88b4224
ef8a8171a9 added test fixture for failing FinalizeClassesWithoutChildrenRector (#2957)
2022-10-13 11:06:11 +00:00
Tomas Votruba
c694bb8a08 Updated Rector to commit c304b15884418eeba88cebd2a8f090e0abafbaa1
c304b15884 [Core] Remove second param on ClassLikeAstResolver::resolveClassFromClassReflection() (#2975)
2022-10-13 11:06:06 +00:00
Tomas Votruba
2963192515 Updated Rector to commit 61914e8e273731e67634f881c6940308bd13e3b3
61914e8e27 spacing
2022-10-13 02:37:47 +00:00
Tomas Votruba
0fd54107b5 Updated Rector to commit e9cb0c3411acd8ab6c883194f21e12b9f69429ba
e9cb0c3411 remove old docs testing
2022-10-13 02:37:15 +00:00
Tomas Votruba
1017302022 Updated Rector to commit 0323435d1094c957489c25998defcee655ef5753
0323435d10 single version
2022-10-13 02:26:28 +00:00
Tomas Votruba
19fe61ce3e Updated Rector to commit bb6603dec92c331eac49c2e4ab4bff01cff1fd74
bb6603dec9 slash
2022-10-13 02:15:20 +00:00
Tomas Votruba
cf91d46f0b Updated Rector to commit 2ba0aa6297b0ccc405564cb76c9f9fb939ac8348
2ba0aa6297 syntax
2022-10-13 02:02:59 +00:00
Tomas Votruba
078b535f61 Updated Rector to commit 68a349061e4733a1708ee272bce2f75a35042021
68a349061e [Privatization] Skip Property unsetted on ChangeReadOnlyPropertyWithDefaultValueToConstantRector (#2981)
2022-10-09 10:55:25 +00:00
Tomas Votruba
97ec379206 Updated Rector to commit 68a349061e4733a1708ee272bce2f75a35042021
68a349061e [Privatization] Skip Property unsetted on ChangeReadOnlyPropertyWithDefaultValueToConstantRector (#2981)
2022-10-09 08:01:35 +00:00
Tomas Votruba
a70b7800cb Updated Rector to commit 8392cf7c378864626a186c79be34b0fb488671ce
8392cf7c37 [automated] Re-Generate preload.php (#2982)
2022-10-09 00:43:31 +00:00
Tomas Votruba
32c7260742 Updated Rector to commit 1d88337fd2a40fec23671eb7e8662d4ad95a3187
1d88337fd2 [TypeDeclaration] Handle Parent ClassMethod has no Return_ stmt on ReturnTypeDeclarationRector (#2980)
2022-10-07 23:55:31 +00:00