Commit Graph

3073 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Tomas Votruba
07746f72b0 Updated Rector to commit 0c2b4f7732587b7ed55b3279a7807c09162ad010
0c2b4f7732 [Core] Set compatible with latest BetterReflection usage to handle assert( > 0) notice (#2978)
2022-10-05 19:14:06 +00:00
Tomas Votruba
00c000da8f Updated Rector to commit d6b984564dc6ea97b294e54ebb4bfdad76877063
d6b984564d [Php80] Handle crash on nullable scalar with mixed param on MixedTypeRector (#2977)
2022-10-05 15:34:16 +00:00
Tomas Votruba
edf6290721 Updated Rector to commit d2ff17ea434ef68e13e62126ec463002e861eaba
d2ff17ea43 [Php81] Skip assigned after defined as constructor promotion on ReadOnlyPropertyRector (#2976)
2022-10-05 09:16:10 +00:00
Tomas Votruba
65656583c8 Updated Rector to commit f8e42e16e1f153548d727bda550330ceeca223a5
f8e42e16e1 require default format in CI as well
2022-10-04 08:36:31 +00:00
Tomas Votruba
7c3354e47c Updated Rector to commit ae60cb41904b30c959d49b3e081cb54c83633479
ae60cb4190 Fix wrong results in ExactCompareFactory (#2973)
2022-10-04 08:17:49 +00:00
Tomas Votruba
3c051cd6bd Updated Rector to commit 2ac5ffd98c9481680beae28c189f0e5b0a484a65
2ac5ffd98c Use better composer-unused (#2972)
2022-10-03 19:46:56 +00:00
Tomas Votruba
d2b8353351 Updated Rector to commit 3d6a61aa0e3ef082d857e7f0aa20074d7e51516e
3d6a61aa0e Add unused dependencies Scanner (#2969)
2022-10-03 17:35:09 +00:00
Tomas Votruba
52e91aee7c Updated Rector to commit 0a68d9003528e87fdc51a2834116102caf372e33
0a68d90035 Update rector-downgrade-php package name (#2968)
2022-10-03 10:06:50 +00:00
Tomas Votruba
04bf103d2d Updated Rector to commit 04a1cfbac770f4602b3458a7916dad90660ed34b
04a1cfbac7 [Doc] [Dep] Update CakePHP links docs Community package and clean up composer.json in scoped dependency (#2967)
2022-10-03 07:25:38 +00:00
Tomas Votruba
2ce173756b Updated Rector to commit 70ac514c3075288cbdec1c24848e124c5c948865
70ac514c30 Move cakephp Rector from the core to the community (#2966)
2022-10-02 21:52:12 +00:00
Tomas Votruba
76b7ca392f Updated Rector to commit 3e9dbc1ffdc6f28322ab796f566174675cadf559
3e9dbc1ffd remove CakePHP from checked CI docs
2022-10-02 21:51:23 +00:00
Tomas Votruba
e87c848801 Updated Rector to commit ff4d797c73a51a3fb12cb644c6911ecd7313ec1b
ff4d797c73 [DeadCode][EarlyReturn] Handle RemoveUnusedVariableAssignRector+RemoveAlwaysElseRector (#2964)
2022-10-02 20:24:31 +00:00
Tomas Votruba
4dfccb43b5 Updated Rector to commit b5a5973565b75d04fa88428b80774f8a706c692e
b5a5973565 [DeadCode][Privatization] Handle crash on RemoveDeadZeroAndOneOperationRector+ChangeReadOnlyPropertyWithDefaultValueToConstantRector (#2962)
2022-09-29 16:10:59 +00:00
Tomas Votruba
f7fd87b243 Rector 0.14.5 2022-09-29 11:05:42 +00:00
Tomas Votruba
528876da35 Updated Rector to commit 5a6be73baf8c5293e0395a74264335f1e6a02655
5a6be73baf Bump composer dependencies (#2960)
2022-09-29 11:05:10 +00:00
Tomas Votruba
149764b07a Rector 0.14.4 2022-09-27 23:39:09 +00:00
Tomas Votruba
de60227746 Updated Rector to commit cbe52ed52d2231d1487196fddf114c7fae341555
cbe52ed52d [Php80] Skip no default next indirect in return Expr on ChangeSwitchToMatchRector (#2959)
2022-09-27 20:28:08 +00:00
Tomas Votruba
89cb1be74d Updated Rector to commit eeacb4fb2889cd04a4ef532c59337089dc8ecb7c
eeacb4fb28 Add support for interface in AnnotationToAttributeRector rule (#2958)
2022-09-27 14:38:17 +00:00
Tomas Votruba
0c28bef447 Updated Rector to commit 643c444d936e692a8a0224b7e7c81a74be40d398
643c444d93 [automated] Re-Generate Nodes/Rectors Documentation (#2956)
2022-09-25 00:37:30 +00:00
Tomas Votruba
debee1711f Updated Rector to commit 6b3ce0af37a7fbae87d06e43bc485616bf81be3e
6b3ce0af37 clean up debug code (#2955)
2022-09-24 15:16:39 +00:00
Tomas Votruba
fb7d11d4dc Updated Rector to commit 2015f4680793359cf0135a5f1a9f3e74b6ee632a
2015f46807 [AutoImport] Add support for auto import in alias same last name (#2952)
2022-09-24 15:03:19 +00:00
Tomas Votruba
44e9f0dd99 Updated Rector to commit 429c9c087662fbd35e10e5d044b63aabfb1872f7
429c9c0876 [Php81] Handle crash insensitive function name on NullToStrictStringFuncCallArgRector (#2953)
2022-09-24 08:51:57 +00:00
Tomas Votruba
465ae70f0e Updated Rector to commit 54cc8e7a839343023a10a4ee230b9973dd03c376
54cc8e7a83 [CodeQuality] Skip nullable mixed on ReturnTypeFromStrictScalarReturnExprRector (#2947)
2022-09-23 13:05:02 +00:00
Tomas Votruba
9fc996728a Updated Rector to commit df36e385def96b447520c35e341e46e16cbffb56
df36e385de [Naming] Add TwigEnvironment special name to RenameParamToMatchTypeRector to keep the context (#2951)
2022-09-23 10:45:14 +00:00
Tomas Votruba
2395bb1685 Updated Rector to commit 54ff28da2aebcbb38d1f740be83dc839deeb4a99
54ff28da2a Skip short class names on StringClassNameToClassConstantRector, as mostly internal classes or strings (#2950)
2022-09-23 10:18:07 +00:00
Tomas Votruba
c4ec650b29 Rector 0.14.3 2022-09-23 09:46:53 +00:00
Tomas Votruba
35d8c7931a Updated Rector to commit 013263141ed4c13fefdb10c60c0719f38049d3fb
013263141e ParamAnalyzer: Accept all FunctionLike (#2945)
2022-09-23 09:44:22 +00:00
Tomas Votruba
3bad479870 Updated Rector to commit 1743bb1a9a95bf0d9353976930533ce008c6f05d
1743bb1a9a [Php56] Skip after exit() on AddDefaultValueForUndefinedVariableRector (#2949)
2022-09-23 07:54:29 +00:00
Tomas Votruba
7fc770b602 Updated Rector to commit 3335ea46e83544a4cb694931809e46dc3b5c849c
3335ea46e8 [TypeDeclaration] Skip intersection array on ReturnTypeDeclarationRector on PHP 8.1 feature enabled (#2948)
2022-09-22 17:29:58 +00:00
Tomas Votruba
a548d35868 Updated Rector to commit f846afc61bdd4839085f265b505b60cf1b866553
f846afc61b Fix type error on downgraded version. (#2946)
2022-09-22 15:56:27 +00:00
Tomas Votruba
cd097e556c Updated Rector to commit b54c62993056f984ca68d75c654b98794f931582
b54c629930 Fix typo github worklfow (#2944)
2022-09-21 09:42:53 +00:00
Tomas Votruba
5f9e3588ab Updated Rector to commit 8615aa59fb9e0f650e529f8e08e02b8b3a7dd0ac
8615aa59fb [DeadCode] Handle crash on RemoveUnusedPrivatePropertyRector+RemoveJustPropertyFetchForAssignRector (#2943)
2022-09-21 06:37:36 +00:00
Tomas Votruba
1fbb663af8 Updated Rector to commit 05dc89279c87e074f6a974ab5a973a36c8262723
05dc89279c Add refactorings for ...val() (#2942)
2022-09-20 13:34:09 +00:00
Tomas Votruba
72df4482bd Updated Rector to commit 603502724909905922d0c18646fb86b51d844fc9
6035027249 Skip magic methods for StaticCallOnNonStaticToInstanceCallRector. (#2941)
2022-09-20 05:49:46 +00:00
Tomas Votruba
e46f4f4e38 Updated Rector to commit 35b0d39f63b1d8dff169ee673c6e6de1268304b3
35b0d39f63 Skip method of abstract class for StaticCallOnNonStaticToInstanceCallRector. (#2938)
2022-09-19 17:42:48 +00:00
Tomas Votruba
08fd789b99 Updated Rector to commit 4c693317f582654d993f1307091f58b49ce21add
4c693317f5 [AutoImport] Skip multiple namespaces on single file on auto imports (#2940)
2022-09-19 16:51:38 +00:00
Tomas Votruba
1ebe5f5d76 Updated Rector to commit cd1dca72ea6b5ade176136d576b481e2c9ae20fa
cd1dca72ea [AutoImport] Add GroupUse support on auto import (#2939)
2022-09-19 07:37:20 +00:00
Tomas Votruba
3ef878f63a Updated Rector to commit 75b126118af39ac57c119a6a83cb3a22c97f0220
75b126118a Skip properties with default values for MakeTypedPropertyNullableIfCheckedRector (#2936)
2022-09-18 17:57:19 +00:00
Tomas Votruba
21ef94bb90 Updated Rector to commit bad6a29da9c54736648b48f3323b312333c3cbcb
bad6a29da9 [AutoImport] Allow auto import to use existing alias in use statement (#2937)
2022-09-18 17:55:00 +00:00
Tomas Votruba
ac77f3a400 Updated Rector to commit 4923a147c3347d83b0cf302c03a4016e3b838a03
4923a147c3 [DeadCode] Skip nullable array on not empty on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2935)
2022-09-18 11:37:35 +00:00
Tomas Votruba
19672d6690 Updated Rector to commit 5f05178587b69ffcd530f1096bd5ed64ca8398d8
5f05178587 [automated] Re-Generate Nodes/Rectors Documentation (#2934)
2022-09-18 00:40:19 +00:00
Tomas Votruba
549069621e Updated Rector to commit 6d44ff7eab19b3cbc96aae88eca769ff748fd6bc
6d44ff7eab [TypeDeclaration] Add AddArrowFunctionReturnTypeRector (#2933)
2022-09-17 15:58:21 +00:00
Tomas Votruba
c4794ecd48 Updated Rector to commit 5cd60b2607153f45ea7f113768593f9a364a1291
5cd60b2607 Add rector/rector-php-parser to require in composer.json (#2932)
2022-09-17 09:09:04 +00:00
Tomas Votruba
079d3637b2 Updated Rector to commit 85a01836afa3c4a1617e91dfb1d7f365adfb77f1
85a01836af [Php55] Allow alias name on StringClassNameToClassConstantRector (#2931)
2022-09-17 07:19:59 +00:00
Tomas Votruba
39cbc1f731 Updated Rector to commit c119bba7b1d7332fa79859d66b51f9b4f287dc6d
c119bba7b1 [Visibility] Does not turn abstraction into static from implicit public abstractions in ExplicitPublicClassMethodRector (#7483) (#2930)
2022-09-16 18:01:57 +00:00
Tomas Votruba
13dd0ad755 Updated Rector to commit cec7701e79be8f1384b3dbef67665b8151b7e2af
cec7701e79 [Php80] Handle crash on Nested Annotation to Attribute setting PhpVersion::PHP_80 (initializer - 1) (#2929)
2022-09-15 14:08:37 +00:00
Tomas Votruba
b425e6ab95 Updated Rector to commit 73aa7e3d68d74fc0b9b26fc543bf1207cfc8d0dd
73aa7e3d68 [CodingStyle] Skip has non-printable chars on SymplifyQuoteEscapeRector (#2926)
2022-09-13 12:50:28 +00:00
Tomas Votruba
592d268d8b Updated Rector to commit a41ab99080e117c96cfb7107f58ab7b6d9281aa9
a41ab99080 Fix VarAnnotationIncorrectNullableRector, add support for closure params when generating php doc (#2922)
2022-09-12 07:25:54 +00:00
Tomas Votruba
d1c230fe39 Updated Rector to commit effe4d38f68cfe64a38f7c2422befed3a872142e
effe4d38f6 [Skipper] Handle provide direct relative path in Skipper (#2921)
2022-09-11 12:05:24 +00:00
Tomas Votruba
e3b535f364 Updated Rector to commit 2975a1bb0cc1a9e76c4cf09ad9b32494ac90d4e0
2975a1bb0c Skip first class callables in NullToStrictStringFuncCallArgRector (#2919)
2022-09-07 13:03:58 +00:00
Tomas Votruba
c5b7bc6035 Updated Rector to commit 90adbf0431d2f63e80bbb10807ff2786e19f068c
90adbf0431 [DeadCode] Skip assign if cond on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2918)
2022-09-07 10:25:01 +00:00
Tomas Votruba
ed362f4e21 Updated Rector to commit 3de25c9cd3e7efcfa92c94f3cbdc533fdd6a115b
3de25c9cd3 [DeadCode] Handle assign empty array on if cond on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2917)
2022-09-07 08:32:58 +00:00
Tomas Votruba
c58bcae308 Updated Rector to commit e5d927505714bcffd0d8a1a334bd07aa6361ed1c
e5d9275057 [Doctrine] Handle Partial removal annotation has annotation below on RemoveRedundantDefaultPropertyAnnotationValuesRector (#2914)
2022-09-06 03:11:46 +00:00
Tomas Votruba
94c101e7d9 Updated Rector to commit a638a676b4c23c70ed65e52463a4c193d72d2c7d
a638a676b4 [PHP 7.4] Fix literator separator string/int missmatch in PHPStan type (#2913)
2022-09-05 17:52:37 +00:00
Tomas Votruba
cb35f4b8c0 Updated Rector to commit f230e5463ae1bfd9e1d6070935def31ae493109e
f230e5463a [PHP 8.1] Do not process static methods from Enum class (#2911)
2022-09-05 12:47:29 +00:00
Tomas Votruba
7222a8991e Updated Rector to commit edf1d520411ac348fa874fdf67e2924acf752f08
edf1d52041 [Scoper] Make phpstan/phpdoc-parser part of preload.php and preload-split-package.php (#2908)
2022-09-05 12:04:06 +00:00
Tomas Votruba
c33b229cb8 Updated Rector to commit f06d901e5135d1f7d61d0374d570b7b944b95779
f06d901e51 [Down_To_PHP71] Handle both parent and child typed for trailing comma downgrade on DowngradeLevelSetList::DOWN_TO_PHP_71 (#2910)
2022-09-05 11:33:38 +00:00