Commit Graph

14925 Commits

Author SHA1 Message Date
Tomas Votruba 9a86942399 Updated Rector to commit 86c0920bdf0222f3c3e6ddf8490804f428a39fae
86c0920bdf [Init] Add smart paths detection to init command to make first Rector experience better (#3050)
2022-11-11 14:53:57 +00:00
Tomas Votruba 44bd6589c7 Updated Rector to commit e3ff080a96e2efbcd4a62c07b44ef4f950bd023d
e3ff080a96  [Core] Improve performance on NodeComparator  (#3049)
2022-11-11 13:43:14 +00:00
Tomas Votruba 73bd079d75 Updated Rector to commit 21ead88cdeef5013e635c9e4eb2a22456d6e93e9
21ead88cde [Core] Improve performance: remove unnecessary loop StmtsAwareInterface to fill Scope on PHPStanNodeScopeResolver (#3048)
2022-11-11 13:35:09 +00:00
Tomas Votruba fac0875c1b Updated Rector to commit fced569c7d60f32dbe3bc02e7ba8b64dd5aeef0f
fced569c7d [Core] Improve performance: only update and connect parent Node when different Node (#3044)
2022-11-11 11:49:04 +00:00
Tomas Votruba 04b65fc52f Updated Rector to commit 4d931030cb41813a2cfc90d5f7f7a1825ae87686
4d931030cb [Core] Improve performance: verify consecutive execute same Rector Rule when Original Node is Null (#3047)
2022-11-11 11:48:30 +00:00
Tomas Votruba e974c922b9 Updated Rector to commit b31bb42c902e6de649cb1228579be72023c171ec
b31bb42c90 [Php81] Register uniqid function on NullToStrictStringFuncCallArgRector (#3045)
2022-11-11 11:47:05 +00:00
Tomas Votruba 3bcc7247cb Updated Rector to commit ac8fc4c418132ab78ca3c0d61d8533bf530fe58f
ac8fc4c418 [Core] Improve performance: only reindex Node Attributes when Original Node is not null (#3043)
2022-11-11 11:46:13 +00:00
Tomas Votruba 197d502349 Updated Rector to commit 51c2bbe321adb08bb8f35cb8ce71f61fc456fcd4
51c2bbe321 [Php81][Restoration] Handle crash on ReadOnlyPropertyRector+MakeTypedPropertyNullableIfCheckedRector (#3046)
2022-11-11 11:41:25 +00:00
Tomas Votruba d72c3a41d9 Updated Rector to commit 8ede862b8de3239aafea64484802903aaa6d5e95
8ede862b8d Update phpstan message (#3042)
2022-11-10 16:47:52 +00:00
Tomas Votruba b7d3b6ee6d Updated Rector to commit baf8394798205ee0d9c6f27e72f018e0996e624f
baf8394798 Fix var/property usage for RemoveUnusedNonEmptyArrayBeforeForeachRector. (#3040)
2022-11-10 14:51:25 +00:00
Tomas Votruba 728e63c6c2 Updated Rector to commit baf8394798205ee0d9c6f27e72f018e0996e624f
baf8394798 Fix var/property usage for RemoveUnusedNonEmptyArrayBeforeForeachRector. (#3040)
2022-11-10 13:29:01 +00:00
Tomas Votruba d9e32f78d0 Updated Rector to commit baf8394798205ee0d9c6f27e72f018e0996e624f
baf8394798 Fix var/property usage for RemoveUnusedNonEmptyArrayBeforeForeachRector. (#3040)
2022-11-10 07:49:28 +00:00
Tomas Votruba 329458c65d Updated Rector to commit 10c6a3047fde6a6a2f94c9260dc3482de6e7f5c0
10c6a3047f [Php80] Add ::class support on GetDebugTypeRector (#3039)
2022-11-08 13:37:31 +00:00
Tomas Votruba bba6495f7d Updated Rector to commit 10346eea20d2222819f59b2ae994acc0948352e4
10346eea20 Apply node->isFirstCallable() check early before ->getArgs() when possible on CallLike (#3038)
2022-11-07 17:28:06 +00:00
Tomas Votruba bde184a1bc Updated Rector to commit 84361b82b630d31b49b009b46bdd3b1312ced2e8
84361b82b6 try bumping scoper 0.17.7
2022-11-07 09:45:55 +00:00
Tomas Votruba c0fad45833 Updated Rector to commit 49917308b21560e58d22e7faec5924261d12ec4c
49917308b2 Clarify SwapFuncCallArguments rule documentation (#3036)
2022-11-07 09:45:26 +00:00
Tomas Votruba 1d6c26bf79 Updated Rector to commit 5aa424865a1cadfa260a14d101d46fda76ec087e
5aa424865a [Core] Typo fix on @param callable on ForeachManipulator and BinaryOpManipulator (#3035)
2022-11-07 09:33:09 +00:00
Tomas Votruba cc3b0a4b46 Updated Rector to commit b7a64276d51f16a3c5cd7af482a20c6c9f70c656
b7a64276d5 [Php55] Handle crash on ([[:upper:]]+) regex on PregReplaceEModifierRector (#3037)
2022-11-07 09:32:02 +00:00
Tomas Votruba 0d82d6bf1d Updated Rector to commit 64d0a8375814c9da2fe93036e4c0fa5fbf06aa25
64d0a83758 [Php80][CodeQuality] Handle crash on ExplicitMethodCallOverMagicGetSetRector+ChangeSwitchToMatchRector (#3034)
2022-11-05 11:30:02 +00:00
Tomas Votruba f9414241aa Updated Rector to commit 64d0a8375814c9da2fe93036e4c0fa5fbf06aa25
64d0a83758 [Php80][CodeQuality] Handle crash on ExplicitMethodCallOverMagicGetSetRector+ChangeSwitchToMatchRector (#3034)
2022-11-05 11:18:42 +00:00
Tomas Votruba 3553aaba0e Rector 0.14.7 2022-11-04 08:48:40 +00:00
Tomas Votruba ce3c134b0d Updated Rector to commit a5051ff31121d95ac2ccf7db351ea486024a0b3f
a5051ff311 Bump to PHPStan ^1.9.0 (#3033)
2022-11-04 07:12:49 +00:00
Tomas Votruba ecee0c4cb7 Updated Rector to commit 7dae36df19a081561ca342751d9727eff503106b
7dae36df19 Register driftingly/rector-laravel for community package (#3031)
2022-11-02 14:48:20 +00:00
Tomas Votruba 896854b9a6 Updated Rector to commit 92a5c65cc2ce07fcdffecce0344c4878184cb7cb
92a5c65cc2 [Php81] Skip on Array Destructuring on ReadOnlyPropertyRector (#3030)
2022-11-02 13:07:49 +00:00
Tomas Votruba 1724f088d6 Updated Rector to commit 6902b17851f2b7172c0351e72cd1d4263684818f
6902b17851 InlineConstructorDefaultToPropertyRector fix code example (#7465) (#3028)
2022-11-02 00:04:20 +00:00
Tomas Votruba 6afda57164 Updated Rector to commit 9e4a9c0c25fbbd630cac07c9dab074f8dc9c54b8
9e4a9c0c25 [CodeQuality] Add TernaryEmptyArrayArrayDimFetchToCoalesceRector (#3027)
2022-11-01 19:57:56 +00:00
Tomas Votruba ddc864eff4 Updated Rector to commit 7b7d5a4b8bb61b52a298cbf941b7df131897f55b
7b7d5a4b8b Revert string specific identifier values on Type Mappers (#3024)
2022-11-01 14:15:38 +00:00
Tomas Votruba f424fd6a95 Updated Rector to commit 7b7d5a4b8bb61b52a298cbf941b7df131897f55b
7b7d5a4b8b Revert string specific identifier values on Type Mappers (#3024)
2022-10-30 11:16:14 +00:00
Tomas Votruba b7fb4398da Updated Rector to commit 997e5f4ae8c388b8a12d16539e8109fe821e8fd6
997e5f4ae8 [TypeDeclaration] Skip intersection with iterable on ReturnTypeDeclarationRector on php 8.1 feature enabled (#3022)
2022-10-29 10:54:11 +00:00
Tomas Votruba 0f38f3753c Updated Rector to commit af4cf28751f652d2ee1a8319d6cb39bf8614a1c1
af4cf28751 [DX] Use directly instanceof (#3021)
2022-10-28 10:16:48 +00:00
Tomas Votruba 34ee94e559 Updated Rector to commit 81d79a85ee8b75e8e61800aefffb3286e870109b
81d79a85ee [PHPStan] Fix Multiple services of type PHPStan\Rules\PHPUnit\CoversHelper on require phpstan-phpunit ^1.2.1 (#3020)
2022-10-28 09:01:53 +00:00
Tomas Votruba 52256749df Updated Rector to commit 40ab9ab2b4d529c8d465d5730c29b09efd5ed3ba
40ab9ab2b4 Move Rector Laravel to the community (#3019)
2022-10-27 17:45:09 +00:00
Tomas Votruba d8598b36c0 Updated Rector to commit 4bf158721cf9fb872cda789f446709e6967a983f
4bf158721c [Php80] Handle nested annotation not end with () on AnnotationToAttributeRector (#3017)
2022-10-27 16:27:05 +00:00
Tomas Votruba 37117895cd Updated Rector to commit 478cf1456091c3c095870588ebf2cd7a94672264
478cf14560 pin phpstan/phpstan-phpunit to 1.1.3 (#3018)
2022-10-27 12:57:23 +00:00
Tomas Votruba ccac2c982e Updated Rector to commit b46d5f50092e61888943960a5320e77822e047c3
b46d5f5009 [DeadCode] Handle crash on has first class callable on RemoveUnusedConstructorParamRector (#3015)
2022-10-26 09:00:10 +00:00
Tomas Votruba 2d8d2f847a Updated Rector to commit d82ef173e81083a942087f1bced44c3ba77145fc
d82ef173e8 [Core] Improve RectifiedAnalyzer: no need to check created by rule when original Node is null (#3014)
2022-10-25 14:59:55 +00:00
Tomas Votruba 39e69b0939 Updated Rector to commit a59fd4879215f2c831e863894fe3447144d5feaf
a59fd48792 Upgrade deprecated set-* (#3013)
2022-10-25 14:01:23 +00:00
Tomas Votruba b9c04e2a17 Updated Rector to commit a59fd4879215f2c831e863894fe3447144d5feaf
a59fd48792 Upgrade deprecated set-* (#3013)
2022-10-24 17:38:27 +00:00
Tomas Votruba f9e1eca05d Updated Rector to commit 5131abdb5a98a12658c4d13af3c2be655456bf43
5131abdb5a [EarlyReturn] Handle crash on RemoveAlwaysElseRector+ReturnEarlyIfVariableRector (#3011)
2022-10-24 16:11:57 +00:00
Tomas Votruba c07fbf550b Updated Rector to commit f915a1f1c9c178fa40f7443dab547397245be278
f915a1f1c9 [Php80] Skip callable type different definition on ClassPropertyAssignToConstructorPromotionRector (#3010)
2022-10-24 08:19:06 +00:00
Tomas Votruba e17cd185d3 Updated Rector to commit b4c0637b1f59b5110a41205df6af51105bee7520
b4c0637b1f Register Ctype functions (#3008)
2022-10-23 13:38:34 +00:00
Tomas Votruba c3426445a0 Updated Rector to commit 0f1af3c50904de090dcbbf89460de3ad83169055
0f1af3c509 [Php80] Handle crash on extends \mysqli on AddParamBasedOnParentClassMethodRector (#3009)
2022-10-23 13:36:33 +00:00
Tomas Votruba d5ca88382b Updated Rector to commit 64b241f9922cebf368dc705c7931404e32980852
64b241f992 [AutoImport] Add support use existing imported short name (#3005)
2022-10-22 12:50:23 +00:00
Tomas Votruba 10e29c44d8 Updated Rector to commit 81e326c2ff3957fe65c2bba5a85bad57887c7c8f
81e326c2ff [DeadCode] Handle RemoveUnusedPrivateMethodRector+RemoveDuplicatedIfReturnRector when private method used in FuncCall with ArrowFunction (#3007)
2022-10-22 09:55:21 +00:00
Tomas Votruba 65d5921fd9 Updated Rector to commit 1dcd9faf6d5eae5b911f764c6877343774b6a359
1dcd9faf6d [Core] Move currentFileProvider->setFile() early before loop on PhpFileProcessor::process() (#3006)
2022-10-22 09:54:30 +00:00
Tomas Votruba 48bf5c84cd Updated Rector to commit befc5441a1ef5c19cabf9cae0619d5c2cd23a028
befc5441a1 Add real path to filePaths when not false (#3004)
2022-10-21 10:12:40 +00:00
Tomas Votruba ab87062075 Updated Rector to commit 4cecebfd7e86cafd9e09f8e1fd493046aa1181ea
4cecebfd7e [Down_To_PHP71] Handle Downgrade Param Widening + Downgrade Reflection Get on DowngradeLevelSetList::DOWN_TO_PHP_71 (#3001)
2022-10-20 07:40:24 +00:00
Tomas Votruba e8603ff6cb Updated Rector to commit e4ec1f9d52d17b7d9f0effe1230f2e0778156ba4
e4ec1f9d52 [Php70] Handle crash on First class callable on ThisCallOnStaticMethodToStaticCallRector (#3003)
2022-10-19 11:11:32 +00:00
Tomas Votruba edd2c3657d Updated Rector to commit 71ffc807faa4ee0ec144d5a7b6051a7c86c730c8
71ffc807fa Update all classlike pseudo rector (#3002)
2022-10-18 11:35:10 +00:00
Tomas Votruba fe83c2a756 Updated Rector to commit 56620a9e3f49a1a71c6586752c9d5f67c0e7281c
56620a9e3f [CodeQuality] Skip different array_filter value on SimplifyEmptyArrayCheckRector (#3000)
2022-10-17 13:38:23 +00:00