Commit Graph

187 Commits

Author SHA1 Message Date
Tomas Votruba
9fdeacaeee Updated Rector to commit 933eb1353d193ca90bdb02265039469c620ad46f
933eb1353d [Php81] Handle crash on Crypt() single arg on NullToStrictStringFuncCallArgRector (#2767)
2022-08-15 18:34:46 +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
26bacab80c Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-11 14:46:08 +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
1d9b00a194 Updated Rector to commit d7be25882209a65d05c9b41e7bcd4f198ac6478f
d7be258822 [Php81] Skip Encapsed on NullToStrictStringFuncCallArgRector (#2744)
2022-08-09 20:47:13 +00:00
Tomas Votruba
951e340c94 Updated Rector to commit 49a8343323c6cc5c40e1ca0ef4b3e6c418848ea7
49a8343323 [PHP 8.1] Keep use stmts in MyCLabsClassToEnumRector enum (#2696)
2022-07-20 13:38:02 +00:00
Tomas Votruba
cebbc835dd Updated Rector to commit 963c48c32a154f0045adde8793492afb0bf3caf2
963c48c32a [PHP 8.1] Extend MyCLabsMethodCallToEnumConstRector with getValue() and static call (#2695)
2022-07-20 13:20:59 +00:00
Tomas Votruba
ff718bc107 Updated Rector to commit 329b4f2e6f13394b56eb4ad01e020fc651fc83d5
329b4f2e6f [NodeTypeResolver] Refactor ParametersAcceptorSelectorVariantsWrapper to pass CallLike instead of Arg (#2632)
2022-07-05 07:33:24 +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
138ae66a5b Updated Rector to commit 83f2b16f0c
83f2b16f0c [cs] add static lambda rule [closes #2514]
2022-06-21 15:38:46 +00:00
Tomas Votruba
c9b4c3f38d Updated Rector to commit 0fb4f5bfbb
0fb4f5bfbb [Core] Apply Scope Refresh on Enum_ (#2549)
2022-06-21 14:59:06 +00:00
Tomas Votruba
7e8b6a22aa Updated Rector to commit e8ca23fd15
e8ca23fd15 [Php81] NullToStrictStringFuncCallArgRector - Register more function (#2543)
2022-06-21 10:27:51 +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
6df03b5f94 Updated Rector to commit d4ec140212
d4ec140212 [Php81] Skip str_replace() pass array subject on NullToStrictStringFuncCallArgRector (#2541)
2022-06-20 14:51:15 +00:00
Tomas Votruba
8b000ddfe5 Updated Rector to commit 064d38be75
064d38be75 [Php81] Skip param reassign on ReadOnlyPropertyRector (#2498)
2022-06-17 07:22:25 +00:00
Tomas Votruba
1ca568d18c Updated Rector to commit 332aad337e
332aad337e fix casing of enums
2022-06-13 09:09:58 +00:00
Tomas Votruba
b6a8818d00 Updated Rector to commit cbbe410aff
cbbe410aff string prefixing is still needed
2022-06-07 09:46:15 +00:00
Tomas Votruba
9bb996bfce Updated Rector to commit a9779404d3
a9779404d3 try without prefixing string classes
2022-06-07 09:38:27 +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
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
e58cb04bad Updated Rector to commit 340f5b999c
340f5b999c [DowngradePhp80] Add DowngradeEnumToConstantListClassRector (#2416)
2022-06-02 12:02:30 +00:00
Tomas Votruba
5b72ec39c6 Updated Rector to commit db57fbaae4
db57fbaae4 Remove myclabs/php-enum dependency (#2388)
2022-05-29 22:41:07 +00:00
Tomas Votruba
7e46eb8267 Updated Rector to commit a2d6da8b4e
a2d6da8b4e Back to php-scoper 0.14 with scoping from php 8.0 (#2370)
2022-05-27 11:51:31 +00:00
Tomas Votruba
beba7d6efe Updated Rector to commit 1249d947f4
1249d947f4 Try php-scoper 0.17 (#2368)
2022-05-27 11:25:02 +00:00
Tomas Votruba
1bc7ee9334 Updated Rector to commit e33bcf19be
e33bcf19be [Core] Override pModifiers() method to set final and abstract modifiers early on BetterStandardPrinter (#2328)
2022-05-18 10:48:11 +00:00
Tomas Votruba
e7cbd16435 Updated Rector to commit 0686f438cc
0686f438cc [PHPStan] Enable symplify-rules.neon (#2318)
2022-05-15 11:50:50 +00:00
Tomas Votruba
060b1642ed Updated Rector to commit 55be345ca9
55be345ca9 Various improvements (#2291)
2022-05-11 17:53:44 +00:00
Tomas Votruba
80c29bac02 Updated Rector to commit c4e1ee2b3e
c4e1ee2b3e Added new functions to NullToStrictStringFuncCallArgRector (#2217)
2022-05-03 12:09:48 +00:00
Tomas Votruba
9dacdb4abb Updated Rector to commit 464b74c40d
464b74c40d [Core] Merge BetterNodeFinder findFirstPreviousOfNode() with findFirstPrevious() (#2213)
2022-05-02 12:45:52 +00:00
Tomas Votruba
7466aca164 Updated Rector to commit c3adc6b043
c3adc6b043 [Privatization] Add ParentPropertyLookupGuard service (#2152)
2022-04-24 19:43:23 +00:00
Tomas Votruba
5d5bb830df Updated Rector to commit c7ff21825e
c7ff21825e [Php81] Skip multiple assign on __construct on ReadOnlyPropertyRector (#2088)
2022-04-17 15:25:10 +00:00
Tomas Votruba
a641d86cfa Updated Rector to commit 90bbd4e1a0
90bbd4e1a0 [Php74] Add GetCalledClassToSelfClassRector (#1971)
2022-03-27 18:45:00 +00:00
Tomas Votruba
c6551c2127 Updated Rector to commit 82656ade38
82656ade38 [CodeQuality] Handle not identical return false then true on SimplifyIfReturnBoolRector (#1969)
2022-03-27 18:43:32 +00:00
Tomas Votruba
40324f386c Updated Rector to commit 4562f4f988
4562f4f988 [Php81] Skip anonymous class on FinalizePublicClassConstantRector (#1970)
2022-03-27 18:43:03 +00:00
Tomas Votruba
9d2d61cbdd Updated Rector to commit f7e1035828
f7e1035828 [Php81] Skip static property on ReadOnlyPropertyRector (#1939)
2022-03-16 09:24:07 +00:00
Tomas Votruba
0fe0835184 Updated Rector to commit 7202782f50
7202782f50 [CodeQuality] Add InlineConstructorDefaultToPropertyRector (#1935)
2022-03-15 17:33:16 +00:00
Tomas Votruba
2696a014f1 Updated Rector to commit 926a7e02bc
926a7e02bc [Privatization] Add constant support on ChangeReadOnlyVariableWithDefaultValueToConstantRector (#1890)
2022-03-02 11:43:06 +00:00
Tomas Votruba
7afdbe00e6 Updated Rector to commit 4dee58ba84
4dee58ba84 [Php81] Fix property with attribute inlined on ReadOnlyPropertyRector (#1869)
2022-02-25 12:34:50 +00:00
Tomas Votruba
db8f291981 Updated Rector to commit 88d7be3d93
88d7be3d93 [Php81] Add ConstFetch and ClassConstFetch arg support on NewInInitializerRector (#1848)
2022-02-21 11:31:42 +00:00
Tomas Votruba
b206f0de34 Updated Rector to commit 4cf6522e77
4cf6522e77 [Php81] Skip used as ArrayDimFetch on Arg on side effect FuncCall on ReadOnlyPropertyRector (#1821)
2022-02-16 21:07:17 +00:00
Tomas Votruba
67fb92b15d Updated Rector to commit d31e2233e8
d31e2233e8 [Php81] Skip override abstract method on NewInInitializerRector (#1740)
2022-01-29 16:32:26 +00:00
Tomas Votruba
28f8cfafaf Updated Rector to commit 73f5fc13bb
73f5fc13bb [Php81] Handle non-dynamic + dynamic args (non-array, non-scalar) passed to New_ on NewInInitializerRector (#1737)
2022-01-28 12:21:10 +00:00
Tomas Votruba
2ebc6821cc Updated Rector to commit 79dd9bb5f4
79dd9bb5f4 [Php81] Do not add final modifier on class constant that the class has children on FinalizePublicClassConstantRector (#1739)
2022-01-28 11:05:27 +00:00
Tomas Votruba
c00641bc2d Updated Rector to commit a734965d99
a734965d99 [Php81] Skip dynamic class on NewInInitializerRector (#1736)
2022-01-27 12:35:06 +00:00
Tomas Votruba
f25b52c226 Updated Rector to commit a26c59a7e9
a26c59a7e9 [TypeDeclaration] Skip use return docblock on typed intersection type (#1728)
2022-01-26 11:18:38 +00:00
Tomas Votruba
20964885f0 Updated Rector to commit 64d76cd11e
64d76cd11e [FinalizePublicClassConstantRector] Ignore final classes (#1730)
2022-01-26 10:10:51 +00:00
Tomas Votruba
a92f92cd40 Updated Rector to commit c9319540f9
c9319540f9 [Php81] Skip static call in right expr of Coalesce on NewInInitializerRector (#1670)
2022-01-14 09:29:52 +00:00
Tomas Votruba
89982c6c94 Updated Rector to commit 2607c2a79b
2607c2a79b [Php81] Add NullToStrictStringFuncCallArgRector (#1655)
2022-01-13 13:02:46 +00:00
Tomas Votruba
feb1acabfc Updated Rector to commit cb8fe8474c
cb8fe8474c [PHP 8.1] Skip abstract class in NewInInitializerRector (#1581)
2021-12-27 19:05:02 +00:00
Tomas Votruba
a440c65f29 Updated Rector to commit 7cdd03ed77
7cdd03ed77 [PHP 8.1] Fix IntersectionTypesRector for non-object types (#1495)
2021-12-14 14:39:36 +00:00
Tomas Votruba
8007b9f521 Updated Rector to commit c7638288f7
c7638288f7 Fixes docs (#1490)
2021-12-14 12:42:11 +00:00
Tomas Votruba
eeefa260aa Updated Rector to commit e1b44d02a8
e1b44d02a8 [Scoped] Fix build scoped on unused bin/generate-changelog.php bin/rector bin/rector.php bin/validate-phpstan-version.php files in scoped build (#1491)
2021-12-14 12:22:33 +00:00
Tomas Votruba
f48677501c Updated Rector to commit c7638288f7
c7638288f7 Fixes docs (#1490)
2021-12-14 12:21:21 +00:00
Tomas Votruba
1742d3cab4 Updated Rector to commit 4214801263
4214801263 [DowngradePhp73] Handle (array) cast on DowngradeArrayKeyFirstLastRector (#1478)
2021-12-13 16:47:47 +00:00
Tomas Votruba
3266f22182 Updated Rector to commit 1d409bc35b
1d409bc35b safe by default
2021-12-10 10:22:23 +00:00
Tomas Votruba
058d52567d Updated Rector to commit c621d7650d
c621d7650d [TypeDeclaration] Add void upper inner function has return on ReturnTypeDeclarationRector (#1447)
2021-12-10 09:57:54 +00:00
Tomas Votruba
c726969380 Updated Rector to commit fc10fce13d
fc10fce13d [Rectify] [Php81] Enable Rectify on Readonly Property only (#1384)
2021-12-04 12:47:17 +00:00
Tomas Votruba
cbb188acfb Updated Rector to commit 922e91d84a
922e91d84a [Php81] Skip non private modifier on ReadOnlyPropertyRector (#1367)
2021-12-02 10:13:44 +00:00
Tomas Votruba
a690f01521 Updated Rector to commit cec23b37b2
cec23b37b2 [Php81] Skip no type param on ReadOnlyPropertyRector (#1365)
2021-12-02 07:35:25 +00:00
Tomas Votruba
e705b30593 Updated Rector to commit 1cbf32d44c
1cbf32d44c [Php81] Add scalar type on Enum MyCLabsClassToEnumRector and SpatieEnumClassToEnumRector (#1366)
2021-12-02 07:34:29 +00:00
Tomas Votruba
768d809544 Updated Rector to commit 3f07f38426
3f07f38426 VisibilityManipulator adjustment (#1362)
2021-12-02 07:34:16 +00:00
Tomas Votruba
0988a578ae Updated Rector to commit 9e81001c68
9e81001c68 [Config] Re-enable Config SetList on rector.php (#1360)
2021-12-01 09:10:03 +00:00
Tomas Votruba
fffeddc456 Updated Rector to commit 4287ca3aa9
4287ca3aa9 [Php81] Skip no type property on ReadOnlyPropertyRector (#1354)
2021-11-30 16:51:32 +00:00
Tomas Votruba
47f116fafd Updated Rector to commit 59e9222be2
59e9222be2 [Php81] Skip has default value on ReadOnlyPropertyRector (#1355)
2021-11-30 16:50:00 +00:00
Tomas Votruba
00645c017c Updated Rector to commit 0e96615c36
0e96615c36 [DX] Explicitly inject visibility manipulator service instead of parent constructor (#1298)
2021-11-24 11:00:16 +00:00
Tomas Votruba
3c750baf30 Updated Rector to commit f5d4f9dd76
f5d4f9dd76 [Php81] Apply constructor promotion on NewInInitializerRector (#1288)
2021-11-22 09:01:31 +00:00
Tomas Votruba
b522cb4146 Updated Rector to commit fa20738aa4
fa20738aa4 [Downgrade PHP 8.1] Add DowngradeNewInInitializerRector (#1275)
2021-11-19 20:52:59 +00:00
Tomas Votruba
976ae72f73 Updated Rector to commit 587d8d8058
587d8d8058 [Downgrade PHP 8.1] Add DowngradeReadonlyPropertyRector (#1262)
2021-11-18 19:20:31 +00:00
Tomas Votruba
5e0eef55a5 Updated Rector to commit c6473c6a0b
c6473c6a0b [Php81] Fix NewInInitializerRector code sample (#1264)
2021-11-18 07:58:51 +00:00
Tomas Votruba
d4c101be43 Updated Rector to commit 24b8ea974a
24b8ea974a [PHP 8.1] Add IntersectionTypesRector (#1227)
2021-11-14 12:07:09 +00:00
Tomas Votruba
cbf5a11580 Updated Rector to commit 2334331e30
2334331e30 [PHP 8.1] Add NewInInitializerRector (#1224)
2021-11-13 16:23:20 +00:00
Tomas Votruba
f83732a356 Updated Rector to commit 6cbc5d4caf
6cbc5d4caf [Naming] Use aliased when exists on RenamePropertyToMatchTypeRector on promoted property (#1125)
2021-11-03 09:03:16 +00:00
Tomas Votruba
2b6e4f5909 Updated Rector to commit d1e09e3d5e
d1e09e3d5e [ECS] remove ignored rules that are now fixed, use SimplePhpParser for ad-hoc node resolving (#1076)
2021-10-27 08:50:45 +00:00
Tomas Votruba
6dcaaef071 Updated Rector to commit 49314dc3d4
49314dc3d4 [DX] Add PhpUpgradeImplementsMinPhpVersionInterfaceRule (#910)
2021-09-24 14:11:08 +00:00
Tomas Votruba
8303b46898 Updated Rector to commit 0779c402c3
0779c402c3 [automated] Re-Generate Nodes/Rectors Documentation (#832)
2021-09-05 00:27:40 +00:00
Tomas Votruba
02329d8b20 Updated Rector to commit e8c8f9996d
e8c8f9996d Add minimum PHP versions for PHP 8.1 rules (#814)
2021-09-02 15:24:03 +00:00
Tomas Votruba
ba205b46bb Updated Rector to commit 68d410ef00
68d410ef00 Trigger notification (#741)
2021-08-23 00:20:32 +00:00
Tomas Votruba
674f76ced2 Updated Rector to commit 877cbb2de8
877cbb2de8 fix(scoper): prefix vendor classes from PHPDoc, close #6614 (#739)
2021-08-22 23:17:31 +00:00
Tomas Votruba
40d9772df6 Updated Rector to commit de5c4c77a5
de5c4c77a5 [EarlyReturn] Allow usage ChangeOrIfReturnToEarlyReturnRector and RemoveAlwaysElseRector without elseif (#655)
2021-08-12 16:01:53 +00:00
Tomas Votruba
a0b5bf612c Updated Rector to commit 48121fb6f4
48121fb6f4 [PHP 8.1] Add basic support for Spatie Enums to native Enums (#653)
2021-08-12 14:48:46 +00:00
Tomas Votruba
a3e534ff19 Updated Rector to commit db2e76b99c
db2e76b99c load stubs in config
2021-07-22 23:37:17 +00:00
Tomas Votruba
96112cb1f0 Updated Rector to commit 2da49992cc
2da49992cc [Downgrade] [PHP 7.2] Make DowngradeParameterTypeWideningRector always downgrade to phpdoc type (#390)
2021-07-05 22:50:18 +00:00
Tomas Votruba
a79e6f56df Updated Rector to commit ff1ad31d6a
ff1ad31d6a [PHP 7.2] Refactor DowngradeParameterTypeWideningRector to class method (#380)
2021-07-05 07:47:59 +00:00
Tomas Votruba
146dc7d680 Updated Rector to commit f2c0023dad
f2c0023dad [PHP 8.1] Add MyClabs enum to native ENUM (#30)
2021-05-14 09:53:43 +00:00