Commit Graph

3156 Commits

Author SHA1 Message Date
Tomas Votruba
8c3f7d543f Updated Rector to commit b17d4a39222960783a78207f24d404d8dbc97eab
b17d4a3922 [Testing] Make temp fixture file names exposed next to the fixture file, to make easier fixes and path resolvements (#3338)
2023-02-06 14:23:37 +00:00
Tomas Votruba
e7daa642b3 Updated Rector to commit 256571c01e578d24fedb69a4aa74bcc5569f2357
256571c01e [StaticReflection] Fix unintended behavior in PHP 8.1 and later (#3340)
2023-02-06 12:02:45 +00:00
Tomas Votruba
6551c3feef Updated Rector to commit 4c76526033e105cbd3de89368b00c0de7ae535aa
4c76526033 Remove sebastian/diff 5.0 as 4.0.4 requirement (#3339)
2023-02-06 09:25:47 +00:00
Tomas Votruba
dcf76eb71d Updated Rector to commit 60d6bf0672c29da289477ad1d3310b79818bd820
60d6bf0672 Update fidry/cpu-core-counter to ^0.5.1 (#3337)
2023-02-05 12:18:20 +00:00
Tomas Votruba
bf9c351bb7 Updated Rector to commit 9ec3967a5bb51519dec381255b7c6c0659a41d6e
9ec3967a5b Restore paratest (#3335)
2023-02-04 15:09:47 +00:00
Tomas Votruba
6f9bc2e5e6 Updated Rector to commit bac8c0691d7eee55e38924b49d7fac64f61456d8
bac8c0691d [CodeQuality] Mirror comment on ShortenElseIfRector (#3334)
2023-02-04 14:18:19 +00:00
Tomas Votruba
5c98e6b30d Updated Rector to commit 2cf94e2631cb3c13505d44a7078ac91b236ab0ac
2cf94e2631 trigger CI
2023-02-04 14:07:22 +00:00
Tomas Votruba
9b9b8ed4d9 Rector 0.15.12 2023-02-03 17:49:48 +00:00
Tomas Votruba
08d49bfaa4 Updated Rector to commit 2506002e1868bba60d2db058ad0a31a1ed934a9d
2506002e18 remove old phpunit xml
2023-02-03 17:47:56 +00:00
Tomas Votruba
5a533a3702 Updated Rector to commit c3ff0fd4328b603df30c7e7bb833cb1e641f410c
c3ff0fd432 Upgrade to PHPUnit 10 🥳️ (#3332)
2023-02-03 17:47:50 +00:00
Tomas Votruba
84eb4a5d0c Updated Rector to commit 1fd38073d08dff31e7b6f5fecdfc0df8f6e897b0
1fd38073d0 remove monorepo builder
2023-02-02 16:55:05 +00:00
Tomas Votruba
0034e743da Rector 0.15.11 2023-02-02 16:53:15 +00:00
Tomas Votruba
c280a335b8 Updated Rector to commit e7ac52e9739ee461999d2a1d537f940e377667dd
e7ac52e973 Remove check-markdown command from composer fix-cs and composer docs (#3331)
2023-02-02 12:39:35 +00:00
Tomas Votruba
66cc09e8b6 Updated Rector to commit d118ae38e265476684bcf566b87301cca5716ed9
d118ae38e2 Use phpstan-deprecation-rules (#3330)
2023-02-02 09:24:12 +00:00
Tomas Votruba
0e6257502f Updated Rector to commit b32a1902b7d179f12e1df2270dd9bae37dc7fd71
b32a1902b7 Fix main branch alias to 0.15 (#3329)
2023-01-31 20:26:11 +00:00
Tomas Votruba
b6935368be Updated Rector to commit 88a1434ef75fa9fb83524e3db1824cd8e961bc85
88a1434ef7 Use rector/phpstan-rules:^0.6.5 (#3328)
2023-01-31 10:09:37 +00:00
Tomas Votruba
ab985638db Updated Rector to commit 033b0c2bf86dc2f7cd3c6d6183ddc5ad1a3ab390
033b0c2bf8 Fix nested extends pattern in AddReturnTypeDeclarationBasedOnParentClassMethodRector (#3325)
2023-01-31 00:52:02 +00:00
Tomas Votruba
2e9b687937 Updated Rector to commit 82163244c12ff8d14073bda37f21cfb03e532a6f
82163244c1 skip migrations, storage and database
2023-01-30 15:35:13 +00:00
Tomas Votruba
67f4bcd4f3 Updated Rector to commit 0b5d2ed239b45cddcf4597eac75e23bad1e90cbf
0b5d2ed239 Make init part of process command to help new users with creating config (#3326)
2023-01-30 15:32:02 +00:00
Tomas Votruba
dde7f41fda Updated Rector to commit 0f025099cbdd8c4cc6c9a3ffa0775a9250f112de
0f025099cb [TypeDeclaration] Move method ParentClassMethodTypeOverrideGuard::isReturnTypeChangeAllowed to ClassMethodReturnTypeOverrideGuard and make it private (#3323)
2023-01-29 16:34:12 +00:00
Tomas Votruba
ad67b2505d Updated Rector to commit 2ddd44b249f552c8a4bd573763965de31417aaa3
2ddd44b249 [TypeDeclaration] Replace ParentClassMethodTypeOverrideGuard::isReturnTypeChangeAllowed() with ClassMethodReturnTypeOverrideGuard::shouldSkipClassMethod()  in ReturnNeverTypeRector (#3321)
2023-01-29 13:52:29 +00:00
Tomas Votruba
820bd2010e Updated Rector to commit 8714537bfb668d453cb56d3e1f303371c3987597
8714537bfb [TypeDeclaration] Consume ParentClassMethodTypeOverrideGuard from ClassMethodReturnTypeOverrideGuard::shouldSkipClassMethod() (#3320)
2023-01-29 13:29:20 +00:00
Tomas Votruba
e25df78489 Updated Rector to commit bbc100ce821ca98123ac0996673dbf48fc2b71e8
bbc100ce82 [TypeDeclaration] Add ReturnTypeFromStrictTernaryRector (#3318)
2023-01-29 12:39:10 +00:00
Tomas Votruba
9dda9c3cc2 Updated Rector to commit 3450bed50204db27ca622d2056a82580a59914fb
3450bed502 [TypeDeclaration] Skip used by trait on PropertyTypeFromStrictSetterGetterRector (#3319)
2023-01-29 12:28:42 +00:00
Tomas Votruba
6d10127c95 Updated Rector to commit b98de3edc21312c2e5483b6a120ccb04642f5346
b98de3edc2 [Php70] Handle crash on IfToSpaceshipRector with enum case (#3317)
2023-01-29 09:53:53 +00:00
Tomas Votruba
0e1b533718 Updated Rector to commit d2080c2267a7bfa4b132fa3f728fd509fb3a39e3
d2080c2267 [Php82] Move consume trait property skip check to ReadOnlyClassRector (#3316)
2023-01-29 06:15:33 +00:00
Tomas Votruba
8d6b5e9645 Updated Rector to commit 76a6df8f8ddc9f1aab255783498f28714b36140e
76a6df8f8d [Php81] Skip ReadonlyProperty for class that consume Trait with Property (#3314)
2023-01-29 03:47:42 +00:00
Tomas Votruba
f35a09015b Updated Rector to commit e2f73fa67a2a8f1ee48e14a140359c3470d4d1a3
e2f73fa67a [CodeQuality] Skip reassign key on SimplifyForeachToCoalescingRector (#3315)
2023-01-29 02:03:17 +00:00
Tomas Votruba
64a999931a Updated Rector to commit 76a6df8f8ddc9f1aab255783498f28714b36140e
76a6df8f8d [Php81] Skip ReadonlyProperty for class that consume Trait with Property (#3314)
2023-01-29 02:02:55 +00:00
Tomas Votruba
297478ae00 Updated Rector to commit 9e321a11ac21440a33abef87add34945a1490b8f
9e321a11ac [TypeDeclaration] Add PropertyTypeFromStrictSetterGetterRector (#3313)
2023-01-28 16:20:41 +00:00
Tomas Votruba
f0d1fd41e5 Updated Rector to commit 3555ee38b86510be3f9ccb35fbcc8ac080b02b70
3555ee38b8 [Printer] Handle add Node after Nop not first stmt (#3312)
2023-01-28 09:29:15 +00:00
Tomas Votruba
162b97da87 Updated Rector to commit 33527d4e8d3b58bfebbac94330fd59f5be08b2b2
33527d4e8d [Printer] Move handle mix php+html to BetterStandardPrinter (#3310)
2023-01-27 08:27:34 +00:00
Tomas Votruba
b0a48d1e0a Updated Rector to commit dda7cdb03aa2b273af0ce35e1b195e03d0e3d3d2
dda7cdb03a [Printer] Use <= 0 check for getStartTokenPos() for current node availability on MixPhpHtmlDecorator (#3308)
2023-01-26 17:16:47 +00:00
Tomas Votruba
afc46ddaaf Updated Rector to commit 8ddb48097219683f23faa75e2365c5161cc623a8
8ddb480972 [PHPStanStaticTypeMapper] Handle crash on OversizedArrayType (#3306)
2023-01-26 00:27:06 +00:00
Tomas Votruba
599b96e995 Updated Rector to commit 226f3f5019fc58cc5aacdcc3625b8b8c6dabdbb8
226f3f5019 [Printer] Clean up nl usage on surplus tag check (#3307)
2023-01-25 23:59:13 +00:00
Tomas Votruba
c466aa15a9 Updated Rector to commit fe326cb516b16c678b3d31cef2b014fbbd384351
fe326cb516 [NodeDecorator] Improve MixPhpHtmlDecorator::decorateNextNodesInlineHTML() performance: stop loop on found InlineHTML (#3305)
2023-01-25 22:17:54 +00:00
Tomas Votruba
bbb27b399f Updated Rector to commit 828ec4e66ed7118e0cc6315df0190941d7db1c72
828ec4e66e [Printer] Handle return array of nodes with InlineHTML (#3304)
2023-01-25 19:21:39 +00:00
Tomas Votruba
be2e22ede3 Updated Rector to commit 2c353227e499072689cbb22d83b3483b3015025f
2c353227e4 [Printer] Handle Add Node after Nop statement inlineHTML (#3303)
2023-01-24 15:30:51 +00:00
Tomas Votruba
8c235d2f05 Updated Rector to commit bd68c98f0bc5cb8b41a62dd9e7bd94bf82e731a5
bd68c98f0b Run tests workflow as well on push (#3301)
2023-01-22 12:23:23 +00:00
Tomas Votruba
69bec676cd Updated Rector to commit 58da24c6aef2117167d14c79e2c0751f887e7f54
58da24c6ae trigger build
2023-01-22 12:07:56 +00:00
Tomas Votruba
475ff30ed0 Updated Rector to commit 93b225a3b3382fcf8bb0862746dab560ee64a53a
93b225a3b3 [Php72] Handle crash on CreateFunctionToAnonymousFunctionRector on quoted variable arg concat (#3300)
2023-01-22 08:48:34 +00:00
Tomas Votruba
61ec077d92 Updated Rector to commit d2a553c87255d379f20d9d447701c87abeb0b3e4
d2a553c872 [automated] Re-Generate Nodes/Rectors Documentation (#3299)
2023-01-22 00:34:51 +00:00
Tomas Votruba
bad766b609 Updated Rector to commit cc8c4d0933a25224d93f1dd206547b96f5918ec5
cc8c4d0933 misc
2023-01-21 21:36:32 +00:00
Tomas Votruba
000bfb6f79 Rector 0.15.10 2023-01-21 14:30:16 +00:00
Tomas Votruba
39a38b4fc5 Rector 0.15.9 2023-01-21 14:17:30 +00:00
Tomas Votruba
df111d9b04 Updated Rector to commit 9cb97aa042de32f336321516131f007dd519c2d4
9cb97aa042 [Php82] Skip non-FilesystemIterator on FilesystemIteratorSkipDotsRector (#3298)
2023-01-21 13:08:39 +00:00
Tomas Votruba
49dcc089a5 Rector 0.15.8 2023-01-20 20:26:11 +00:00
Tomas Votruba
c0543b1366 Updated Rector to commit 6ff46171a59dbfe0eddabf6ffcd8c091fbea8915
6ff46171a5 Show different code on found errors, and on fatal errors (#3297)
2023-01-20 20:25:25 +00:00
Tomas Votruba
3caa257b2c Updated Rector to commit 1ab342a4ee4bf282bb436c636c401d37a9476d23
1ab342a4ee [Core] Use Original node to pull Scope on AbstractScopeAwareRector (#3295)
2023-01-18 12:08:19 +00:00
Tomas Votruba
1253856e99 Updated Rector to commit 2d6869fe3933347397a2ce879805a91e829e09a9
2d6869fe39 Bump php-parser 4.15.3 and re-generate preload file (#3294)
2023-01-17 17:54:18 +00:00
Tomas Votruba
c67791b001 Updated Rector to commit cec3a1183d0a82e38dfdb06ecfa9b9b5d97125de
cec3a1183d [Php73] Skip prev() call on items after key called on ArrayKeyFirstLastRector (#3293)
2023-01-17 15:07:40 +00:00
Tomas Votruba
78a094be89 Updated Rector to commit fc77aa08f716935ceb22db7ec32f4a45fabf6cf1
fc77aa08f7 Bump to symplify/phpstan-rules 11.1.28.72 (#3292)
2023-01-17 04:24:15 +00:00
Tomas Votruba
f544364f8d Updated Rector to commit 541bf4529b7d6c078843c1104b530356687b847c
541bf4529b [Php80] Handle crash leaveNode() returned invalid value of type integer on TokenGetAllToObjectRector (#3291)
2023-01-17 01:10:44 +00:00
Tomas Votruba
99023d8977 Updated Rector to commit 240fa27dca3e215bdfea9b329558d495ea344aa0
240fa27dca  Move Reprint previous node of first node early to NodeAddingPostRector, mix html+php take 4 (#3290)
2023-01-15 18:55:14 +00:00
Tomas Votruba
635ae189f6 Updated Rector to commit ee9bacf6f6e76439ed9192ff39313977aef9c17b
ee9bacf6f6 [Printer] Skip Tweak html+php handling on File is no diff (#3289)
2023-01-15 12:41:11 +00:00
Tomas Votruba
8c806f8911 Updated Rector to commit 8f4642c78eebd8fdf1770f01187128a59c712146
8f4642c78e [AutoImport] Skip first stmt is InlineHTML (#3288)
2023-01-15 10:47:14 +00:00
Tomas Votruba
9ef9a43884 Updated Rector to commit 836fa59076134ade1403f84a0b89b1de7578e5a5
836fa59076 [Printer] Apply add node before node before HTML take 3 (#3287)
2023-01-15 08:44:29 +00:00
Tomas Votruba
2c3af6740f Updated Rector to commit 833ac7279b9fe8ecdc20dbc225f9cc28230ef929
833ac7279b clear
2023-01-15 02:12:00 +00:00
Tomas Votruba
bede86547e Updated Rector to commit 505a2490fab1d61dffe6a9fa0cd95efc35ff9ac0
505a2490fa remove MethodTypeAnalyzer
2023-01-15 01:58:44 +00:00
Tomas Votruba
f456cdf31c Updated Rector to commit daf7d2b5edd3bd83433630d1c189de78ed38d62b
daf7d2b5ed remove removeAbstract() unused method
2023-01-15 01:48:13 +00:00
Tomas Votruba
707c267250 Updated Rector to commit 71aacbee32ca0db0841b233c91663fd1ca0abee1
71aacbee32 remove unused namespace name decorator
2023-01-15 01:18:27 +00:00
Tomas Votruba
838e4d7b3f Updated Rector to commit 3f0dc2aee83ec3249e2aa1fba70dc89bed8a9227
3f0dc2aee8 remove NamedVariableFactory
2023-01-15 01:10:38 +00:00
Tomas Votruba
b000cd08e5 Updated Rector to commit f6463a551369f884954c0f7dbc8b423e7d29d8e4
f6463a5513 remove unused ClassFromEnumFactory
2023-01-15 01:08:52 +00:00
Tomas Votruba
b57aa6b1c1 Updated Rector to commit 3d7de8a15dfd61b80af51711c28a03ef886267e1
3d7de8a15d remove unused DoctrineAnnotationFactory
2023-01-15 00:59:39 +00:00
Tomas Votruba
01b8c03d60 Updated Rector to commit 8bf0045044d1357c6d10bc61e84fd962f69ccc20
8bf0045044 remove downgrade only method
2023-01-15 00:50:07 +00:00
Tomas Votruba
cde52ddf2f Updated Rector to commit 09444df13c372bdd15fd9fcf92c4be6b053fb318
09444df13c Clean up Mix HTML+PHP take 2 (#3286)
2023-01-14 22:38:39 +00:00
Tomas Votruba
6064d3f279 Updated Rector to commit 4b6a55998d37cb76336ca512e3f853b8193ddd64
4b6a55998d Clean up mix HTML+PHP first stmt check (#3285)
2023-01-14 22:18:39 +00:00
Tomas Votruba
2ba10ad8e9 Updated Rector to commit 410e939ede14803bbdfc9688065d2a03a0d246d7
410e939ede  [Core] [Printer] Ensure empty php tag init on original node not re-printed  (#3284)
2023-01-14 20:51:32 +00:00
Tomas Votruba
efa032ded0 Updated Rector to commit 1868b930b2a893e7da5faf90042f45daddc7387b
1868b930b2 [Core] Improve BetterStandardPrinter printFormatPreserving on mix HTML + PHP (#3283)
2023-01-14 14:48:39 +00:00
Tomas Votruba
788f8c3fea Updated Rector to commit d9ee43c28dd0718bd2a2528a4313be2c6199666d
d9ee43c28d [CodeQuality] Handle mix HTML+PHP on ForRepeatedCountToOwnVariableRector (#3282)
2023-01-14 08:08:29 +00:00
Tomas Votruba
a43370e1f4 Rector 0.15.7 2023-01-13 21:14:19 +00:00
Tomas Votruba
f21fb3b126 Updated Rector to commit 774de56c848e9b4c4bbf2a8319cbfaebd16f6ef9
774de56c84 Fix AddMethodCallBasedStrictParamTypeRector for invalid generics type (#3281)
2023-01-13 20:02:32 +00:00
Tomas Votruba
827c456b07 Updated Rector to commit fe7ed4fb9a4ed31a13f70ee9e6595552aecb0f58
fe7ed4fb9a Skip attribute in RemoveUnusedPromotedPropertyRector (#3280)
2023-01-13 19:41:09 +00:00
Tomas Votruba
2980e4cdbf Updated Rector to commit 3b3ee7ea805d2a5d4abe1049d595b456abdd400c
3b3ee7ea80 Skip Doctrine Collection in RenamePropertyToMatchTypeRector (#3279)
2023-01-13 19:34:52 +00:00
Tomas Votruba
81f82f7474 Rector 0.15.6 2023-01-13 19:10:49 +00:00
Tomas Votruba
28ec152d46 Updated Rector to commit bea3bc6d9fd4fd5596486490f4abb612cd05b160
bea3bc6d9f Skip date time on naming, as custom standard (#3278)
2023-01-13 19:10:03 +00:00
Tomas Votruba
3bf1b86a9a Updated Rector to commit 9a2bcbf87e0e9ef7a243bae52d666f9704c1aee1
9a2bcbf87e [Naming] Fix add fixture RenameVariableToMatchMethodCallReturnTypeRector  for date time assign (#3277)
2023-01-13 18:58:01 +00:00
Tomas Votruba
f0db3872cf Updated Rector to commit b91f35ff6e833e2abb6591044309984549f0b539
b91f35ff6e Fix FinalizeClassesWithoutChildrenRector for changed class, use more reliable reflection to detect Doctrine attributes (#3276)
2023-01-13 15:37:04 +00:00
Tomas Votruba
d37a463efc Updated Rector to commit fbf9506c5de7389260e8a842c911b3315b053df3
fbf9506c5d Skip RenamePropertyToMatchTypeRector for promoted property date time (#3275)
2023-01-13 15:15:08 +00:00
Tomas Votruba
b27945f635 Rector 0.15.5 2023-01-12 19:13:08 +00:00
Tomas Votruba
db3869fd18 Updated Rector to commit 7c4d0ce7eca325b22e35c2653bf99a119a82668d
7c4d0ce7ec Includes PHPStan bleedingEdge.neon config in phpstan-for-rector and phpstan-for-downgrade config (#3274)
2023-01-12 13:57:33 +00:00
Tomas Votruba
2662858a47 Updated Rector to commit 69c4ca8aaffd3340d8c9011b52f16189d15778f7
69c4ca8aaf [TypeDeclaration] Skip crash Undefined property: PhpParser\Node\Stmt\Enum_:: on AddParamTypeDeclarationRector (#3272)
2023-01-10 14:56:25 +00:00
Tomas Votruba
96c131c440 Updated Rector to commit c406c850e227b673b256fef4c9d1a368982f2a2e
c406c850e2 docs
2023-01-10 11:16:07 +00:00
Tomas Votruba
1dcdf54ebf Rector 0.15.4 2023-01-10 11:09:49 +00:00
Tomas Votruba
b771e1ca1a Updated Rector to commit 58c8f170182d3350e21a3b141bb3971651943e63
58c8f17018 [CodingStyle] Add DataProviderArrayItemsNewlinedRector (#3271)
2023-01-10 11:07:38 +00:00
Tomas Votruba
7fa05c4332 Updated Rector to commit e8dd953f10a7afc3610d5185c6b42216e6d9e050
e8dd953f10 [Php80] Don't add null as default to variadic parameter (#3270)
2023-01-09 11:19:09 +00:00
Tomas Votruba
71448aaa79 Updated Rector to commit aafb99246d40b436486c90eaad7e45f21a823075
aafb99246d skip automated and core from generate changelog
2023-01-08 16:24:14 +00:00
Tomas Votruba
3f15e3a241 Rector 0.15.3 2023-01-08 16:14:58 +00:00
Tomas Votruba
29be2b6a0f Updated Rector to commit 9c64c2a7ef9aa19592349b3928173adc9b9eb394
9c64c2a7ef [TypeDeclaration] Fix TypedPropertyFromStrictConstructorRector to avoid conflict with default type (#3269)
2023-01-08 16:13:32 +00:00
Tomas Votruba
9548122236 Updated Rector to commit d43f7498b821cf58437f622bce3b3aae290fa89e
d43f7498b8 Bump PHPStan ^1.9.7 (#3268)
2023-01-05 03:42:38 +00:00
Tomas Votruba
80b6ffce36 Updated Rector to commit 8c439cffaee2124388b4fd03db951f43f10a5359
8c439cffae [TypeDeclaration] Do not remove multiple docblocks with comment on TypedPropertyFromAssignsRector (#3263)
2023-01-03 15:14:20 +00:00
Tomas Votruba
a8b92bef9a Updated Rector to commit 27d57142d9581209db7809c3e1f50e77140574cb
27d57142d9 Bump to PHPStan ^1.9.6 (#3266)
2023-01-03 14:38:26 +00:00
Tomas Votruba
9b5abdcb18 Updated Rector to commit fe5292d39dde5bfbd9ad3f652762bf70f621ee48
fe5292d39d Bump to PHPStan ^1.9.5 (#3265)
2023-01-03 00:44:59 +00:00
Tomas Votruba
3e51438f07 Updated Rector to commit 5b76f7b43b18b04c4eb32fbf55d6795478a09a43
5b76f7b43b [TypeDeclaration] Handle comment + single docblock on TypedPropertyFromAssignsRector (#3264)
2023-01-02 16:27:11 +00:00
Tomas Votruba
11b6f003b8 Updated Rector to commit a94a11a157b69172d32dbdd6de3328d313f9f5ce
a94a11a157 [Utils] Add ArrayChecker util to verify first data found on given array (#3262)
2023-01-02 12:05:00 +00:00
Tomas Votruba
0fc42c2559 Updated Rector to commit 47fa234379b7b9f28081e8bc6e683628f8d53f2b
47fa234379 [CodeQuality] Add Variable support on class arg on InlineIsAInstanceOfRector (#3261)
2023-01-02 11:58:30 +00:00
Tomas Votruba
b8f374dc0e Updated Rector to commit cba980b719f48eb580f8afcf4e3843843436ba35
cba980b719 [NodeRemoval] Refactor NodeRemover to always use removeNode() method to ensure Node in NodesToRemoveCollector (#3255)
2023-01-02 11:53:04 +00:00
Tomas Votruba
fe418cfdc0 Updated Rector to commit 79a34f9e0116081e31472c2d6cd415e7d077c21f
79a34f9e01 [CodeQuality] Handle class-string case insensitive on CompleteDynamicPropertiesRector (#3260)
2023-01-02 11:52:28 +00:00
Tomas Votruba
764b0a2692 Updated Rector to commit cb5b01223d46272004e947f122ae1e36d516f83a
cb5b01223d [automated] Re-Generate Nodes/Rectors Documentation (#3259)
2023-01-01 00:36:31 +00:00
Tomas Votruba
cc6482f10f Updated Rector to commit e61c1774f94bfd37023ad789542200a63f8ce9cd
e61c1774f9 [Core] Make consistent BetterNodeFinder findParent and findParentByTypes (#3258)
2022-12-31 23:46:11 +00:00
Tomas Votruba
1ccd0845db Updated Rector to commit eadd54081521c7d426a8d4249157f6239dd2bc8a
eadd540815 [Core] Remove ParentAttributeSourceLocator (#3257)
2022-12-31 10:11:25 +00:00
Tomas Votruba
dbb3bb2510 Updated Rector to commit 6bd6b3cc85138b0d2b754175fad616d02cea6b72
6bd6b3cc85 PHP80 string helpers loose comparison (#3246)
2022-12-29 13:26:54 +00:00
Tomas Votruba
e8d8146deb Updated Rector to commit 0146fc085ba712bc4d3713ef89bdb06e8e1d959f
0146fc085b bump deps
2022-12-29 12:31:28 +00:00
Tomas Votruba
b6297a1113 Updated Rector to commit 384e84a982b8535dc06e49c0ed90b1979029e0e8
384e84a982 refactors Spatie enum method calls to native enums (#3226)
2022-12-28 12:01:35 +00:00
Tomas Votruba
8a89fc1eb2 Updated Rector to commit ac2f8537c1f5b9739baaeeb8228d514b29c6b0b6
ac2f8537c1 [CodeQuality] Handle crash on ReturnTypeFromStrictScalarReturnExprRector on ConditionalTypeForParameter (#3254)
2022-12-25 14:11:20 +00:00
Tomas Votruba
f5dcbb18c6 Updated Rector to commit 55c9472f44600ac55e0064ae83e2098539c473f6
55c9472f44 [Privatization] Optimize ParentPropertyLookupGuard, make  parameter required (#3252)
2022-12-25 10:56:01 +00:00
Tomas Votruba
dfa8f9c12d Updated Rector to commit 9a0938d8df9d8771d8d423eb4719cd7fe3b1ba0e
9a0938d8df [e2e] handle multiple classes with anonymous class on MultipleClassFileToPsr4ClassesRector file removed (#3253)
2022-12-25 10:55:21 +00:00
Tomas Votruba
e440ad7b16 Updated Rector to commit bce8153e31b935df3d259aec1c9a8aa31c82c60a
bce8153e31 [TypeDeclaration] Fix TypedPropertyFromStrictGetterMethodReturnTypeRector for default type (#3251)
2022-12-24 18:17:16 +00:00
Tomas Votruba
3eeb2d2e9f Updated Rector to commit bebea616b351da2dc0d2bc1c56870ccb15a18ca5
bebea616b3 Bump changelog generator (#3250)
2022-12-24 17:23:55 +00:00
Tomas Votruba
5bc89fa73d Rector 0.15.2 2022-12-24 12:55:36 +00:00
Tomas Votruba
374d2f5b25 Updated Rector to commit f8814b1d707d72e284870759d1f446848fa003b2
f8814b1d70 [CodeQuality] Remove type addition on CompleteDynamicPropertiesRector (#3248)
2022-12-24 08:30:16 +00:00
Tomas Votruba
5003a01d69 Updated Rector to commit e920ade7b67a17dbf7e6129585a3261f1fd1540e
e920ade7b6 Fix typo (#3247)
2022-12-23 18:05:16 +00:00
Tomas Votruba
f233f27e7d Updated Rector to commit ab3ad293122bafa96d9e8fc64ac15f0220aa9ecc
ab3ad29312 cleanup phpstan
2022-12-23 17:23:46 +00:00
Tomas Votruba
727b9f46f0 Updated Rector to commit bfa1891c50677b01136a9308fd3c3ecc12e267d9
bfa1891c50 [cleanup] Remove 73 unused public methods (#3245)
2022-12-23 17:10:25 +00:00
Tomas Votruba
680ba23c17 Updated Rector to commit 88629427917b7d359beeb1a0b34d39d2127472b9
8862942791 [CodingStyle] Skip EncapsedStringsToSprintfRector on heredoc (#3242)
2022-12-23 08:45:28 +00:00
Tomas Votruba
e4dc6018da Updated Rector to commit 3c168f03d38bb967a5e65e453f82adf120ef4eba
3c168f03d3 [CodingStyle] Skip new line /\r\n|\r|\n/i on ConsistentPregDelimiterRector (#3241)
2022-12-22 21:24:01 +00:00
Tomas Votruba
96d8a22628 Updated Rector to commit 70fea54e77ffd186e41540d2b36c5362b073fbc4
70fea54e77 [DeadCode] Add TargetRemoveClassMethodRector (#3240)
2022-12-22 17:06:53 +00:00
Tomas Votruba
d72c810c78 Updated Rector to commit c78e255cf9cb17cedead84ff8a54f421f563942d
c78e255cf9 Fix @return docblock on IfManipulator (#3239)
2022-12-22 16:53:25 +00:00
Tomas Votruba
1013215a6c Updated Rector to commit ea223437f27820fa43a96bf17839d7d1b88417d1
ea223437f2 [Php81] Skip ReadOnlyPropertyRector on read only class (#3236)
2022-12-22 14:22:43 +00:00
Tomas Votruba
14c48f409f Updated Rector to commit 72f57a16cbc27099ca0d9a81d43063ebcca6b840
72f57a16cb [Strict] Fix warning configurable rector rules on BooleanInTernaryOperatorRuleFixerRector (#3237)
2022-12-22 14:21:31 +00:00
Tomas Votruba
67958340fd Updated Rector to commit 7f8f9f818e7abf6e55a10648440d4079b4f5803f
7f8f9f818e [Core] Improve performance on AstResolver and ClassLikeAstResolver (#3234)
2022-12-22 11:35:32 +00:00
Tomas Votruba
ebb02bd9e8 Updated Rector to commit 84faf2905518aad5fb97caf613517f8a50827867
84faf29055 Update generate-changelog command to use objects, add simple filtering (#3232)
2022-12-21 13:17:32 +00:00
Tomas Votruba
a5afc7b66c Updated Rector to commit 432d3e46a296babeea02c1e9d6633079011a303e
432d3e46a2 [NodeTraverser] Use NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN instead of NodeTraverser::DONT_TRAVERSE__CHILDREN (#3233)
2022-12-21 13:01:53 +00:00
Tomas Votruba
f4f085ed27 Updated Rector to commit f13207737e25fef30190c1746a314b7e1dec6eb2
f13207737e [CodingStyle] Add NullifyUnionNullableRector (#3231)
2022-12-21 11:07:20 +00:00
Tomas Votruba
705057ef68 Updated Rector to commit b1fff57b7bdd56bff43211412483d6c33880533b
b1fff57b7b [Core] Make consistent only setAnalysedFiles() from PHPStan NodeScopeResolver in both parallel and non-parallel for .php files (#3221)
2022-12-21 09:35:27 +00:00
Tomas Votruba
6025307990 Updated Rector to commit c80cd6f1f03f6f4e1b1aee6504126699e6a06fe3
c80cd6f1f0 [TypeCoverage] Add EmptyOnNullableObjectToInstanceOfRector (#3230)
2022-12-20 21:37:46 +00:00
Tomas Votruba
13fa9d478f Updated Rector to commit 394fa70c963bb059acd6aae4b998173bdfc6c80c
394fa70c96 [TypeDeclaration] Add FalseReturnClassMethodToNullableRector (#3229)
2022-12-20 20:40:25 +00:00
Tomas Votruba
856f8421c0 Updated Rector to commit cf2805b27271b3c2340436f2db13edab5a49b339
cf2805b272 [TypeDeclaration] Skip optional yield on AddReturnTypeDeclarationFromYieldsRector (#3228)
2022-12-20 18:14:53 +00:00
Tomas Votruba
3f73a89cd7 Updated Rector to commit 25ccfe16df37697af6cbaeef8eca84c5f05048fa
25ccfe16df [TypeDeclaration] Skip yield return on AddClosureReturnTypeRector (#3227)
2022-12-20 17:45:58 +00:00
Tomas Votruba
a126aac35f Updated Rector to commit bb8dedd178dd26c4b8d2653e9f97dae6da01c950
bb8dedd178 [CodeQuality][TypeDeclaration] Handle default value from constructor removed on InlineConstructorDefaultToPropertyRector+TypedPropertyFromStrictConstructorRector (#3225)
2022-12-20 17:24:54 +00:00
Tomas Votruba
2adf37a5b5 Updated Rector to commit 36fcdc14e0828486c7a7a3ce8df723d712aeb2d7
36fcdc14e0 [CodeQuality] Add empty() check to FlipTypeControlToUseExclusiveTypeRector (#3224)
2022-12-20 14:53:37 +00:00
Tomas Votruba
24dfd08e91 Updated Rector to commit 980dc83d2f4e2853658562fb86c1dc31ef182c21
980dc83d2f [parallel] Improve performance: Run RemovedAndAddeedFileProcessor after loop (#3219)
2022-12-19 11:24:08 +00:00
Tomas Votruba
37344332a6 Updated Rector to commit 2624b4980d9fca8d497fb012828b7201909c21e4
2624b4980d [Parallel] Fix missing process RemovedAndAddedFilesProcessor->run() on parallel process on WorkerRunner (#3218)
2022-12-19 11:11:17 +00:00
Tomas Votruba
86550a9ea2 Updated Rector to commit 8354587b777450cb9f2e3bd48cf750d81b78cf05
8354587b77 [Core] Remove deprecated ContainerConfigurator warning since RectorConfig available since 0.12 (#3217)
2022-12-18 16:22:29 +00:00
Tomas Votruba
cc9debaefb Updated Rector to commit 135483f78fb5d4191190453b762906097024aa98
135483f78f [Privatization] Skip used by heredoc on ChangeReadOnlyVariableWithDefaultValueToConstantRector (#3216)
2022-12-18 16:21:48 +00:00
Tomas Votruba
e1a1e9af63 Updated Rector to commit e35497e40a8f71ef8c602759922457289d06821a
e35497e40a [Php81] Allow explicit mixed processed on trait on NullToStrictStringFuncCallArgRector (#3212)
2022-12-17 14:48:31 +00:00
Tomas Votruba
a53b9ef444 Updated Rector to commit dfad0c3a53d7ee62aa0ea6e6feede26ada741c58
dfad0c3a53 RenameClassRector with callback support (#3023)
2022-12-17 14:41:49 +00:00
Tomas Votruba
1767bf4e17 Updated Rector to commit b090cedeb5249554f17d811abc61234741d7c207
b090cedeb5 Bump to phpstan ^1.9.4 (#3214)
2022-12-17 14:40:06 +00:00
Tomas Votruba
311e5c0c0c Updated Rector to commit e895bceed66b12ddc80fcf90314ac576ae9efe4f
e895bceed6 [Core] Improve performance: remove repetitive currentFileProvider->setFile() call on PhpFileProcessor (#3213)
2022-12-17 13:44:41 +00:00
Tomas Votruba
33551cbeec Updated Rector to commit 21c9e59aaaae15e1baac98b80b6d3e3be5c5d88d
21c9e59aaa Adapt PrivateConstantToSelfRector to work on non-final classes, too (#3198)
2022-12-17 08:33:16 +00:00
Tomas Votruba
c9d5c64791 Updated Rector to commit 14e60b06039ff4af2e8d4670390fdcf8c66f5cbe
14e60b0603 [Php71] Skip defer() function on RemoveExtraParametersRector (#3211)
2022-12-17 08:32:50 +00:00
Tomas Votruba
baf8af4c9b Updated Rector to commit 7d5d1ce55264aec6d17b3c7013802103c813c0a3
7d5d1ce552 [Core] Performance improvement: Remove unnecessary re-call FileFactory::createFileInfosFromPaths() (#3210)
2022-12-17 08:32:10 +00:00
Tomas Votruba
eaa58f2721 Updated Rector to commit f2e4da5e7f836d1618ece81f646cfe11ea4ac561
f2e4da5e7f [Naming] Skip Doctrine collection with @var Collection<int, Checkbox> on RenamePropertyToMatchTypeRector (#3209)
2022-12-16 18:45:47 +00:00
Tomas Votruba
2b660785e9 Updated Rector to commit 5a4111e518e866379e5cdce1d9b3b282dfccaa3d
5a4111e518 Bump composer dependencies (#3208)
2022-12-16 14:30:13 +00:00
Tomas Votruba
4fefacce80 Updated Rector to commit ee4050a5250045ad14cee2982d49daca1367250b
ee4050a525 Compatibility with BetterReflection 6.x on ClassFromEnumFactory (take 2) (#3207)
2022-12-16 12:43:56 +00:00
Tomas Votruba
addbe36147 Updated Rector to commit bf9d5ab5056bb08317308707c035a45b5b658ea7
bf9d5ab505 Update to phpdoc-parser 1.5.2 (#3205)
2022-12-16 10:54:11 +00:00
Tomas Votruba
6544cfc63c Updated Rector to commit dec1dddede5713915f90b41f932ebbaaf0996a5a
dec1dddede [Privatization] Do not remove comment on ChangeReadOnlyPropertyWithDefaultValueToConstantRector (#3204)
2022-12-16 00:43:16 +00:00
Tomas Votruba
6f77572e6a Updated Rector to commit 79a4c3a8c020f5a254a81838998040b62c76f17b
79a4c3a8c0 Fix wrong reference to replacement rule (#3203)
2022-12-15 14:32:45 +00:00
Tomas Votruba
b607ae2a53 Updated Rector to commit 0d6234b584f14d25e02c8c97afac7f6374aa306c
0d6234b584 [DeadCode] Skip standalone @return false or true on RemoveUselessReturnTagRector (#3202)
2022-12-15 14:08:31 +00:00
Tomas Votruba
5b79ce9485 Updated Rector to commit 40f6d194e78026978fa5af3a0be9d209a511c173
40f6d194e7 [PHP 8.1] Add support for values method in SpatieEnumClassToEnumRector (#3196)
2022-12-15 10:18:35 +00:00