Commit Graph

2030 Commits

Author SHA1 Message Date
Tomas Votruba 12c115e6f6 Updated Rector to commit 5193d43b644f9d059d9964ebcc6820181a7bca18
5193d43b64 [NodeTypeResolver] Remove unnecessary loop SourceLocator collection on DynamicSourceLocatorProvider (#5852)
2024-05-02 02:21:56 +00:00
Tomas Votruba 664f4e3a6b Updated Rector to commit 0f1987b0faa8dc1c5e086c9b95457d6018b2cd82
0f1987b0fa Adds a link to the PHP Static Analysis Attributes rector rules (#5787)
2024-04-01 16:51:34 +00:00
Tomas Votruba 0a7d532276 Updated Rector to commit 93e025900b640f8182b267812a08c364d42590ef
93e025900b [automated] Apply Coding Standard (#5782)
2024-03-31 00:30:04 +00:00
Tomas Votruba f2feb272ed Updated Rector to commit aa706a152c2cb0ece154edab3bc89bad8c2f7208
aa706a152c [Php82] Add VariableInStringInterpolationFixerRector (#5781)
2024-03-29 21:39:12 +00:00
Tomas Votruba 42078c4127 Updated Rector to commit 08d73a1af5ebc77bf37e9854fc1aca76cd5fcbcb
08d73a1af5 [Printer] Apply configurable multiline on Fluent Method Call on print after method call created/re-printed (#5779)
2024-03-28 16:05:42 +00:00
Tomas Votruba de2b2cf2b4 Updated Rector to commit dc69b1a963dc78ea9fe4ab07b70bc0716e1be341
dc69b1a963 [CodeQuality] Add new rule - ExplicitReturnNullRector (#5753)
2024-03-21 14:39:02 +00:00
Tomas Votruba c0820093ad Updated Rector to commit ff32c0c08a89f27ea34187d00cf707734a7e39c8
ff32c0c08a [Php84] Add ExplicitNullableParamTypeRector (#5724)
2024-03-15 10:45:55 +00:00
Tomas Votruba edd8901ea0 Updated Rector to commit 23e3da2d6eee90e4f2a31c31062aabaeba77ba69
23e3da2d6e [CodeQuality] Remove BoolvalToTypeCastRector and FloatvalToTypeCastRector as well from code-quality set (#5722)
2024-03-14 20:16:36 +00:00
Tomas Votruba d7faacd4a0 Updated Rector to commit ea0f1c1351b68e3a0863d8460e2abea06099df87
ea0f1c1351 [code-quality] Remove intval/strval from sets, as no clear difference and personal preference (#5721)
2024-03-14 15:05:15 +00:00
Tomas Votruba 695c190be3 Updated Rector to commit 94b5561ca87ee6825a098c7c506b774582bf3354
94b5561ca8 chore: bump min version of github actions (fix deprecations) (#5675)
2024-03-01 20:02:28 +00:00
Tomas Votruba 6ef7f81fc3 Updated Rector to commit c4dd05e2e3ae6359ff4eb57ce7d7bd7619da139d
c4dd05e2e3 [CodeQuality] Add StaticToSelfStaticMethodCallOnFinalClassRector (#5621)
2024-02-15 12:52:16 +00:00
Tomas Votruba e79510ae2b Updated Rector to commit 0d55791128825909273d0cdd9743470236748d75
0d55791128 Fix downgrade build: exclude vendor/symplify/easy-parallel/ecs.php on parallel lint (#5584)
2024-02-08 04:24:11 +00:00
Tomas Votruba 428336c22c Updated Rector to commit 09398c3d4f07bb6ad664a55b87cab955278a467e
09398c3d4f Decouple AddFunctionVoidReturnTypeWhereNoReturnRector to allow leveling by simple node first (#5563)
2024-02-05 16:07:43 +00:00
Tomas Votruba d00ebb838c Updated Rector to commit 56c250771518c2aa2e17bc64c9986c2dbe9b6fd8
56c2507715 Decouple AddClosureVoidReturnTypeWhereNoReturnRector to allow leveling by simple node first (#5562)
2024-02-05 15:56:19 +00:00
Tomas Votruba 8be4b973f1 Updated Rector to commit c0079e3824d81ca2bd1a4b430c06acec4a5ef731
c0079e3824 Rollback RectorConfig::configure()->withRules() on privatization config set to old style config (#5560)
2024-02-05 09:59:39 +00:00
Tomas Votruba b0211bc3d8 Updated Rector to commit fa75fcf0d1445f90cff9199875aba352671795f9
fa75fcf0d1 [Performance][PhpVersionResolver] Cache resolve platform/require from composer.json on ProjectComposerJsonPhpVersionResolver (#5542)
2024-02-01 23:54:40 +00:00
Tomas Votruba 22c18b8179 Updated Rector to commit f03a6fd7d060535a5c124fe461190aafc527364e
f03a6fd7d0 [Privatization] Add FinalizeTestCaseClassRector (#5539)
2024-01-31 23:36:35 +00:00
Tomas Votruba e377d35b97 Updated Rector to commit 2efd564640e94edf09f95f3872adb11e059f5fb8
2efd564640 [stabilize] Deprecate FinalizePublicClassConstantRector as not reliable and causes uncontroller changed (#5534)
2024-01-31 14:27:18 +00:00
Tomas Votruba 17078d56a8 Updated Rector to commit 2f041dc9beacc2f150344f4c169cc14d4c4991d9
2f041dc9be [DX] PHP sets should not disable all other version-based rules (#5527)
2024-01-30 20:43:47 +00:00
Tomas Votruba 5d13103f37 Updated Rector to commit 5979c0932fd77f40f601ea37687c466833e83ed7
5979c0932f Exclude finalize rule from private set, to keep safer (#5523)
2024-01-30 13:11:00 +00:00
Tomas Votruba 00449e1e5c Updated Rector to commit 35ddfb28bac90271f2317ae394471062c699d419
35ddfb28ba make literal separator optional, as rather coding style and not always desired (#5505)
2024-01-26 14:25:43 +00:00
Tomas Votruba ec3d78eef4 Updated Rector to commit 5a3a59c50c7810296274eb4408737c8f2f8921e7
5a3a59c50c Remove collectors, as performance very costly and not practically useful (#5470)
2024-01-15 22:10:40 +00:00
Tomas Votruba f8c73cea6c Updated Rector to commit a326b8504d37093f639245da0b283f588f954890
a326b8504d remove array spread from coding style, as often part of personal preference
2024-01-04 22:10:51 +00:00
Tomas Votruba 35d4ae5ad9 Updated Rector to commit d886cffeded58fb4b5a55182f4b98b796545c18e
d886cffede [build] Try removing scope aliases
2024-01-02 02:50:51 +00:00
Tomas Votruba 7e7a2f067a Updated Rector to commit 476cfb00cb6a94cb64badf9472ee78f33bdf44b3
476cfb00cb disable fallback for now
2024-01-02 02:40:38 +00:00
Tomas Votruba 7ba32aac1f Updated Rector to commit e12c73eb339a847bcd717025abf5bc43f1cd0e4c
e12c73eb33 [psr-4] Move tests to main namespace, as part of /src and /packages merge - step 2 (#5407)
2024-01-01 00:20:45 +00:00
Tomas Votruba 38b33113ca Updated Rector to commit 109d734969100cf97bdc820e7c369c90e9e4016a
109d734969 [Php83] Add CombineHostPortLdapUriRector (#5397)
2023-12-27 22:04:09 +00:00
Tomas Votruba 95ed962a15 Updated Rector to commit 6646d23fe0cea4b4a871ca1931e33f0cb2a574c7
6646d23fe0 [CodingStyle] Add RemoveUselessAliasInUseStatementRector (#5394)
2023-12-26 17:40:03 +00:00
Tomas Votruba e216058787 Updated Rector to commit f8c3a2e313d5eee15c2aca53177ccf377042a65c
f8c3a2e313 Remove json throw on error rule from PHP 7.3 set, as changed behavior and must be applied on purpose (#5349)
2023-12-10 13:35:43 +00:00
Tomas Votruba 5fbad6d865 Updated Rector to commit 6a63c6376124c9604097d85aa4cc77c190bdacd2
6a63c63761 [PHP 7.4] Skip typed properties in the set, as standalone set now available (#5342)
2023-12-08 16:11:44 +00:00
Tomas Votruba 13aada9fdc Updated Rector to commit b1a50d4c785b9fc1498bcd843e58635350e10114
b1a50d4c78 [TypeDeclaration] Add MergeDateTimePropertyTypeDeclarationRector (#5327)
2023-12-05 14:01:18 +00:00
Tomas Votruba 7124cd0a2c Updated Rector to commit 055ab62e3fa14a1aaccd2a5e7f2a9fd354fbd600
055ab62e3f Fix annotation to attribute parsing string (#5317)
2023-12-03 17:40:26 +00:00
Tomas Votruba 9d01b5b403 Updated Rector to commit d9c5d8f09bfd68e7496c07c23ddac03447cfbb32
d9c5d8f09b [Strict] Allow check '0' empty zero on BooleanInTernaryOperatorRuleFixerRector on string type (#5297)
2023-12-03 15:49:51 +00:00
Tomas Votruba f9c1f58ffc Updated Rector to commit 52b665436c0f2161619b265caa3f2a65be5604dc
52b665436c [PHP83] Implements a rule to add types to class constants (#5290)
2023-12-03 14:59:47 +00:00
Tomas Votruba 1bcbe800e1 Updated Rector to commit ea5b331e7ea67a03b4c3f162c566a8dbfd74d55d
ea5b331e7e [CodeQuality] Add RemoveUselessIsObjectCheckRector (#5316)
2023-12-03 12:25:03 +00:00
Tomas Votruba c5421dfd82 Updated Rector to commit e48234e23981f4022e704bc500b9a9197727e87e
e48234e239 Skip RenameMethodRector in never (#5305)
2023-12-01 09:49:11 +00:00
Tomas Votruba f8dc5ef396 Updated Rector to commit 84bcfebdf7e9f522c8f9f9e97814c82d3d5d3315
84bcfebdf7 [CodingStyle] Remove AddArrayDefaultToArrayPropertyRector as based on docblock types and public contract, better use type declaration set instad (#5298)
2023-11-28 20:19:53 +00:00
Tomas Votruba 7a2348073c Updated Rector to commit 118fbde3b1ccc3685c55cd2704bc971d2d49ef41
118fbde3b1 [TypeDeclaration] Remove ParamTypeFromStrictTypedPropertyRector as seems similar feature with AddParamTypeFromPropertyTypeRector (#5293)
2023-11-28 10:10:36 +00:00
Tomas Votruba d1c1d175ce Updated Rector to commit a9797fdc1ca6b8d7080fb1299b44fcb94ecd5936
a9797fdc1c [TypeDeclaration] Deprecate TypedPropertyFromStrictGetterMethodReturnTypeRector as depends on missing context and creates invalid code (#5269)
2023-11-21 14:28:39 +00:00
Tomas Votruba 0cbee62160 Updated Rector to commit 9adc7a04b3a312957bb305edafcd0427fa6bd257
9adc7a04b3 [CodingStyle] Move ArraySpreadInsteadOfArrayMergeRector from php74 to codingstyle sets list (#5230)
2023-11-07 18:56:36 +00:00
Tomas Votruba 73986cddda Updated Rector to commit bd191f05ad1e632df5b656c1da0fb56a426f5a0a
bd191f05ad Rectify (#5229)
2023-11-07 15:42:24 +00:00
Tomas Votruba 38b4fc4969 Updated Rector to commit 0a2594d5569028d436e08738fe10d4edb16d61a7
0a2594d556 Remove `ArraySpreadInsteadOfArrayMergeRector` from `LevelSetList::UP_TO_PHP_74` (#5228)
2023-11-07 12:47:57 +00:00
Tomas Votruba cdc1ef461c Updated Rector to commit 2ad03db37f187d715c3a2f189dc181063126e596
2ad03db37f [Php83] Adds rule for adding Override attribute (#5170)
2023-11-03 12:13:20 +00:00
Tomas Votruba 184cf49468 Updated Rector to commit f9de5d311e7e69d1ad2cb5f3087970d8b9335920
f9de5d311e [Php80] Handle RenameClassRector+AnnotationToAttributeRector with auto import and existing attribute defined (#5219)
2023-11-02 03:20:18 +00:00
Tomas Votruba 93080b5520 Updated Rector to commit b7a5fefedc9d1a32c1f238a6a8c9b89b88e7d21c
b7a5fefedc [DeadCode] Add RemoveUselessReturnExprInConstructRector (#5158)
2023-10-12 10:26:14 +00:00
Tomas Votruba 606ba73c30 Updated Rector to commit c47b778401b0e66628b1e1d850da19ab69306e75
c47b778401 add consistentimploderector rule to php80 rules (#5139)
2023-10-07 23:21:21 +00:00
Tomas Votruba 798d9b99b4 Updated Rector to commit 3e0132d324099a3d45e1f8f0d28be76d310ee0eb
3e0132d324 [CodeQuality] Add CompleteMissingIfElseBracketRector (#5121)
2023-10-05 14:38:05 +00:00
Tomas Votruba 764b0cbdb5 Updated Rector to commit 3eb8e7d7a52ed8d45ca685e570fbfa0fd14e9be1
3eb8e7d7a5 Deprecate CountOnNullRector as depends on previous context and require manual adjustment of previous result (#5101)
2023-10-01 09:51:45 +00:00
Tomas Votruba 671f50c702 Updated Rector to commit ee715396945596fffb158ff8278749feb01ea01a
ee71539694 [NodeTypeResolver] Use isScalar()->yes() usage on StaticTypeAnalyzer and ScalarTypeComparator services (#5099)
2023-10-01 01:36:35 +00:00
Tomas Votruba 4f42274ab7 Updated Rector to commit 85a407a1b75939448a0ee6d539ebe86538252e52
85a407a1b7 Deprecate BinarySwitchToIfElseRector as opinionated to allow more suitable match() refactoring (#5064)
2023-09-22 09:56:10 +00:00