Commit Graph

1066 Commits

Author SHA1 Message Date
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
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
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
34e47ea0dd Updated Rector to commit b54c62993056f984ca68d75c654b98794f931582
b54c629930 Fix typo github worklfow (#2944)
2022-09-22 13:29: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
7f4c965d08 Updated Rector to commit 35b0d39f63b1d8dff169ee673c6e6de1268304b3
35b0d39f63 Skip method of abstract class for StaticCallOnNonStaticToInstanceCallRector. (#2938)
2022-09-19 21:06:34 +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
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
62e856362b Updated Rector to commit a39844ee53169fb0b6d1184672eeb1869a541dd2
a39844ee53 [misc] Add Expr type to value resolver, remove RemoveFuncCallRector as niche feature, cleanup ClassManipulator from unused methods (#2900)
2022-09-03 08:03:15 +00:00
Tomas Votruba
bc0f1fa350 Updated Rector to commit 5a9cb5081596ba3242f4260e5d89b9943fc0f49a
5a9cb50815 [Naming] Skip old value used in next foreach on RenameForeachValueVariableToMatchExprVariableRector (#2897)
2022-09-02 18:47:27 +00:00
Tomas Votruba
e84e1d4a08 Updated Rector to commit efc31c044beef561349e7b0ac9f8b4fbb112fa71
efc31c044b [PHP 8.0] Add custom JMS AccesorOrder explicit key (#2895)
2022-09-02 13:59:35 +00:00
Tomas Votruba
eea65cd62a Updated Rector to commit 6fa3ade0c296e366490d1e4bcc642dc53ad92674
6fa3ade0c2 [tests] Keep original methods naming for easier upgrade (#2893)
2022-09-02 10:27:12 +00:00
Tomas Votruba
72019c1f5a Updated Rector to commit 88b75c6180cab29f49e7ec6567df80b052987978
88b75c6180 [Console] Move color differ here (#2887)
2022-09-01 20:56:47 +00:00
Tomas Votruba
a295f6325a Updated Rector to commit 5a2897090e0cce57c2b6849a9d70c1cf3fb1cba9
5a2897090e [DX] Remove PackageBuilder classes (#2886)
2022-09-01 20:29:21 +00:00
Tomas Votruba
7211a6c632 Updated Rector to commit 6cdebe40bd259e25f5832c01c8ef65117cf3c010
6cdebe40bd [DX] Remove PackageBuilder classes (#2885)
2022-09-01 20:10:11 +00:00
Tomas Votruba
4e3847e1bc Updated Rector to commit 3c07468691132d0246e55627495a1e7d4cd76a8d
3c07468691 [DX] Localize few PackageBuilder classes (#2884)
2022-09-01 19:50:06 +00:00
Tomas Votruba
28c719d1fb Updated Rector to commit 8961d20f56fa4b39bb21feec1f24422398f13dba
8961d20f56 [DX] Localize multi instance checker and privates accessor from Symplify + bump to PHPStan 1.8.3 (#2883)
2022-09-01 19:30:48 +00:00
Tomas Votruba
6c20d257e3 Updated Rector to commit d3d18d442c8f2ca64f5ebef5c7a7541938fa1e2a
d3d18d442c keep relative paths
2022-09-01 09:30:44 +00:00
Tomas Votruba
31ff77efb6 Updated Rector to commit 2ffad9317d2038e4c625341b338ab3cbd77f54cc
2ffad9317d Inline Skipper (#2877)
2022-08-31 21:51:50 +00:00
Tomas Votruba
88b26b2c9b Updated Rector to commit e7c96a405bb28d1720b3b0e34bb4ce771dc22604
e7c96a405b bump
2022-08-31 11:41:10 +00:00
Tomas Votruba
d0fd2796b0 Updated Rector to commit 95d0a8e14840c33c27e810591a4ed1d8bc0b4cdd
95d0a8e148 [DX] Remove symplify/symplify-kernel package (#2874)
2022-08-31 11:18:37 +00:00
Tomas Votruba
c55a8d6ed3 Updated Rector to commit 1c4307b02a18437aab8aee317d4c1b01aae2fc62
1c4307b02a [DX] Use local file and directory filter (#2875)
2022-08-31 11:05:42 +00:00
Tomas Votruba
da925822fa Updated Rector to commit d2abf114ed5388698cc580a295899110570463ce
d2abf114ed [DX] remove composer-json-manipulator (#2871)
2022-08-31 10:13:06 +00:00
Tomas Votruba
afd984fc4e Updated Rector to commit b8c70125cda3a0fbdff216dfccaf065d8fe1aa2b
b8c70125cd [phpstan] Resolve duplicated methods (#2869)
2022-08-31 09:31:19 +00:00
Tomas Votruba
7b90cd54eb Updated Rector to commit 08ccd5a1a4f8757ff8f392c0e823a02bc95c14c1
08ccd5a1a4 [DX] Remove the composer upgrade as unused to narrow focus back to PHP (#2865)
2022-08-31 09:02:41 +00:00
Tomas Votruba
30a3e6e86b Updated Rector to commit 8ce5353f6217d9220edab09db656a51a3708dd8d
8ce5353f62 Fix class not found from Easy-Testing package (#2864)
2022-08-31 07:46:49 +00:00
Tomas Votruba
c152c5642c Updated Rector to commit 6db4c0e0ae74867ec12b2a4fa7cf934a4a60a742
6db4c0e0ae [Php74] Add ParenthesizeNestedTernaryRector (#2859)
2022-08-31 07:08:44 +00:00
Tomas Votruba
3a10283d3a Updated Rector to commit 86ccf3f6854c78c6b7b06b8471d922724cb6542b
86ccf3f685 [Testing] Use own FixtureFileFinder to keep dependency low (#2858)
2022-08-30 16:45:20 +00:00
Tomas Votruba
d197e99c8b Updated Rector to commit 86ccf3f6854c78c6b7b06b8471d922724cb6542b
86ccf3f685 [Testing] Use own FixtureFileFinder to keep dependency low (#2858)
2022-08-30 16:19:25 +00:00
Tomas Votruba
f251f578f6 Updated Rector to commit bb3ced496fe923594d4af178fdf61328dd731608
bb3ced496f [DX] Cleanup of text file processor, unused MultipleFilesChangedTrait and misc (#2861)
2022-08-30 14:19:19 +00:00
Tomas Votruba
ab9b0db366 Updated Rector to commit cf65fcab69af90371b4a803e6b8cab8eb621c964
cf65fcab69 Add rector-debugging to require-dev (#2857)
2022-08-30 07:53:17 +00:00
Tomas Votruba
785f5e3b06 Updated Rector to commit 74f6b181e82f191c1e471d446a029a06dff16619
74f6b181e8 [DX] Remove upgrade RectorConfig set, as last 2 version use only PHP (#2852)
2022-08-29 21:45:23 +00:00
Tomas Votruba
5edd3689a8 Updated Rector to commit bb59a7c99ad30770689fe011c89377402bf6c7ba
bb59a7c99a [DX] Inline symplify/astral to use only active classes (#2851)
2022-08-29 20:49:28 +00:00
Tomas Votruba
3ad817dad5 Updated Rector to commit a6dfb049d7100c6bb5aa93735199f8434381d210
a6dfb049d7 [DX] Make generator only part of core (#2849)
2022-08-29 18:19:15 +00:00
Tomas Votruba
583eacb780 Updated Rector to commit bd6c02a3f8154152f879106c8e77731eb3f4e69c
bd6c02a3f8 [DX] Reduce inner use of SmartFileInfo, and injected SmartFileSystem (#2847)
2022-08-29 17:51:46 +00:00
Tomas Votruba
7823b6a978 Updated Rector to commit 6770dad95ec2b82fa739eb134042589b810e87cd
6770dad95e restore
2022-08-29 16:47:25 +00:00
Tomas Votruba
f5e65b1dfa Updated Rector to commit fadb6a4c4978009293099f56f4ed3ae3c0775321
fadb6a4c49 [Php74] Add MoneyFormatToNumberFormatRector (#2727)
2022-08-24 20:17:59 +00:00
Tomas Votruba
1bb085831c Updated Rector to commit 84691d5a2eb99a8794ac8c02f3fe8daf411361fe
84691d5a2e Remove self-serving FileDiffFileDecorator interface (#2835)
2022-08-24 11:58:09 +00:00
Tomas Votruba
12fa9feb17 Updated Rector to commit 21c4d378a5a054aecff8d114d34a25771a519ebe
21c4d378a5 [PHP 8.0] Add way to adjust specifics attribute arguments (#2834)
2022-08-24 11:51:48 +00:00
Tomas Votruba
e1e0f2856e Updated Rector to commit e66447b7087642b54199d462faee81c43129e3e5
e66447b708 [Transform] Remove ServiceGetterToConstructorInjectionRector, only for risky doctrine case, that should be handled manually (#2832)
2022-08-24 09:50:03 +00:00
Tomas Votruba
ca47665500 Updated Rector to commit 776386c90f8337b326ae1f21d998ee64e23a6c53
776386c90f [Restoration] Remove CompleteImportForPartialAnnotationRector, one time custom job, not useful for generic rules (#2831)
2022-08-24 09:36:12 +00:00
Tomas Votruba
87509424bf Updated Rector to commit debe56260b932715c63eacc73c5495c276784a1c
debe56260b simplify rule docs config
2022-08-24 08:53:31 +00:00
Tomas Votruba
0e5ee3dc93 Updated Rector to commit 6c8c40bb746ce70ab8faa7e80ae088edaba771e7
6c8c40bb74 [DeadCode] Merge RemoveDeadConstructorRector, to RemoveEmptyClassMethodRector with same behavior (#2829)
2022-08-24 08:43:17 +00:00
Tomas Votruba
ac412ec638 Updated Rector to commit 9018492c75866aacc5a71329f921312d31772987
9018492c75 [CodeQuality] Remove SimplifyIfIssetToNullCoalescingRector, as overly complex and should be handled by manual context (#2828)
2022-08-24 08:28:31 +00:00
Tomas Votruba
1db8339e7c Updated Rector to commit 6306f9e8ecd8e367e7220b02a6613461a34dcc8a
6306f9e8ec [EarlyReturn] Skip ChangeAndIfToEarlyReturnRector in case of simple scalar return (#2826)
2022-08-24 08:11:57 +00:00
Tomas Votruba
6c1c0cfa19 Updated Rector to commit 54feb0dcfaeaafe177d1268ca2117a7fb1a7da1a
54feb0dcfa [EarlyReturn] Handle crash on assign in if else before on RemoveAlwaysElseRector (#2822)
2022-08-23 20:55:52 +00:00
Tomas Votruba
402dbe5a36 Updated Rector to commit a33b200e615b9451ba091e2724ab707f39198da7
a33b200e61 [BetterPhpDocParser] Add ArrayItemNode to improve value transfer in annotation curly lists (#2786)
2022-08-20 20:49:07 +00:00
Tomas Votruba
3d2ac73661 Updated Rector to commit 0ecf88aa469af79d7965bfc5efe57888d56cf88e
0ecf88aa46 [PHP 8.0] Keep previously defined default, it might have been used later outside the switch construction (#2807)
2022-08-19 14:05:38 +00:00
Tomas Votruba
0bc18b2647 Updated Rector to commit 1cc39145a5e35b926f0cf96fb0c3c12321154d7a
1cc39145a5 [PHP 8.0] Extract AssignMatchTransformer (#2805)
2022-08-19 13:40:05 +00:00
Tomas Votruba
6b02618a3b Updated Rector to commit 4bc378bb1846b292946f8c241092a79e863268f7
4bc378bb18 [PHP 8.0] Move more logic to MatchFactory (#2802)
2022-08-19 13:01:36 +00:00
Tomas Votruba
1d66c96acf Updated Rector to commit 66d273e403467bb99ceae30c157fbc4a08baf59f
66d273e403 [PhpDoc] Kick of ArrayItemNode (#2795)
2022-08-19 08:10:42 +00:00
Tomas Votruba
54af055c16 Updated Rector to commit 69b625cd33c1e5b7c8ba7bcda19450ea71cbdda0
69b625cd33 [PHP 8.0] Add class support to NestedAnnotationToAttributeRector (#2782)
2022-08-18 18:39:25 +00:00
Tomas Votruba
d2c2df7ac2 Updated Rector to commit b8549f547ab72234078416e53f62ba16ab8582c6
b8549f547a [PHP 8.0] Add NestedAnnotationToAttributeRector (#2781)
2022-08-18 17:55:50 +00:00
Tomas Votruba
f6f9dadfe8 Updated Rector to commit 2667f35cc72a6f7da454635a24bdc3ede61082ae
2667f35cc7 Improve ReturnTypeWillChangeRector to handle any method of defined type; move PhpDocFromTypeDeclarationDecorator to Downgrade rules (#2754)
2022-08-11 15:03:59 +00:00
Tomas Votruba
967bbc6b59 Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-11 14:29:35 +00:00
Tomas Votruba
420929251c Updated Rector to commit 17257b860adf08f36e4504b6d7a444e5eef987a2
17257b860a remove duplicated test
2022-08-09 20:16:51 +00:00
Tomas Votruba
9348cb36bc Updated Rector to commit c8c3e82a05436c4c128fd6a5bb2a7207c24a7c53
c8c3e82a05 Move Nette extension from the core to the community (#2746)
2022-08-09 20:03:15 +00:00
Tomas Votruba
f7bb838601 Updated Rector to commit f0425bc3cb3d5855da1bff9c38b872a9003e357b
f0425bc3cb Improve scope, PHPStan extension types (#2747)
2022-08-09 13:39:17 +00:00
Tomas Votruba
83bdde50fe Updated Rector to commit 07b54b48ec70f8349a36239316ecf5fb2b79798a
07b54b48ec improve PhpDocInfo generics to local only
2022-08-09 10:07:17 +00:00
Tomas Votruba
ba5ca07800 Updated Rector to commit b8fec6418f6bab31d807fc9eef4167aa74277847
b8fec6418f cleanup
2022-08-07 23:37:28 +00:00
Tomas Votruba
c79a46ee2a Updated Rector to commit d68bc4ccf6fca72f748cb3b9b80264901094b3d6
d68bc4ccf6 bump deps
2022-08-07 12:27:55 +00:00
Tomas Votruba
966de41565 Updated Rector to commit 81f3299a0d1a50b0d4c7a0d8b56c5677491fb1f8
81f3299a0d Add BinaryOpAnalyzer locally
2022-08-07 08:40:30 +00:00
Tomas Votruba
eb23cc5b15 Updated Rector to commit 86682e4848dcfaecdb6dac7d07ffcb4cd47e69bf
86682e4848 Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
2022-08-06 23:18:58 +00:00
Tomas Votruba
b9ad506421 Updated Rector to commit 86682e4848dcfaecdb6dac7d07ffcb4cd47e69bf
86682e4848 Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
2022-08-06 22:58:46 +00:00
Tomas Votruba
089ad6e357 Updated Rector to commit 86682e4848dcfaecdb6dac7d07ffcb4cd47e69bf
86682e4848 Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
2022-08-06 21:53:15 +00:00
Tomas Votruba
fda0b6ec7b Updated Rector to commit f4bc6c38446ac98e625a9c11c070e9829b4c6118
f4bc6c3844 [TypeDeclaration] Make anonymous class return specific type, if implements (#2738)
2022-08-06 15:04:36 +00:00
Tomas Votruba
3826cb9d2f Updated Rector to commit 51119207305038d0b0fcf778830dc6544d85ec46
5111920730 [TypeDeclaration] Skip data providers in AddArrayReturnDocTypeRector, they're overly complex and not helpful to type (#2736)
2022-08-06 11:43:02 +00:00
Tomas Votruba
1d28ca109c Updated Rector to commit 5ec4cff203f68d9578719b54ce3a145efb32bc79
5ec4cff203 [Php56] Handle jump not Expression stmt next initialized on AddDefaultValueForUndefinedVariableRector (#2725)
2022-08-02 06:46:18 +00:00
Tomas Votruba
6d34684c5a Updated Rector to commit 69d3c92b00fd4cd4f435cd8974e5547251b5065e
69d3c92b00 [Php80] Add MixedTypeRector (#2701)
2022-07-27 08:28:59 +00:00
Tomas Votruba
a746965f93 Updated Rector to commit f0df3c5101f4b9465708589a2c13027bc84f898c
f0df3c5101 [CodingStyle] Skip has static call call non static method on StaticArrowFunctionRector and StaticClosureRector (#2713)
2022-07-26 12:51:56 +00:00
Tomas Votruba
fad0b90180 Updated Rector to commit 3f3fc412140becdc86cc43a6ef87b5be495c9444
3f3fc41214 [CodeQuality][CodingStyle] Handle crash assert( >= 0 &&  >= 0) on combination CodeQuality and CodingStyle rules (#2707)
2022-07-25 20:13:13 +00:00
Tomas Votruba
8e5d4128e7 Updated Rector to commit b047c81634f8325b94d6e5b39fae6a599f65bca8
b047c81634 [automated] Re-Generate Nodes/Rectors Documentation (#2706)
2022-07-24 00:40:22 +00:00
Tomas Votruba
1d657845a7 Updated Rector to commit 1836de97836c78ae4c85c1fdce3664688fb1011f
1836de9783 AddReturnTypeDeclarationBasedOnParentClassMethodRector (#2666)
2022-07-22 14:18:53 +00:00
Tomas Votruba
f01bc715ee Updated Rector to commit c74cda7cead18dc51061bd8540c64e98a6aec3b8
c74cda7cea Remove UnwrapFutureCompatibleIfFunctionExistsRector as very niche and specific (#2688)
2022-07-19 22:41:37 +00:00
Tomas Votruba
9b6234b1bc Updated Rector to commit b492d2077dfb0ee9c08664747c0c3e8ed73dbc97
b492d2077d [DX] Cleanup, Remove RepeatedLiteralToClassConstantRector, as very narrow use case; use rather phpstan + Remove ChangeLocalPropertyToVariableRector, as buggy and unreliable; better use PHPStan (#2686)
2022-07-19 21:15:00 +00:00
Tomas Votruba
643657d0ed Updated Rector to commit c3e31f067de83606b46188d26fcca61a3e89c3c8
c3e31f067d move ReturnTypeFromStrictTypedCallRector to enterprise (#2685)
2022-07-19 20:28:05 +00:00
Tomas Votruba
e67795209e Updated Rector to commit f74bdede72ab3a95dfa5f8670b369c2d4cd2e4db
f74bdede72 [CodingStyle] Deprecate PHPStormVarAnnotationRector, rather tokens responsibility (#2677)
2022-07-18 15:33:08 +00:00
Tomas Votruba
c855f5df1c Updated Rector to commit 6d7404c65000caede512a5bc5a993f472e11cd0d
6d7404c650 Home cleaning with Exacat 😎 (#2676)
2022-07-18 15:25:27 +00:00
Tomas Votruba
9d2c3a2853 Updated Rector to commit ae7648ed92396d39b4d364328312250b2c66f40e
ae7648ed92 [CodingStyle] Add StaticClosureRector (#2658)
2022-07-13 20:35:23 +00:00
Tomas Votruba
2747e037dd Updated Rector to commit 743fef03d939a8a4fc4aa9364df057854e97e5c7
743fef03d9 [CodingStyle] Add StaticArrowFunctionRector (#2657)
2022-07-13 16:07:41 +00:00
Tomas Votruba
02fd732f10 Updated Rector to commit 17ba943afd637b6df317a646c9406318aeb2848a
17ba943afd [TypeDeclaration] Skip assign override in ReturnTypeFromReturnNewRector (#2648)
2022-07-09 15:11:27 +00:00
Tomas Votruba
42d59f4003 Updated Rector to commit e8e2db769d857346202bc0f59ab4a618ee5b5202
e8e2db769d [TypeDeclaration] Add assigned new to variable in ReturnTypeFromReturnNewRector (#2647)
2022-07-09 14:55:41 +00:00
Tomas Votruba
8b3c974a42 Updated Rector to commit fba410bf6ed6da0657cb8ec939a22ad3988fc4ad
fba410bf6e [StrictTypes] Add MethodCall/StaticCall to ExclusiveNativeCallLikeReturnMatcher (#2646)
2022-07-09 14:14:37 +00:00
Tomas Votruba
e86c09a91b Updated Rector to commit 7916cd907d55e32e9711ee7dc07ed45016eff152
7916cd907d [DX] Remove doctrine collection responsibility to TypedPropertyRector (#2640)
2022-07-06 19:39:27 +00:00
Tomas Votruba
81662109e0 Updated Rector to commit 649e5119376355e4d009f5db569b3785d10aaa37
649e511937 [TypeDeclaration] Add TypedPropertyFromStrictSetUpRector (#2636)
2022-07-06 11:56:20 +00:00
Tomas Votruba
a40cc18430 Updated Rector to commit 9ab8ce06cbf1f5244d90fcd4e193784f8c13b8ef
9ab8ce06cb [Core] Return early NodeTraverser::STOP_TRAVERSAL on referenced  is true on ParamAnalyzer (#2630)
2022-07-04 14:51:17 +00:00
Tomas Votruba
b050f5de99 Updated Rector to commit a70d0e5518260479d055a0d5a90e28e43cad58f7
a70d0e5518 [Php54] Rename ArrayToShortArrayRector to LongArrayToShortArrayRector (#2628)
2022-07-03 23:03:40 +00:00
Tomas Votruba
175fded020 Updated Rector to commit f8221e3e21c487f2d18707f7b979ef6607204826
f8221e3e21 [CodeQuality] Fix CompactToVariablesRector to resolve values when the compact() is called (#2627)
2022-07-03 20:44:15 +00:00
Tomas Votruba
b682e0bcdf Updated Rector to commit 646d1888a42854bfa2af3b7537b0e1efbeccaf0a
646d1888a4 [Transform] Remove CallableInMethodCallToVariableRector as very narrow use case and sensitive to wrong change (#2625)
2022-07-03 20:35:15 +00:00
Tomas Votruba
3d95b4f79c Updated Rector to commit f78af109208cfe6c217a89ecd80fb7a5a5c518e9
f78af10920 [EarlyReturn] Remove ReturnAfterToEarlyOnBreakRector as risky and turning around next/previous nodes (#2624)
2022-07-03 20:28:06 +00:00
Tomas Votruba
4153a8246a Updated Rector to commit 45c91eb8ba874853d5717d7267c85776b2502f9d
45c91eb8ba [DeadCode] Add RemoveJustVariableAssignRector (#2618)
2022-07-03 12:43:42 +00:00
Tomas Votruba
189f399cf2 Updated Rector to commit 0660b21ecec553393226003c16432a626e20f8ec
0660b21ece [Php54] Add ArrayToShortArrayRector (#2615)
2022-07-03 11:40:45 +00:00
Tomas Votruba
8c06162529 Updated Rector to commit f608461e44c6a4008a2bff6c603ba9d52d3ffacf
f608461e44 Remove RemoveOverriddenValuesRector as flow of control is not reliable and could cause invalid removal (#2614)
2022-07-03 08:06:08 +00:00
Tomas Votruba
2ef7fcfcd2 Updated Rector to commit 23bad1ec21a1ba71c748073cae083ce55484e1a7
23bad1ec21 [EarlyReturn] Add ReturnEarlyIfVariableRector (#2609)
2022-07-02 22:36:41 +00:00
Tomas Votruba
3ebe5dd36e Updated Rector to commit 7222eccac1827abdb9ce1565ea18d2de0c98f743
7222eccac1 [TypeDeclaration] Skip AddArrayReturnDocTypeRector on custom phpstan type (#2608)
2022-07-02 21:29:13 +00:00
Tomas Votruba
b50d03dfc6 Updated Rector to commit 87799d5f1d70d6399ed9e72c4ffa8b421c671527
87799d5f1d Add ParametersAcceptorSelectorVariantsWrapper to handle selectFromArgs() on multi variants, fallback to selectSingle (#2607)
2022-07-02 21:18:00 +00:00
Tomas Votruba
d8601711a3 Updated Rector to commit c3d53b1f4b6f7667d65a4a77e9cc6ccd20fe16de
c3d53b1f4b [Core] Remove UnreachableStmtAnalyzer (#2610)
2022-07-02 21:13:38 +00:00
Tomas Votruba
299f511d80 Updated Rector to commit 3e66b4a6348e2d106dc714760c946003bdc9807d
3e66b4a634 add multi args acceptor (#2605)
2022-07-02 09:10:33 +00:00
Tomas Votruba
2524b7ef68 Updated Rector to commit 89a7a4dfbb3e05a306c0f5b9950c28588d4f2af9
89a7a4dfbb [TypeDeclaration] Add ReturnTypeFromStrictScalarReturnExprRector (#2601)
2022-07-01 13:42:45 +00:00
Tomas Votruba
8c4e269a9d Updated Rector to commit 6be87763cbe27e0c20d3923df0efe629e5cae6f8
6be87763cb [CodeQuality] Remove DateTimeToDateTimeInterfaceRector as mostly opinionated and way too much generics (#2598)
2022-07-01 07:42:17 +00:00
Tomas Votruba
fbc13bfea3 Updated Rector to commit e6e5895517eb301f3fa3b00759b06876cacde836
e6e5895517 [Naming] Skip used in arrow function args on RenameVariableToMatchMethodCallReturnTypeRector (#2599)
2022-07-01 07:39:49 +00:00
Tomas Votruba
d6e035e01a Updated Rector to commit 7c8b23b02d
7c8b23b02d [CodeQuality] Add TernaryFalseExpressionToIfRector (#2590)
2022-06-29 16:03:56 +00:00
Tomas Votruba
39d9381da5 Updated Rector to commit 407ad5fc5e
407ad5fc5e remove unused reference
2022-06-29 15:03:44 +00:00
Tomas Votruba
846aa2b4c2 Updated Rector to commit e97dd8f360
e97dd8f360 Use rector downgrade php (#2582)
2022-06-28 12:42:29 +00:00
Tomas Votruba
bebb65659c Updated Rector to commit 92621698c2
92621698c2 [DX] Move UnionTypeFactory to NodeTypeResolver packages (#2581)
2022-06-27 20:29:12 +00:00
Tomas Votruba
f2b6b30624 Updated Rector to commit e81691f1c6
e81691f1c6 [DowngradePhp80] Add DowngradeMixedTypeTypedPropertyRector (#2579)
2022-06-27 12:30:57 +00:00
Tomas Votruba
2e275ef1ff Updated Rector to commit 78d110af4c
78d110af4c [TypeDeclaration] Add ReturnTypeFromStrictNewArrayRector (#2572)
2022-06-26 11:48:44 +00:00
Tomas Votruba
68845a00bf Updated Rector to commit 80715e62b5
80715e62b5 [CodeQuality] Drop ArrayThisCallToThisMethodCallRector as changes behavior and better handled by FirstClassCallableRector (#2571)
2022-06-26 10:18:31 +00:00
Tomas Votruba
65284cc98a Updated Rector to commit 237f255023
237f255023 [TypeDeclaration] Add ReturnTypeFromStrictNativeFuncCallRector (#2570)
2022-06-26 10:02:03 +00:00
Tomas Votruba
535101d1ee Updated Rector to commit ac7b2d4783
ac7b2d4783 Extract bool type analyzer (#2564)
2022-06-25 14:47:31 +00:00
Tomas Votruba
c10f29b7bb Updated Rector to commit 42707709f7
42707709f7 [TypeDeclaration] Kick off ReturnTypeFromStrictReturnExprRector (#2563)
2022-06-25 14:38:11 +00:00
Tomas Votruba
8c3b690acb Updated Rector to commit 79b25e861d
79b25e861d [DeadCode] Handle always terminated If_ ElseIf_[] Else_ on RemoveUnreachableStatementRector (#2547)
2022-06-21 10:20:21 +00:00
Tomas Votruba
f638f7a12a Updated Rector to commit fe88fbb630
fe88fbb630 [PHP 8.1] Add FirstClassCallableRector (#2544)
2022-06-21 07:39:15 +00:00
Tomas Votruba
bb396cb5b1 Updated Rector to commit 6c713a776c
6c713a776c [DeadCode] Handle always terminated TryCatch on RemoveUnreachableStatementRector (#2545)
2022-06-21 06:34:28 +00:00
Tomas Votruba
9550950b4e Updated Rector to commit a16bc1b576
a16bc1b576 skip privatization, as unknown side effect (#2542)
2022-06-20 17:57:13 +00:00
Tomas Votruba
40e124c320 Updated Rector to commit 7129067a8a
7129067a8a [CodeQuality] Fix default array param in CallableThisArrayToAnonymousFunctionRector (#2527)
2022-06-17 19:25:55 +00:00
Tomas Votruba
fa8e606d26 Updated Rector to commit 49fc61c1ff
49fc61c1ff Bump to Symplify 11 (#2489)
2022-06-13 23:08:50 +00:00
Tomas Votruba
a1d7c79c1b Updated Rector to commit 28ed5cf916
28ed5cf916 [automated] Re-Generate Nodes/Rectors Documentation (#2479)
2022-06-12 14:01:14 +00:00
Tomas Votruba
836530a699 Updated Rector to commit e1188e9bff
e1188e9bff [DeadCode] Skip has return reassign Coalesce Op on RemoveUnusedPrivatePropertyRector (#2477)
2022-06-11 15:50:57 +00:00
Tomas Votruba
7800c7ad15 Updated Rector to commit e1188e9bff
e1188e9bff [DeadCode] Skip has return reassign Coalesce Op on RemoveUnusedPrivatePropertyRector (#2477)
2022-06-11 14:03:15 +00:00
Tomas Votruba
dd31e833a9 Updated Rector to commit ce1c29184d
ce1c29184d [scoped] change only year and month, to make diff esaier to see; autoload is handled already
2022-06-11 12:27:46 +00:00
Tomas Votruba
9cf6755b1b Updated Rector to commit 9679ed6d77
9679ed6d77 [DeadCode] Skip using coealesce assign operator on return on RemoveUnusedPrivatePropertyRector (#2476)
2022-06-11 12:21:18 +00:00
Tomas Votruba
b4891e547c Updated Rector to commit a5340c6f06
a5340c6f06 [Renaming] Do not rename docblock same name not found in use inside namespace (#2471)
2022-06-11 11:59:10 +00:00
Tomas Votruba
7fbc26bbc7 Updated Rector to commit 797cb38b88
797cb38b88 Clean PHPStan errors (#2475)
2022-06-10 14:48:54 +00:00
Tomas Votruba
a9ffd906d7 Updated Rector to commit 368dbb048c
368dbb048c docs: fix instruction in CONTRIBUTING.md (#2470)
2022-06-10 05:55:49 +00:00
Tomas Votruba
5953030010 Updated Rector to commit 56651d0190
56651d0190 use PHPStan 1.7.12, with new phpdoc-parser to fix endline issue
2022-06-09 12:53:21 +00:00
Tomas Votruba
f188888181 Updated Rector to commit bdf11c5968
bdf11c5968 [DX] Add deprecation exception about old ContainerConfigurator, to prepare for removal even in CI
2022-06-09 10:19:12 +00:00
Tomas Votruba
7e1e20e9f2 Updated Rector to commit 17b86d4b77
17b86d4b77 [CodeQuality] Remove unnecessary check next return removed no SimplifyIfElseToTernaryRector (#2457)
2022-06-09 06:07:50 +00:00
Tomas Votruba
e8d4384fe8 Updated Rector to commit 6c8b3dc9f8
6c8b3dc9f8 [DeadCode][PHPUnit] handle crash on RemoveJustPropertyFetchForAssignRector+SimplifyForeachInstanceOfRector (#2453)
2022-06-08 05:54:40 +00:00
Tomas Votruba
1fa4d2afe7 Updated Rector to commit 5e3c2e71e0
5e3c2e71e0 exclude polyfills in generics way from php-scoper docs
2022-06-07 10:39:08 +00:00
Tomas Votruba
bdec76e60e Updated Rector to commit 5ed173f14865e72ba7156645e2a79930152e1cc5
5ed173f148 skip RuleDefinition explicitly
2022-06-07 09:18:30 +00:00
Tomas Votruba
bdfd24339f Updated Rector to commit 2e977bd3aad21113e0bb7e2aa9b102f6f1e9246d
2e977bd3aa deploy to original repository
2022-06-07 08:22:29 +00:00
Tomas Votruba
91f5aab952 Updated Rector to commit 4f07a4f30f
4f07a4f30f [Php74] Remove ReservedFnFunctionRector (#2447)
2022-06-07 06:40:10 +00:00
Tomas Votruba
da1eb8d817 Updated Rector to commit bd0104d6c6
bd0104d6c6 [DX] Detach typo3 from core to allow stable growth of both packages (#2446)
2022-06-06 17:33:21 +00:00
Tomas Votruba
aa2cb1b997 Updated Rector to commit 0eba231b07
0eba231b07 [PHP 8.1] Move ConstantListClassToEnumRector to PHP 8.1 (#2444)
2022-06-06 17:12:56 +00:00
Tomas Votruba
a28f4b14a4 Updated Rector to commit 2022-06-06 16:43:29 +00:00
Tomas Votruba
cc91bd4f07 Updated Rector to commit 0eba231b07
0eba231b07 [PHP 8.1] Move ConstantListClassToEnumRector to PHP 8.1 (#2444)
2022-06-06 15:55:14 +00:00
Tomas Votruba
08cadc8e87 Updated Rector to commit 38a9718b52
38a9718b52 [CS] Fix dynamic and broken indent detection, allow to configure spacing via RectorConfig::indent() method (#2442)
2022-06-06 09:59:48 +00:00
Tomas Votruba
062970bc82 Updated Rector to commit df5bd5fb79
df5bd5fb79 [DX] Make ClassAnnotationMatcher differentiate between known and unknown classes (#2319)
2022-06-06 08:39:49 +00:00
Tomas Votruba
07acf2086f Updated Rector to commit 40d9102eab
40d9102eab [Renaming] Do not Rename Docblock inner Namespace on RenameClassRector (#2441)
2022-06-06 06:00:07 +00:00
Tomas Votruba
3113a2404c Updated Rector to commit dbb54b83cc
dbb54b83cc [automated] Re-Generate Nodes/Rectors Documentation (#2438)
2022-06-05 00:39:10 +00:00
Tomas Votruba
03ef1cdc0b Updated Rector to commit b0a6173550
b0a6173550 [DeadCode] Add RemoveJustPropertyFetchRector (#2433)
2022-06-04 17:37:29 +00:00
Tomas Votruba
63ef476ebe Updated Rector to commit 70261b71b7
70261b71b7 [DeadCode] Fix known array type in empty if foreach (#2432)
2022-06-04 13:19:43 +00:00
Tomas Votruba
2e28c5e4af Updated Rector to commit 83f7e9f3ab
83f7e9f3ab [DX] Remove too detailed --type in init command, use fw documentation instead (#2430)
2022-06-04 11:53:51 +00:00
Tomas Votruba
6677a82eb8 Updated Rector to commit 506c282f54
506c282f54 [Scoped] Exclude symfony/contracts/HttpClient/Test/HttpClientTestCase.php from parallel-lint check (#2429)
2022-06-04 10:45:13 +00:00
Tomas Votruba
70b4aeb27a Updated Rector to commit 183493eab8
183493eab8 [DeadCode] Fix RemoveUnusedPrivatePropertyRector with left part of array dim fetch (#2428)
2022-06-04 09:40:28 +00:00
Tomas Votruba
bf28f06a74 Updated Rector to commit 6b9984175f
6b9984175f [Naming] Fix PseudoNamespaceToNamespaceRector reporting on change (#2426)
2022-06-04 08:16:56 +00:00
Tomas Votruba
98eb7617da Updated Rector to commit 283a9af3f0
283a9af3f0 [Renaming] Skip docblock rename different namespace on RenameClassRector (#2419)
2022-06-04 07:39:10 +00:00