Tomas Votruba
455fba49f9
Updated Rector to commit 9d310ce5daca61f51f35e3c8755a442998f1c536
...
9d310ce5da
Skip null type in ReturnTypeFromStrictScalarReturnExprRector as often not desired (#5462 )
2024-01-13 09:43:24 +00:00
Tomas Votruba
8b20f236c0
Updated Rector to commit 2ec55701f292770fc7be3ca6e434d437e59c333b
...
2ec55701f2
[Performance] Fix filter cache on SkippedClassResolver (#5460 )
2024-01-13 01:44:47 +00:00
Tomas Votruba
bebd959a24
Updated Rector to commit ac072bc8af186b2c86256aa7d29e52bb608ece27
...
ac072bc8af
feat: add an option to skip renaming promoted property (#5457 )
2024-01-11 23:02:48 +00:00
Tomas Votruba
e61f4b3c7b
Updated Rector to commit f24b01ae0af6cdf4517fee0d74d79cc39d31f602
...
f24b01ae0a
Remove CI status for rector/phpstan-rules on Readme (#5456 ) (#5458 )
2024-01-11 15:31:55 +00:00
Tomas Votruba
ca876bf90c
Updated Rector to commit 9193b276de2d9e51e063740a9fea61a559750f19
...
9193b276de
Clean up concat empty string on regex constant usage (#5449 )
2024-01-10 05:55:03 +00:00
Tomas Votruba
bddc91bccd
Updated Rector to commit b71c3265d5f90745d52b081a1201e3d97617e14a
...
b71c3265d5
fix: RenameMethodRector should handle NullsafeMethodCall (#5444 )
2024-01-07 16:56:38 +00:00
Tomas Votruba
29eada363c
Updated Rector to commit d3791938add9fe1faddfd404ab76183235c1df2f
...
d3791938ad
[automated] Apply Coding Standard (#5440 )
2024-01-07 00:31:04 +00:00
Tomas Votruba
1142f3d356
Updated Rector to commit 86e740248314edf23ef3307ac2a804a54c898282
...
86e7402483
Allows to convert Spatie enum names to snake upper case (#5435 )
2024-01-06 13:17:15 +00:00
Tomas Votruba
3c0a61462c
Updated Rector to commit 9a794f4ac4a100c1bffbf6af5a0c15f9628f3b90
...
9a794f4ac4
[TypeDeclaration] Handle with default null on ParamTypeByMethodCallTypeRector (#5437 )
2024-01-06 06:01:40 +00:00
Tomas Votruba
8728d93e41
Updated Rector to commit 55a787b9a2a18d7b131e74f0bc0d244989f6c92e
...
55a787b9a2
[CodeQuality] Handle crash with call inside loop on SimplifyForeachToCoalescingRector (#5436 )
2024-01-06 05:25:58 +00:00
Tomas Votruba
2b45fbe814
Updated Rector to commit 3d71ae36b00e22fb5430e1812af95182c0e58904
...
3d71ae36b0
[TypeDeclaration] Skip re-assign with call and use as arg on StrictArrayParamDimFetchRector (#5434 )
2024-01-05 13:43:19 +00:00
Tomas Votruba
b433dedda4
Updated Rector to commit d4f6b91f922bd52289d923aff07691d07e455cb1
...
d4f6b91f92
[TypeDeclaration] Allow both integer and string index array on StrictArrayParamDimFetchRector (#5433 )
2024-01-05 13:13:40 +00:00
Tomas Votruba
feacfd524a
Updated Rector to commit 971571be0cbcc21f1d6c7861c17423aef053b499
...
971571be0c
[TypeDeclaration] Skip with empty() check on StrictArrayParamDimFetchRector (#5432 )
2024-01-05 12:46:00 +00:00
Tomas Votruba
41a86add1d
Updated Rector to commit b007a8bd11ea0451b50dbafbacd5450b295f6266
...
b007a8bd11
[Php83] Add implements interface support on AddOverrideAttributeToOverriddenMethodsRector (#5429 )
2024-01-04 19:14:21 +00:00
Tomas Votruba
5457aea4e0
Updated Rector to commit 1f9829d2a3820f39fe0601b996c5cba71ffb42b0
...
1f9829d2a3
[Strict] Add StaticProperty supporton may be unitialized static property on DisallowedEmptyRuleFixerRector (#5428 )
2024-01-04 15:49:28 +00:00
Tomas Votruba
5c10ef9158
Updated Rector to commit 09c077e25801da58834be284a792c3987ea806ef
...
09c077e258
[TypeDeclaration] Add false and true in union support on ReturnUnionTypeRector (#5355 )
2024-01-03 07:52:06 +00:00
Tomas Votruba
1daa932d00
Updated Rector to commit 5c0397910fbd9735c375c4632ec116ebe8609f25
...
5c0397910f
Add missing rule doc (#5426 )
2024-01-02 21:38:33 +00:00
Tomas Votruba
350042dba4
Updated Rector to commit 9144efc05cf4d084d4af69f4df0be9d7a66e5869
...
9144efc05c
Keep called method in RemoveEmptyClassMethodRector (#5425 )
2024-01-02 20:43:50 +00:00
Tomas Votruba
3a49fcd8d5
Updated Rector to commit 8724feefea91743e05006cb1329c5cd1675b5003
...
8724feefea
Skip cond with side effect in RemoveDeadConditionAboveReturnRector (#5424 )
2024-01-02 20:16:55 +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
0601eaa986
Updated Rector to commit cf0d54eb5996ded864208ee940fb794e7440ea6a
...
cf0d54eb59
fix Core namespace
2024-01-02 02:42: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
3916887582
Updated Rector to commit 9f937086898498f37d71977895312cbdb7fdbc6a
...
9f93708689
[Strict] Handle may be unitialized property on DisallowedEmptyRuleFixerRector (#5409 )
2024-01-01 13:26:19 +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
4bfd1e7acf
Updated Rector to commit 0d424e1b978cd70d0aafe6e095f19fb67adb8de3
...
0d424e1b97
[psr-4] Move tests to main namespace, as part of /src and /packages merge (#5406 )
2023-12-31 23:42:36 +00:00
Tomas Votruba
1731eeac5d
Updated Rector to commit befe096ca10f7476efeb082fb7c736ba7bd07af5
...
befe096ca1
[phpstan] tidy up bin files, group complex errors + Cleanup AddTypeToConstRector (#5405 )
2023-12-31 20:56:31 +00:00
Tomas Votruba
6b98134b54
Updated Rector to commit 9c7842f036e9164616582ea6e8b2ce95f90426e4
...
9c7842f036
[ecs] tidy up config (#5403 )
2023-12-31 19:44:21 +00:00
Tomas Votruba
67d86f3aa4
Updated Rector to commit fff370b2c0f029203b7c53b96e4a7b8e9217af76
...
fff370b2c0
[Php83] Handle dynamic host and port values on CombineHostPortLdapUriRector (#5401 )
2023-12-31 12:20:56 +00:00
Tomas Votruba
b1b95d1c64
Updated Rector to commit e044d50e9b7b04c5ef7454044721dbf16b4b75f8
...
e044d50e9b
[TypeDeclaration] optionally only add types for hard coded return values in `ReturnTypeFromStrictScalarReturnExprRector` (#5364 )
2023-12-30 11:58:36 +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
3f2b3edab8
Updated Rector to commit 6ebab94b971a930457c8e217dcb699c671ad617b
...
6ebab94b97
Add related polyfill interface to other PHP 8.0/7.3 rules (#5389 )
2023-12-25 00:55:45 +00:00
Tomas Votruba
8775d2e083
Updated Rector to commit ebb2d2df55887c25f74af39b400194039dff78d4
...
ebb2d2df55
[DX] Add "Related polyfill" feature to upgrade based on used symfony/polyfill-* packages (#5388 )
2023-12-24 12:52:27 +00:00
Tomas Votruba
462b60a70a
Updated Rector to commit c6ca4f1f5ccdf73d9aa0f8f441267725e07aee67
...
c6ca4f1f5c
[Performance][TypeDeclaration] Avoid using AstResolver on class is on same file on AllAssignNodePropertyTypeInferer (#5387 )
2023-12-24 03:11:42 +00:00
Tomas Votruba
06a8e6394a
Updated Rector to commit 012e8bb2ed77516c792e3fb9c777066c3776abcc
...
012e8bb2ed
Skip non-final class method with no content in AddVoidReturnTypeWhereNoReturnRector (#5386 )
2023-12-24 01:21:59 +00:00
Tomas Votruba
f9f96d6bb9
Updated Rector to commit 00b442f2d79f1536e9dc59c2fa7ff541a0cba1e8
...
00b442f2d7
Fix variable to property fetch update in ClassPropertyAssignToConstructorPromotionRector (#5385 )
2023-12-24 00:51:27 +00:00
Tomas Votruba
3d9b6b2c99
Updated Rector to commit 620321b3833dd450a7de79a620a07c7131342422
...
620321b383
Add ReturnTypeFromStrictBoolReturnExprRector support for if/else returns (#5384 )
2023-12-23 21:26:40 +00:00
Tomas Votruba
f77e8b8450
Updated Rector to commit 16f8d19db32108740794a68a011c78328bb69aed
...
16f8d19db3
Fix StrictArrayParamDimFetchRector for string access (#5383 )
2023-12-23 20:44:18 +00:00
Tomas Votruba
80dad1d8c8
Updated Rector to commit a644d0d4a2f1e457f77cf8e384fd32b78b5ff388
...
a644d0d4a2
[Arguments] Allow no default value on ArgumentAdderRector (#5382 )
2023-12-23 19:44:26 +00:00
Tomas Votruba
a4aba10ad7
Updated Rector to commit 3cef752763be750ea221c5c5eb1681d27398a3d5
...
3cef752763
Skip classes without final and exception as possibly invoke child implement in AddVoidReturnTypeWhereNoReturnRector (#5381 )
2023-12-23 15:28:34 +00:00
Tomas Votruba
94baa5fede
Updated Rector to commit 8df2120b3f546dd7f0eb89bf199a042dfc9283e7
...
8df2120b3f
Skip void without final keyword in ReturnNeverTypeRector as could be implemented with more precise children (#5379 )
2023-12-23 14:51:47 +00:00
Tomas Votruba
1ce9a4da5a
Updated Rector to commit c2c6558cde8138d5509b306bd499e013ac5da2e9
...
c2c6558cde
[TypeDeclaration] Allow add void return type on magic __invoke() method on AddVoidReturnTypeWhereNoReturnRector (#5376 )
2023-12-22 17:39:40 +00:00
Tomas Votruba
949ab12adb
Updated Rector to commit 7ca4de097ed6b2f0f2b20a8f2b55ea2121120173
...
7ca4de097e
[DeadCode] Skip nullable array on RemoveUnusedNonEmptyArrayBeforeForeachRector (#5375 )
2023-12-21 15:22:15 +00:00
Tomas Votruba
40ac5bade5
Updated Rector to commit 4283beff2f78d5820f27384826d5d1b75d3ff62a
...
4283beff2f
[CodeQuality] Skip method call on else on TernaryFalseExpressionToIfRector (#5373 )
2023-12-18 12:32:23 +00:00
Tomas Votruba
335a3861f8
Updated Rector to commit 63201f76725831988f1484476f6f84e0976a5742
...
63201f7672
[CodeQuality] Skip Superglobals variable on SimplifyEmptyCheckOnEmptyArrayRector (#5369 )
2023-12-17 09:24:20 +00:00
Tomas Votruba
785ac22e33
Updated Rector to commit 89d2c9c4eb2bfddc226136899b1fdb0a99d19a8a
...
89d2c9c4eb
[Php72] Remove usage on PrivatesAccessor on AnonymousFunctionFactory (#5367 )
2023-12-17 06:37:00 +00:00
Tomas Votruba
d525e926d3
Updated Rector to commit 1dcebfe29713124a43504c9a4bac322fa2f41f59
...
1dcebfe297
[automated] Apply Coding Standard (#5365 )
2023-12-17 00:30:16 +00:00
Tomas Votruba
168d6a72a1
Updated Rector to commit 120e0ccfc40bc696d23a9e1d93b6662ea7dfa682
...
120e0ccfc4
Bump to php parser 4.18 (#5362 )
2023-12-16 15:55:14 +00:00
Tomas Votruba
bd56d13367
Updated Rector to commit 39cce5ccb84ce4ac40eeae113db339a961db9489
...
39cce5ccb8
[ECS] Skip SelfAccessorFixer on *Rector.php to skip example code for using using self:: (#5363 )
2023-12-16 15:42:57 +00:00
Tomas Votruba
7bf2453858
Updated Rector to commit 227e97477c44de40c165bba4b72e48dd954151d5
...
227e97477c
[Transform] Do not create a new node if the existing node is already the correct one on AttributeKeyToClassConstFetchRector (#5328 )
2023-12-16 02:55:33 +00:00
Tomas Votruba
90b260693b
Updated Rector to commit 589bda6cd1eb7bc6cdc68313facc02cae41ba628
...
589bda6cd1
[Naming] Skip `$this` in RenameForeachValueVariableToMatchExprVariableRector (#5360 )
2023-12-15 10:14:01 +00:00
Tomas Votruba
7c223ab41f
Updated Rector to commit 5a1512b4c0939c1b8f9ab7a1c0eb40029acb1537
...
5a1512b4c0
[TypeDeclaration] Allow return static from under function on ReturnTypeFromStrictTypedCallRector (#5358 )
2023-12-13 14:10:43 +00:00
Tomas Votruba
b571b1cd51
Updated Rector to commit 0817980433aaf92d2b71e4d9804ec1988afbf908
...
0817980433
[TypeDeclaration] Return new static from different object on ReturnTypeFromStrictTypedCallRector (#5357 )
2023-12-13 13:01:03 +00:00
Tomas Votruba
e3e6cff9bd
Updated Rector to commit fea5d6c0034746e050851887a7900bf94a22069d
...
fea5d6c003
[TypeDeclaration] Skip casted to (array) on StrictArrayParamDimFetchRector (#5356 )
2023-12-12 15:47:12 +00:00
Tomas Votruba
39e43b6cca
Updated Rector to commit dc9573d9bd60ec966db626be91c13cc6a5c4bbef
...
dc9573d9bd
[Php55] Make StringClassNameToClassConstantRector configurable to keep first pre-backslash string configurable (#5354 )
2023-12-11 13:06:54 +00:00
Tomas Votruba
d2dde21bd9
Updated Rector to commit 68c42e7e843bfb9fde2b6516bb1bb76648d67045
...
68c42e7e84
[DeadCode] Skip Remove @return/@param null functionality in case of sub type (#5350 )
2023-12-10 16:34:14 +00:00
Tomas Votruba
fffe49e4aa
Updated Rector to commit 287eab3a7040f8d42fa10701d5fbfc2998fdcc25
...
287eab3a70
[DeadCode] Add RemoveNullTagValueNodeRector (#5352 )
2023-12-10 16:32:52 +00:00
Tomas Votruba
bb15f9c3c4
Updated Rector to commit e400e37e5fe1d329419874143c16d53242cf5b55
...
e400e37e5f
[DeadCode] Remove null as never used param type in RemoveUselessParamTagRector (#5348 )
2023-12-10 12:52:21 +00:00
Tomas Votruba
5c2f93e7b7
Updated Rector to commit f7b9dd9035931da5a040f5c714c79c32c424b677
...
f7b9dd9035
Update rector.php of skip() to allow file name has word: "Expected" (#5347 )
2023-12-10 02:05:30 +00:00
Tomas Votruba
34915563d5
Updated Rector to commit bc69455d8a05c1325d64dac545931594ca1fe4aa
...
bc69455d8a
[automated] Apply Coding Standard (#5346 )
2023-12-10 00:29:46 +00:00
Tomas Votruba
b4235c46ba
Updated Rector to commit f2a8542f3e7538a2c1aafdfd93a773e4065adcff
...
f2a8542f3e
Typo fix (#5341 )
2023-12-08 14:45:41 +00:00
Tomas Votruba
e5e3c815d5
Updated Rector to commit 14f11280c85a2776b211dac001f0accd4295c587
...
14f11280c8
[Naming] Skip DateTimeImmutable on RenamePropertyToMatchTypeRector (#5340 )
2023-12-08 14:41:39 +00:00
Tomas Votruba
548d5109ed
Updated Rector to commit 0a2dc3d52b679bad1b07849d951748a8faad7f9a
...
0a2dc3d52b
Fix array type if property is used in TypedPropertyFromStrictConstructorRector (#5339 )
2023-12-08 13:59:08 +00:00
Tomas Votruba
d471c4dbd9
Updated Rector to commit af55788ca8f814c658d39444a9cefa67135805b6
...
af55788ca8
[PHP 5.5] Remove extra preslash in class reference, as in practice removal manually (#5338 )
2023-12-08 11:29:59 +00:00
Tomas Votruba
58923caaf6
Updated Rector to commit 043d43cd0347b4c2a73e896674a1f22ab1ce6d62
...
043d43cd03
[DeadCode] Remove unused @return mixed on RemoveUselessReturnTagRector (#5332 )
2023-12-06 13:28:15 +00:00
Tomas Votruba
942be869a9
Updated Rector to commit 1daab3c53f4a09669d2d915f7e245e984ace908d
...
1daab3c53f
[DeadCode] Add Function_ support on RemoveUselessParamTagRector (#5331 )
2023-12-06 10:48:40 +00:00
Tomas Votruba
413475184c
Updated Rector to commit a92fade7d0fbfcee3fb3e4f0ff5620e281de8ce0
...
a92fade7d0
[TypeDeclaration] Handle DateTimeInterface from use statement on MergeDateTimePropertyTypeDeclarationRector (#5330 )
2023-12-05 21:28:49 +00:00
Tomas Votruba
e86b6d37a6
Updated Rector to commit d22741edaf63d488b39f7754353b0ea8cc454836
...
d22741edaf
[TypeDeclaration] Fix missing change type to DateTimeInterface on MergeDateTimePropertyTypeDeclarationRector (#5329 )
2023-12-05 21:03:16 +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
2f9139b981
Updated Rector to commit 1b1afebd878e60ee25af5fe1bb9ef3f95fe47d33
...
1b1afebd87
[Php83] Fix const from applying incorrect types (#5326 )
2023-12-05 12:35:18 +00:00
Tomas Votruba
374ed77ef0
Updated Rector to commit 4531aeb0cd7ef47a75afbee72237eef45b4cc266
...
4531aeb0cd
[DeadCode] Add Function_ support on RemoveUselessReturnTagRector (#5325 )
2023-12-05 09:55:15 +00:00
Tomas Votruba
1095b54b14
Updated Rector to commit 005ccc330c3bb37f9faf0f5e2c319036f2d055b8
...
005ccc330c
Rectify (#5324 )
2023-12-04 14:56:20 +00:00
Tomas Votruba
1754c2c66a
Updated Rector to commit 526f4cd09c06842987e46d661b6ad87a8da723a7
...
526f4cd09c
Remove return type in case of never in RemoveUselessReturnTagRector (#5323 )
2023-12-04 14:51:16 +00:00
Tomas Votruba
6cba20638d
Updated Rector to commit 80cf5781c3bf477076753e2a0c2890ae0ecbb4c1
...
80cf5781c3
[DeadCode] Remove useless nullable @return doc on RemoveUselessReturnTagRector (#5321 )
2023-12-04 05:22:37 +00:00
Tomas Votruba
ee373e619a
Updated Rector to commit 41729c25cb33ec5219433d5e101d6d54ed4045a2
...
41729c25cb
[DeadCode] Skip @return never with void on RemoveUselessReturnTagRector (#5320 )
2023-12-04 01:56:17 +00:00
Tomas Votruba
d9834a6d69
Updated Rector to commit 8e6d46a58fff8e6bd5276b9ae473bfb91460b487
...
8e6d46a58f
[Instanceof] Fix combination of dead instance and compare (#5319 )
2023-12-03 20:12:56 +00:00
Tomas Votruba
ab4ff53673
Updated Rector to commit 026398c9e1078cb3ac5cac41767b620872166859
...
026398c9e1
Remove return type in case of void in RemoveUselessReturnTagRector (#5318 )
2023-12-03 19:10:14 +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
e7fa7d1aa0
Updated Rector to commit 18617f9880d098bceae210512c190c8d44aa7811
...
18617f9880
Remove isPositiveInteger() check for third argument to strpos() (#5257 )
2023-12-03 16:56:59 +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
3ef06bdaf4
Updated Rector to commit be924be778eeceffa6105ab330ea7eb366ebb44b
...
be924be778
[TypeDeclaration] Add If else assign support on TypedPropertyFromAssignsRector (#5314 )
2023-12-03 11:18:10 +00:00
Tomas Votruba
2a8dd1b78f
Updated Rector to commit 368075b95cf10dff9d0313abbe94d3c6d3b28f67
...
368075b95c
[PHP 7.0] Skip mt_rand() replacement as not valuable (#5315 )
2023-12-03 10:51:00 +00:00
Tomas Votruba
0668f1e99c
Updated Rector to commit ae081e11dae915e05a58cbd9d2a995f3ac868254
...
ae081e11da
[TypeDeclaration] Keep constant false return type from strict native call (#5223 )
2023-12-03 09:56:22 +00:00
Tomas Votruba
77ce00c02a
Updated Rector to commit 483aca176cd25b478a99fe213a98ec5bd348bd13
...
483aca176c
[Php80] Skip PDO::query() on AddParamBasedOnParentClassMethodRector (#5313 )
2023-12-03 09:17:50 +00:00
Tomas Votruba
93efaa2dcc
Updated Rector to commit 3b84030d093b9896615f640ad0e361c923af8953
...
3b84030d09
[TypeDeclaration] Skip return void in abstract empty class in AddVoidReturnTypeWhereNoReturnRector (#5311 )
2023-12-02 19:56:06 +00:00
Tomas Votruba
c520a88733
Updated Rector to commit cd9ea2c717511f81e7bb7298a62f8ea558441a37
...
cd9ea2c717
[Privatization] Fix first class callable in PrivatizeLocalGetterToPropertyRector (#5310 )
2023-12-02 13:42:50 +00:00
Tomas Votruba
de5ec400ca
Updated Rector to commit aac9573e0ef040c236a569a9cbbe965af61ab0b8
...
aac9573e0e
[Privatization] Skip call non-private method on non-final class on PrivatizeLocalGetterToPropertyRector (#5309 )
2023-12-02 08:58:47 +00:00
Tomas Votruba
b698053254
Updated Rector to commit 5c8fa12ec90e4d4b55fd05f48509c538c243482d
...
5c8fa12ec9
[Doc] Typo fix on sample code documentation on SimplifyForeachToCoalescingRector (#5308 )
2023-12-02 05:05:22 +00:00
Tomas Votruba
cb8a63ca31
Updated Rector to commit 71c22e20d9a3b2ba187515711b13fca40b595d93
...
71c22e20d9
[CodeQuality] Skip with else on SimplifyForeachToCoalescingRector (#5307 )
2023-12-02 04:51:32 +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
35f86a2fad
Updated Rector to commit 91f9f3057c2d51018228ed89273a76da991d3f45
...
91f9f3057c
Use symfony/console ~6.3.9 to fix downgrade build (#5302 )
2023-11-30 10:06:33 +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
84b97fe47c
Updated Rector to commit c3840325600449b562691e34612279dcd4316043
...
c384032560
[Strict] Fix DisallowedEmptyRuleFixerRector empty() allow string '0' check (#5296 )
2023-11-28 17:41:50 +00:00
Tomas Votruba
54e7a3a895
Updated Rector to commit 765b63696eb3bc240e92f10b00169b146c99463a
...
765b63696e
[TypeDeclaration][Performance] Check typed param already early on ParamTypeByMethodCallTypeRector (#5295 )
2023-11-28 11:12:27 +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
198f3d0446
Updated Rector to commit 4a2b4a63878dabbb02eeb9fc73587e9b57ad0bdf
...
4a2b4a6387
[Naming] Skip singularize "cms" on RenameForeachValueVariableToMatchExprVariableRector (#5294 )
2023-11-28 04:43:10 +00:00
Tomas Votruba
3aaf5b74fb
Updated Rector to commit b5f434b53c4c6fceb88c19d4656e4f11c6092f3c
...
b5f434b53c
[CodeQuality] Make CommonNotEqualRector skip if not <> (#5292 )
2023-11-27 16:03:30 +00:00
Tomas Votruba
8486081737
Updated Rector to commit e66754adeaad2e9cb67cf1784a6255285dfc542d
...
e66754adea
[TypeDeclaration] Skip iterable already there in AddReturnTypeDeclarationFromYieldsRector (#5291 )
2023-11-27 13:46:01 +00:00
Tomas Votruba
c581b77bce
Updated Rector to commit 9ddef0001c3b7251f80e0c06d6ef0d35363a7cd4
...
9ddef0001c
[Php80] Allow subnamespace from use statements support on AnnotationToAttributeRector (#5287 )
2023-11-25 15:16:38 +00:00
Tomas Votruba
c92985cc7e
Updated Rector to commit d864d7b856e7bb8b7e98db96793ceb1036c1bf7b
...
d864d7b856
[Privatization] Skip method with parent call (#5283 )
2023-11-23 16:52:05 +00:00
Tomas Votruba
622a13c7e5
Updated Rector to commit fcd1b1aa6bbf59aaebf119a122d4f7aa045e15f1
...
fcd1b1aa6b
[Performance][Renaming] Use FullyQualified on RenameClassRector (#5272 )
2023-11-22 17:40:48 +00:00
Tomas Votruba
7a8bc36a24
Updated Rector to commit 189a02635533f450aea58d8de075e494f538182b
...
189a026355
Remove deprecated Rector rules (#5270 )
2023-11-21 14:32:38 +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
e071d037e3
Updated Rector to commit 9fa5013b41ecee17113c56ad94f219bd1940e763
...
9fa5013b41
[Performance][Renaming] Remove unnecessary array_reverse() on RenameClassRector (#5266 )
2023-11-19 15:48:32 +00:00
Tomas Votruba
5980d06d27
Updated Rector to commit 13284c60485e972ef72bf234b3c014c5f89e0d14
...
13284c6048
[Renaming][Performance] Re-structure check namespace only on renamed node got Namespace_ (#5265 )
2023-11-19 03:14:20 +00:00
Tomas Votruba
318c07bf9f
Updated Rector to commit e43a1cec56310b6762eb0b56d18f60402d5fd652
...
e43a1cec56
[Renaming] Handle Rename no namespace to namespaced class with existing use statements (#5264 )
2023-11-19 02:55:19 +00:00
Tomas Votruba
ea7666298a
Updated Rector to commit 3e6bdd8174e88b0e339365a9d76df8be173b7070
...
3e6bdd8174
[Php71] Ensure re-assign after definition on AssignArrayToStringRector (#5262 )
2023-11-19 00:05:14 +00:00
Tomas Votruba
5fa526e204
Updated Rector to commit de333f27982cd1b27450c6dfa87ec723b29fbc1c
...
de333f2798
[Php71] Skip re-assigned as array on AssignArrayToStringRector (#5261 )
2023-11-19 00:02:19 +00:00
Tomas Votruba
b83524f932
Updated Rector to commit 6a2af1878843ade4b1890f9a1a04f815cc600fa4
...
6a2af18788
[TypeDeclaration] Skip echo-ed on StrictArrayParamDimFetchRector (#5260 )
2023-11-18 13:54:46 +00:00
Tomas Votruba
4cf16f617f
Updated Rector to commit 03c7ab7a0f3b7a2ba106bef1ccf508d1b9b63850
...
03c7ab7a0f
[TypeDeclaration] Skip default not array type on StrictArrayParamDimFetchRector (#5259 )
2023-11-18 13:41:50 +00:00
Tomas Votruba
912487ba8d
Updated Rector to commit 4a3e6982647ce4fdc84b1232557eaeae7e914bde
...
4a3e698264
[DeadCode] Skip multi no stmts on RemoveDuplicatedCaseInSwitchRector (#5258 )
2023-11-18 02:19:29 +00:00
Tomas Votruba
2da177465a
Updated Rector to commit 363ae1bd444c365e38aef1cfcd69324b734c3c9c
...
363ae1bd44
[Performance][PostRector] Only process FullyQualified on import Node name on NameImportingPostRector (#5255 )
2023-11-16 17:36:40 +00:00
Tomas Votruba
1d5d0dd30b
Updated Rector to commit 1595e34d12d856eab8e2478de357f0b1dff3556f
...
1595e34d12
[CodingStyle] Refactor UseImportsAdder to return [FileWithoutNamespace] code on no namespaced code (#5254 )
2023-11-16 14:51:30 +00:00
Tomas Votruba
b4cef81b9f
Updated Rector to commit 60047ce7785545401ad870d483060ce640fa3369
...
60047ce778
[Php73] Handle crash on JsonThrowOnErrorRector + SensitiveConstantNameRector (#5253 )
2023-11-16 05:36:22 +00:00
Tomas Votruba
4f6134d1be
Updated Rector to commit 5647e1b818482552a447d7f79392c7e2f0dce86e
...
5647e1b818
[Naming] Fix dotted name on generics bug in RenameVariableToMatchMethodCallReturnTypeRector (#5250 )
2023-11-15 07:40:24 +00:00
Tomas Votruba
9aef117ab1
Updated Rector to commit 7ec1be6b828042b27e3f40ed41b3285a6fe78502
...
7ec1be6b82
[DeadCode]: Support functions in RemoveUnusedVariableAssignRector (#5249 )
2023-11-14 21:18:19 +00:00
Tomas Votruba
83b81fcc4e
Updated Rector to commit 889372f62a584ca43402eced083b99e2ffbe6784
...
889372f62a
[AutoImport][Renaming] Handle same last name no namespace just renamed auto import (#5248 )
2023-11-14 11:48:19 +00:00
Tomas Votruba
afe2dc7944
Updated Rector to commit f0b8af88eb08be29b5fbf18f0e26283600c2c7e6
...
f0b8af88eb
[AutoImport] Skip auto import on no namespace used class on auto import enabled (#5247 )
2023-11-14 05:17:31 +00:00
Tomas Votruba
55d6c6f50a
Updated Rector to commit 61d68c89b434271c793fbbcc8e6252e9f3e0e7eb
...
61d68c89b4
Rename parameter variable to nextCase on RemoveDuplicatedCaseInSwitchRector (#5244 )
2023-11-11 20:55:17 +00:00
Tomas Votruba
39dc6141e7
Updated Rector to commit 42b697f65f0c648cc45abcc5b9e32a16a7967caa
...
42b697f65f
[deprecated] Remove deprecated properties from AbstractRector (#5243 )
2023-11-11 17:10:37 +00:00
Tomas Votruba
e26480f1cb
Updated Rector to commit 7e7304b93cd03fda558ac8ebfbc682ffa4938fe0
...
7e7304b93c
[AutoImport] Handle DeclareStrictTypesRector on importNames() enabled on no namespace (#5241 )
2023-11-10 21:55:35 +00:00
Tomas Votruba
e41e10db62
Updated Rector to commit 2f74b02ef6c754c68abcdd246837583967e24678
...
2f74b02ef6
[DeadCode] Handle repetitive jump equal case stmts on RemoveDuplicatedCaseInSwitchRector (#5239 )
2023-11-10 19:13:04 +00:00
Tomas Votruba
382d51d15f
Updated Rector to commit eac58be00246ea8c89548289f2cc742e8b1b6b1a
...
eac58be002
[DeadCode] Reduce loop on RemoveDuplicatedCaseInSwitchRector (#5238 )
2023-11-10 12:36:56 +00:00
Tomas Votruba
17eadc7eb2
Updated Rector to commit b0d4b15c3fd96582c6e3ed4d21cf4d30eb8742ce
...
b0d4b15c3f
[DeadCode] Ensure change hasChanged flag on RemoveDuplicatedCaseInSwitchRector (#5237 )
2023-11-10 09:02:20 +00:00
Tomas Votruba
c51a745c50
Updated Rector to commit bee1dae395490dd91a86230e1886b514288dfa62
...
bee1dae395
[DeadCode] Handle different indirect duplicated on RemoveDuplicatedCaseInSwitchRector (#5236 )
2023-11-10 06:59:59 +00:00
Tomas Votruba
373eece1e0
Updated Rector to commit c61d8ea90edb04550b6a43f40bd6c6105a997189
...
c61d8ea90e
[DeadCode] Reduce double loop on RemoveDuplicatedCaseInSwitchRector (#5235 )
2023-11-09 22:56:12 +00:00
Tomas Votruba
e51766f9ec
Updated Rector to commit 3f2fb29fe87904d779fb2f8d3e59492aaa9249f4
...
3f2fb29fe8
[DeadCode] Allow indirect duplicated grouping on RemoveDuplicatedCaseInSwitchRector (#5234 )
2023-11-09 22:08:11 +00:00
Tomas Votruba
b0251feb16
Updated Rector to commit 437f96a264be9b974d2c5abcc4f5097bfb57b20e
...
437f96a264
RestoreDefaultNullToNullableTypePropertyRector: skip `@readonly` phpdoc (#5233 )
2023-11-08 12:07:04 +00:00
Tomas Votruba
6786dfbdb1
Updated Rector to commit cb1b0c7348d1e80806b2e600823dbfa38b9836c7
...
cb1b0c7348
[Renaming] Add RenamedNameCollector to ensure remove uses on auto import on ClassRenamingPostRector with verify there is Node name that renamed (#5232 )
2023-11-07 21:52:18 +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
c221b7e43d
Updated Rector to commit ce62c634015fefa1f91429ecda659fe71371b85a
...
ce62c63401
Remove rule DataProviderArrayItemsNewlinedRector.php (#5227 )
2023-11-07 12:01:11 +00:00
Tomas Votruba
8027a18b9e
Updated Rector to commit 6d8074534f3b568a0cecd373e584ea6c8d06580b
...
6d8074534f
Rectify (#5226 )
2023-11-06 09:18:43 +00:00
Tomas Votruba
95582bf2b1
Updated Rector to commit 7607b334736d241820f9f307423f6050801b46af
...
7607b33473
NullableCompareToNullRector: Don't trust phpdocs (#5225 )
2023-11-06 09:13:25 +00:00
Tomas Votruba
1c5fde5d65
Updated Rector to commit 8615d40f4c8acb58a000f5bc7e0d0a0cfd353b7f
...
8615d40f4c
[NodeTypeResolver] Handle nullable extended class on ->isObjectType() on DowngradeReflectionGetAttributesRector (#5224 )
2023-11-05 13:58:20 +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
394c30d8ba
Updated Rector to commit 2fac959116e4f50471422e5e5c9eaca3163e6667
...
2fac959116
[AutoImport] Allow auto import just renamed @var only docblock on RenameClassRector without removeUnusedImports() enabled (#5220 )
2023-11-03 08:39:18 +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
5869e2ab60
Updated Rector to commit 97d095f5bd3fe561dafd06f56f898f0aec535ba0
...
97d095f5bd
[TypeDeclaration] Skip default numeric string on param int on ParamTypeByMethodCallTypeRector (#5210 )
2023-10-28 16:36:35 +00:00
Tomas Votruba
a3cb68c58c
Updated Rector to commit 5f86e6bb082d06c1fc7f3ca53a9e42389319c3eb
...
5f86e6bb08
[CodeQuality] Add negated support on SingleInArrayToCompareRector (#5205 )
2023-10-28 06:44:30 +00:00
Tomas Votruba
f5adafb1c4
Updated Rector to commit a27370519f4e17bf73f0d548e098de448895401d
...
a27370519f
[CodeQuality] Handle negated isset on IssetOnPropertyObjectToPropertyExistsRector on property not exists (#5206 )
2023-10-27 12:14:09 +00:00
Tomas Votruba
068fde1710
Updated Rector to commit 89b3e62f82ad480b57f002096cc16af16d7ac597
...
89b3e62f82
[TypeDeclaration] Skip union false on NumericReturnTypeFromStrictScalarReturnsRector (#5204 )
2023-10-26 18:45:24 +00:00
Tomas Votruba
8d1b2d924e
Updated Rector to commit be0cc77862bef98727e1e3881620c5416841801f
...
be0cc77862
CountArrayToEmptyArrayComparisonRector: don't trust phpdoc (#5203 )
2023-10-26 12:26:07 +00:00
Tomas Votruba
ae4c0b72cb
Updated Rector to commit 72cdbd0613318b797455deba64ebe6358d58af42
...
72cdbd0613
[CodeQuality][Php70] Handle LocallyCalledStaticMethodToNonStaticRector + ThisCallOnStaticMethodToStaticCallRector must change both method and caller (#5196 )
2023-10-26 07:11:41 +00:00
Tomas Votruba
d628c0dcad
Updated Rector to commit 238a9f1800225bd3f350dc25df79ad283d91a25a
...
238a9f1800
Revert doctrine/inflector removal (#5201 )
2023-10-25 15:01:11 +00:00
Tomas Votruba
fe7a135a9e
Updated Rector to commit 5d1286061c8bf264c95085edf8b24731cf62c91e
...
5d1286061c
BinaryOpBetweenNumberAndStringRector don't trust phpdoc (#5199 )
2023-10-25 13:44:54 +00:00
Tomas Votruba
1b058fde9f
Updated Rector to commit 98bb8581e5794641db7e2acf0cefa14f62f5e8a9
...
98bb8581e5
Fix singular of words ending in "ss" (#5198 )
2023-10-25 08:11:08 +00:00
Tomas Votruba
23e5d4df05
Updated Rector to commit 1d3fc91bd5e0154daae34b1efdb64a6f78f47c89
...
1d3fc91bd5
apply cs
2023-10-24 15:03:15 +00:00
Tomas Votruba
02041b2207
Rector 0.18.6
2023-10-24 15:00:59 +00:00
Tomas Votruba
52923dc606
Updated Rector to commit 1c54292ed68e46f4ddfa2adb21f28130f308b99c
...
1c54292ed6
Replace doctrine/inflector with simpler mapping function (#5165 )
2023-10-24 15:00:55 +00:00
Tomas Votruba
ff69243060
Updated Rector to commit f2c8967abf004558bf92c86840d57eb7f0221f9c
...
f2c8967abf
[DeadCode] Mirror comment on assign method call on RemoveUnusedVariableAssignRector (#5195 )
2023-10-24 06:21:04 +00:00
Tomas Votruba
7c5eefbc15
Updated Rector to commit 6d5ffbe7d62fba226b0b49c613092c0741b2ba34
...
6d5ffbe7d6
[TypeDeclaration] Handle skipped by file path on DeclareStrictTypesRector due to use beforeTraverse() (#5191 )
2023-10-23 07:51:12 +00:00
Tomas Votruba
c6f40053b8
Updated Rector to commit a0d324465a4cbccb9236bc69f41069da89d01baf
...
a0d324465a
[Php74][Php81] Allow mixed key on ArraySpreadInsteadOfArrayMergeRector on php 8.1 version feature enabled (#5190 )
2023-10-22 10:12:20 +00:00
Tomas Votruba
654c818f4e
Updated Rector to commit 5ac3cb377abf968396c23573d8562e6ab6967f2a
...
5ac3cb377a
[Php70] Fix Php4 contructor not replaced with __construct() on php 7.4 environment (#5189 )
2023-10-19 13:47:36 +00:00
Tomas Votruba
af933fd21f
Updated Rector to commit 4795d003614d98b04c3fce209e855f18ac48ed09
...
4795d00361
[Renaming] Skip pointless names in RenameForeachValueVariableToMatchMethodCallReturnTypeRector (#5188 )
2023-10-18 09:58:42 +00:00
Tomas Votruba
65b387953a
Updated Rector to commit 1a98723aebf1bdf9462b785d49f75d914b569779
...
1a98723aeb
[Naming] Skip all kinds of generators (#5187 )
2023-10-18 09:38:53 +00:00
Tomas Votruba
d260adfd2b
Updated Rector to commit 96fae07575c6c64ac7e2950388cbe07d18cbcfc5
...
96fae07575
Skip DateTime in ExpectedNameResolver (#5186 )
2023-10-18 09:27:27 +00:00
Tomas Votruba
7949049389
Updated Rector to commit c9b0c27fa1df366ccf2213888d4351311bf82966
...
c9b0c27fa1
Skip new self in RenameVariableToMatchNewTypeRector (#5185 )
2023-10-18 08:25:46 +00:00
Tomas Votruba
1e0199beb5
Updated Rector to commit beeba1770967a4f5e59cf21db28a5a1ccae48a2f
...
beeba17709
[Naming] Skip DateTime from renaming, to keep convention of named dates (#5184 )
2023-10-18 08:05:23 +00:00
Tomas Votruba
baa0c15190
Updated Rector to commit d22e71ec0196d8f0f363845db83e064b471cb07e
...
d22e71ec01
Revert rename + auto import remove use tweak (#5179 )
2023-10-16 07:38:49 +00:00
Tomas Votruba
b3f3d77384
Updated Rector to commit a9908f6498004953531a1a145a4e271fa953a3c7
...
a9908f6498
[PostRector] Reduce loop on ClassRenamingPostRector (#5174 )
2023-10-15 04:45:43 +00:00
Tomas Votruba
3f64ea0f3f
Updated Rector to commit c5d3a0e1913fb0057513dd70122d8eef4d226e1c
...
c5d3a0e191
[CodingStyle] Clean up check last name on UseImportsRemover (#5173 )
2023-10-15 04:06:54 +00:00
Tomas Votruba
6fbeed5643
Updated Rector to commit 29370c7ddfc45c6fe29d88cfca6aa56234a76874
...
29370c7ddf
[AutoImport] [Renaming] Skip remove used use statement on annotation during rename + auto import when no replacement on auto import (#5168 )
2023-10-15 03:39:12 +00:00
Tomas Votruba
5479401552
Updated Rector to commit e2ba601e7ca2e8d602bfc2ffa36bf60a88b1a1f0
...
e2ba601e7c
[DeadCode] Skip return false pseudo type in union on RemoveUselessReturnTagRector (#5172 )
2023-10-15 02:06:32 +00:00
Tomas Votruba
41683b4c5a
Updated Rector to commit 9cf016cd67a9f12ebbc7ae7aaa422626eb5722a9
...
9cf016cd67
[automated] Apply Coding Standard (#5171 )
2023-10-15 00:29:20 +00:00
Tomas Votruba
9f158ba7a8
Updated Rector to commit da2dd66088e15a5c182a047726933306a8fdc28c
...
da2dd66088
RemoveUnusedNonEmptyArrayBeforeForeachRector: skip array dim fetch (#5166 )
2023-10-14 13:25:46 +00:00
Tomas Votruba
4c4ad160dd
Updated Rector to commit c639ef8ad9213881d4fe08554f090934bc5dda07
...
c639ef8ad9
RemoveUnusedNonEmptyArrayBeforeForeachRector: ignore phpdoc types (#5169 )
2023-10-14 12:51:53 +00:00
Tomas Votruba
727c62f465
Updated Rector to commit d55a35bcdede830d3927de1c11e0f7f0d12ee9e4
...
d55a35bcde
[CodeQuality] Skip magic property fetch on IssetOnPropertyObjectToPropertyExistsRector (#5163 )
2023-10-13 15:56:28 +00:00
Tomas Votruba
d06e2fcb41
Updated Rector to commit 396f1989b8605b261cfdfebe45ee855e9fb70ac4
...
396f1989b8
[DeadCode] Skip count() on mixed on RemoveUnusedNonEmptyArrayBeforeForeachRector (#5160 )
2023-10-13 14:40:44 +00:00
Tomas Votruba
16cc61e430
Updated Rector to commit 2efd6d56a9499be0a210a89cdd1883c6a21f83f8
...
2efd6d56a9
[DeadCode] Handle file_get_contents() only remove variable on RemoveUnusedVariableAssignRector (#5162 )
2023-10-13 13:59:23 +00:00
Tomas Votruba
a7ae66acba
Updated Rector to commit ff7acb4c853ebc2322dac6fff618dac8218dacb3
...
ff7acb4c85
[CodeQuality] Skip docblock usage on SimplifyBoolIdenticalTrueRector (#5161 )
2023-10-13 13:49:39 +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
950a5ddaf3
Updated Rector to commit 67250ca5556cb9550ac927ef9e48a1f3d4b9f598
...
67250ca555
[TypeDeclaration] Utilize ClassMethodReturnTypeOverrideGuard on AddReturnTypeDeclarationFromYieldsRector (#5156 )
2023-10-11 16:04:37 +00:00
Tomas Votruba
f25beaaf93
Updated Rector to commit 668da1d020b596441b274ee6bf9d1ed763f8e43d
...
668da1d020
[TypeDeclaration] Utilize ClassMethodReturnTypeOverrideGuard on NumericReturnTypeFromStrictScalarReturnsRector (#5155 )
2023-10-11 15:50:01 +00:00
Tomas Votruba
251ad8aeef
Updated Rector to commit 0eb6000cfce746d9cf714722047a7d824d1f2dac
...
0eb6000cfc
[DeadCode] Skip used in next For_/Foreach_ on RemoveDeadIfForeachForRector (#5154 )
2023-10-11 04:48:30 +00:00
Tomas Votruba
b70e1334d4
Updated Rector to commit 6d96068b0232141101c238752d0c5e80d5781f74
...
6d96068b02
[DeadCode] Skip key used in next stmt on RemoveUnusedForeachKeyRector (#5153 )
2023-10-10 11:25:01 +00:00
Tomas Votruba
970b701227
Updated Rector to commit 6cb63f3752012f33f691844906e56d1045c8bfcf
...
6cb63f3752
[DeadCode] Skip indirect variable definition on RemoveNonExistingVarAnnotationRector (#5152 )
2023-10-10 10:46:27 +00:00
Tomas Votruba
b1be6fd9fc
Updated Rector to commit ee7e92ca7b3507a2903a21bb52b9f840ae3cc2e8
...
ee7e92ca7b
[CodeQuality] Fix missing parentheses on CombineIfRector (#5151 )
2023-10-10 08:33:07 +00:00
Tomas Votruba
f41f0e0aae
Updated Rector to commit 3891c8dd38fd5a6f966de3afc776b044678065f6
...
3891c8dd38
[TypeDeclaration] Handle Union with array type on ReturnUnionTypeRector (#5144 )
2023-10-08 10:39:35 +00:00
Tomas Votruba
1eb3a7a3a9
Updated Rector to commit 4d56a61025597b598a1287f76f475bb6e8f1766f
...
4d56a61025
[DeadCode] Remove UnionType check on RecastingRemovalRector (#5142 )
2023-10-08 03:17:49 +00:00
Tomas Votruba
ba8a9c44c4
Updated Rector to commit b29a6f80c319c6819007a604cc20b788e3abe59c
...
b29a6f80c3
[CodeQuality] Use its start token pos on Else_ on CompleteMissingIfElseBracketRector as no cond (#5136 )
2023-10-06 21:59:20 +00:00
Tomas Votruba
16af101457
Updated Rector to commit 22bf404fbdc1fa1a01aa3075363b1a6d7414d171
...
22bf404fbd
[CodeQuality] Handle on closure, anonymous function, method call on CompleteMissingIfElseBracketRector (#5135 )
2023-10-06 21:49:08 +00:00
Tomas Votruba
b405743bb9
Updated Rector to commit dbd374ba2a2899d247d9c9e087aedf455462fffe
...
dbd374ba2a
[CodeQuality] Handle missing bracket on If only on CompleteMissingIfElseBracketRector (#5134 )
2023-10-06 19:05:34 +00:00
Tomas Votruba
417c9d5b38
Updated Rector to commit 96d061278a3bd76106bf5acc48bc4af5e0eca181
...
96d061278a
apply cs
2023-10-06 13:03:44 +00:00
Tomas Votruba
649f0f5ffb
Updated Rector to commit caf08c4efa0c3351a9d899e568ded816bacd1993
...
caf08c4efa
Skip `__construct()` in BoolReturnTypeFromStrictScalarReturnsRector (#5133 )
2023-10-06 09:33:45 +00:00
Tomas Votruba
d232b29090
Updated Rector to commit 8179073d77b744e70404ec57a02ac730a877516a
...
8179073d77
[CodeQuality] Skip VB style in complex HTML on CompleteMissingIfElseBracketRector (#5132 )
2023-10-06 08:50:53 +00:00
Tomas Votruba
c02a263d0e
Updated Rector to commit 8f4ef6ce9b4b14a86f9a525f931ace6dd96e0e5f
...
8f4ef6ce9b
Clean up CompleteMissingIfElseBracketRector (#5131 )
2023-10-06 08:31:06 +00:00
Tomas Votruba
f2b9e5da57
Updated Rector to commit 3699f54c7ea5bc472818a9ce6d17ae95f5f0d59c
...
3699f54c7e
Clean up CompleteMissingIfElseBracketRector (#5130 )
2023-10-06 08:22:29 +00:00
Tomas Votruba
4c41a02036
Updated Rector to commit 0c9fac55d8e426402d3f306aa2979c23653a7a8a
...
0c9fac55d8
[CodeQuality] Handle all if,elseif,else no bracket on CompleteMissingIfElseBracketRector (#5129 )
2023-10-06 08:12:48 +00:00
Tomas Votruba
b68f693036
Updated Rector to commit 12184ca4ab6f82eae141058284fdd6b44a496c64
...
12184ca4ab
Revert "[CodeQuality] Only check start from current Stmt token pos up until open parentheses on CompleteMissingIfElseBracketRector (#5127 )" (#5128 )
2023-10-06 06:22:34 +00:00
Tomas Votruba
4d1e798d62
Updated Rector to commit af065e78332e3654a4591cd317fc51acea6155d9
...
af065e7833
[CodeQuality] Only check start from current Stmt token pos up until open parentheses on CompleteMissingIfElseBracketRector (#5127 )
2023-10-06 06:14:15 +00:00
Tomas Votruba
b14cc5b488
Updated Rector to commit bb7d02879296e7d43f2718b1de8298380a20243b
...
bb7d028792
[CodeQuality] Skip spaced elseif cond on CompleteMissingIfElseBracketRector (#5126 )
2023-10-06 02:54:16 +00:00
Tomas Votruba
bcf39e1dff
Updated Rector to commit cd0881eb628353d14f1cd344a9fed48c2e13f0bf
...
cd0881eb62
[CodeQuality] Skip direct InlineHTML on CompleteMissingIfElseBracketRector (#5125 )
2023-10-06 02:33:05 +00:00
Tomas Votruba
9144868d77
Updated Rector to commit 96a1476e3e88b749a08408a9b827ce84f35bc237
...
96a1476e3e
[CodeQuality] Add Else and ElseIf on CompleteMissingIfElseBracketRector (#5124 )
2023-10-05 23:23:03 +00:00
Tomas Votruba
ac5bf36e11
Updated Rector to commit 19661946681f61b5ab70ebf39df91a8bf9679fcc
...
1966194668
[CodeQuality] Skip VB style if endif on CompleteMissingIfElseBracketRector (#5122 )
2023-10-05 22:29:00 +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
90920e009e
Updated Rector to commit 6aed089476ea0167835fbbdb42d876cddb4c77d4
...
6aed089476
[Php80] Skip when already implements Stringable and has string return type on StringableForToStringRector (#5120 )
2023-10-05 08:21:59 +00:00
Tomas Votruba
9696ef6862
Updated Rector to commit a6732a5b0e80868a6542c9bd5443f27750577e64
...
a6732a5b0e
[FamilyTree] Remove AstResolver on FamilyRelationsAnalyzer (#5117 )
2023-10-05 07:33:50 +00:00
Tomas Votruba
1c164a642f
Updated Rector to commit 8cab945ae45b651cdf66c8bfbb1603c514733896
...
8cab945ae4
The ReturnTypeFromReturnNewRector must only handle new instances, to avoid leaking to everything (#5115 )
2023-10-04 13:14:06 +00:00
Tomas Votruba
68e74833fe
Updated Rector to commit fe2c85cde9f06c2ccb0e6e7bbbb24f8def25efa9
...
fe2c85cde9
[NodeFactory] Add new method: createReprintedExpr() to create re-printed Expr that can be used to pull default Expr from Param to be re-used (#5114 )
2023-10-04 11:38:51 +00:00
Tomas Votruba
b9cc02d39e
Updated Rector to commit a24035cbbd7d86e6a45a025d60ebede4e00333f8
...
a24035cbbd
[Arguments] Remove unnecessary re-create default value param from ConstFetch on ArgumentAdderRector, set origNode = null instead (#5113 )
2023-10-04 11:23:15 +00:00
Tomas Votruba
489d95e83b
Updated Rector to commit b491f42c2acd125671c7908a3dacd86316048809
...
b491f42c2a
[Php80] Remove unnecessary re-create default value param from ConstFetch on AddParamBasedOnParentClassMethodRector, set origNode = null instead (#5112 )
2023-10-04 11:17:20 +00:00
Tomas Votruba
dfbbc5179f
Updated Rector to commit 4e56b7c4a9fa9747cb12025c94e07b85a30155bc
...
4e56b7c4a9
[Php80] Remove AstResolver usage on PhpAttributeAnalyzer (#5111 )
2023-10-04 08:45:47 +00:00
Tomas Votruba
e7e6907996
Updated Rector to commit d7710f8758ef1a893424e3ab395c3f74c435d91c
...
d7710f8758
[DeadCode] Remove AstResolver usage on RecastingRemovalRector (#5109 )
2023-10-03 02:42:37 +00:00
Tomas Votruba
3c946b60af
Updated Rector to commit 6a89b43080ca6f349322af160b15bf0814d40cb6
...
6a89b43080
[TypeDeclaration] Remove AstResolver usage on ReturnedNodesReturnTypeInfererTypeInferer (#5108 )
2023-10-02 23:27:49 +00:00
Tomas Votruba
dc3682f340
Updated Rector to commit 8c9fe9ac64330acd0271bc1494dbbb86281310ca
...
8c9fe9ac64
[DX] Rename shouldImportName() to shouldSkipName() on ClassNameImportSkipper (#5107 )
2023-10-02 17:56:25 +00:00
Tomas Votruba
f7114d03e6
Updated Rector to commit dae8c61493b22119f0ece2e1d870ff5a0cb91993
...
dae8c61493
[Performance][AutoImport] Remove just renamed check on ClassNameImportSkipper (#5106 )
2023-10-02 16:48:47 +00:00
Tomas Votruba
1425f0b38c
Updated Rector to commit 478b257792be25a6f32e1a7bf672d33d2832a574
...
478b257792
[Performance][AutoImport] Reduce double loop on NameImportingPostRector (#5105 )
2023-10-02 15:40:56 +00:00
Tomas Votruba
9cbcd589af
Updated Rector to commit c9e0823ef35b56b8cc78005c90d7462688d44c09
...
c9e0823ef3
[[Performance]AutoImport] Reduce double loop on ClassNameImportSkipper (#5104 )
2023-10-02 11:11:16 +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
7932e9155e
Updated Rector to commit 6ce58b1d3ddc917467a541c898ebaf828cbe2c59
...
6ce58b1d3d
Remove AstResolver need from FirstClassCallableRector (#5093 )
2023-09-30 19:29:15 +00:00
Tomas Votruba
95d1af621f
Updated Rector to commit 640a49bb8dded439c57723ea4d047f1c9782b78f
...
640a49bb8d
move collectors to src/Collector namespace for easy discovery, add MockedClassCollector (#5055 )
2023-09-30 09:19:11 +00:00
Tomas Votruba
d7242c6a67
Updated Rector to commit 0c0e5eeb4fd337d98f27224d0b46bfd310405dfd
...
0c0e5eeb4f
AddParamTypeBasedOnPHPUnitDataProviderRector: Enhance existing rule to handle PHPUnit 10+ DataProvider Attribute (#4925 )
2023-09-30 09:01:28 +00:00
Tomas Votruba
f642d08e09
Updated Rector to commit 41235b8c7c52b0ba77872c2f04921685569c3b6e
...
41235b8c7c
[Core] Deprecate AbstractRector staticTypeMapper, use dependency directly when needed (#5091 )
2023-09-29 12:48:57 +00:00
Tomas Votruba
d2a4c3c81b
Updated Rector to commit 801d367f34aff122d69072dda92a7a34211f815b
...
801d367f34
AddParamTypeBasedOnPHPUnitDataProviderRector: Check all data providers (#5068 )
2023-09-29 07:28:16 +00:00
Tomas Votruba
342f3dce55
Updated Rector to commit 9793540e79b87bb08e2203b761c2c5b361ac8e27
...
9793540e79
[DX] Remove Attribute support on ChangedNodeScopeRefresher (#5090 )
2023-09-28 17:03:25 +00:00
Tomas Votruba
de657e6fed
Updated Rector to commit cb4e5de3792cb2006383a70152ed0556642ca336
...
cb4e5de379
[build] do not update dev depenencies after phpstan/phpstan removal
2023-09-27 13:44:26 +00:00
Tomas Votruba
0bac9c9526
Updated Rector to commit 5fb68b4a0c04c968a8edaa3556406838d4748757
...
5fb68b4a0c
InlineConstructorDefaultToPropertyRector Readonly Class (#5085 )
2023-09-27 13:06:03 +00:00
Tomas Votruba
1d1339dd53
Updated Rector to commit b483230a5bb027f24dbfe46e5a4416abd6b4788f
...
b483230a5b
[Performance] Remove regex for check start with big letter on ShortNameResolver (#5084 )
2023-09-26 21:57:19 +00:00
Tomas Votruba
452859f92f
Updated Rector to commit e38909dbc086a70e5564e21d8af87aab9c1dc62d
...
e38909dbc0
Docblock fix on ShortNameResolver (#5077 )
2023-09-24 10:06:03 +00:00
Tomas Votruba
9b44046c45
Updated Rector to commit 4f199368893906bf5d9f89b936e97297888de463
...
4f19936889
[AutoImport] Skip case insensitive conflict defined class name on $rectorConfig->importNames() (#5076 )
2023-09-24 09:51:58 +00:00
Tomas Votruba
4b7d5cbe32
Updated Rector to commit 8bfaf450145e25e27e33e0ba2ead4c7348c6aa43
...
8bfaf45014
[Php80] Mirror switch comment to match to ChangeSwitchToMatchRector (#5072 )
2023-09-23 13:19:03 +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
Tomas Votruba
06467e73f0
Updated Rector to commit 36f0b4ad9751892be63b57ccd95ecc75404c8cee
...
36f0b4ad97
Make RemoveEmptyClassMethodRector skip deprecated class method, as used for BC (#5061 )
2023-09-21 15:47:17 +00:00
Tomas Votruba
4b8fc3fb05
Updated Rector to commit e698133cad1a85f2384a6cf450d66c54df1876a2
...
e698133cad
[DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5053 )
2023-09-20 12:55:35 +00:00
Tomas Votruba
3827f75ecd
Updated Rector to commit 23d429233d37af0d743b4d4dc622828c704d2d2f
...
23d429233d
[DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5052 )
2023-09-20 12:53:23 +00:00
Tomas Votruba
b2b3a0f5cc
Updated Rector to commit 33fa6262970128e964fc4099d88d9a7369828e1a
...
33fa626297
[DX] Make PhpDocInfoFactory explicitly required in Rector rule constructor, if needed (#5051 )
2023-09-20 12:41:26 +00:00
Tomas Votruba
3a35226590
Updated Rector to commit 5ee831f533cf97bc985b381cfd067122e2a479d2
...
5ee831f533
[TypeDeclaration] Add return static property support on ReturnTypeFromStrictTypedPropertyRector (#5050 )
2023-09-19 13:48:46 +00:00
Tomas Votruba
db78ff1331
Updated Rector to commit 76611f69af76327be04538df7b8c568600ac58c0
...
76611f69af
Deprecate TypedPropertyFromStrictConstructorReadonlyClassRector as based on docblock and public elements; use private elements and property promotion instead (#5049 )
2023-09-19 13:45:02 +00:00
Tomas Votruba
09bdee3938
Updated Rector to commit 765e849e612553708296dd501375b49784ad1ca8
...
765e849e61
Narrow rule complexity, add custom PHPStan to check whole rule complexity tree and spot architecture flaws (#5025 )
2023-09-19 13:41:47 +00:00
Tomas Votruba
4ea05c5a5f
Updated Rector to commit e530fc1e1a98faa22509115e79de5e5f2997208d
...
e530fc1e1a
Introducing Collectors - final step 🥳 - processing collected data + test case (#4970 )
2023-09-19 11:53:28 +00:00
Tomas Votruba
00f0a02e41
Updated Rector to commit 3ffd995dd526de72ae1c325ff225bf50624d07c5
...
3ffd995dd5
[DeadCode] RemoveDeadZeroAndOneOperationRector should not remove Constants (#4910 )
2023-09-19 10:39:33 +00:00
Tomas Votruba
e43f2a6386
Updated Rector to commit a3d2fcda640abe4af03822e415c5fbe757c2f88c
...
a3d2fcda64
[NodeTypeResolver] Use Scope->getType() on ArrayDimFetch on NodeTypeResolver::getNativeType() (#5037 )
2023-09-18 22:07:04 +00:00
Tomas Votruba
d7b6d352e5
Updated Rector to commit 308178a058b057813283852029a7b2aaa026568a
...
308178a058
Adding collectors - step 3 (#5043 )
2023-09-18 17:12:03 +00:00
Tomas Votruba
65c9e5396a
Updated Rector to commit 2cf8d837421963a540d2cf6e3b42702b1a8ae09e
...
2cf8d83742
[TypeDeclaration] Handle fallback from param same type object on ReturnTypeFromReturnNewRector (#5039 )
2023-09-18 06:15:34 +00:00
Tomas Votruba
8e037982d6
Updated Rector to commit c956f862094345e72533d83e629938437bf29a43
...
c956f86209
fix(ArrayKeyFirstLastRector): Skip exection when pointer is changed (#5038 )
2023-09-17 13:19:31 +00:00
Tomas Votruba
dc61ee1240
Updated Rector to commit 8ba3d90ba430782c8e9bba135411260df802df3e
...
8ba3d90ba4
EmptyOnNullableObjectToInstanceOfRector: skip phpdoc (#5034 )
2023-09-17 07:02:22 +00:00
Tomas Votruba
77cbaa7c42
Updated Rector to commit 8f8074f6d30e657621bf6ead352d062d228274ed
...
8f8074f6d3
SimplifyIfNullableReturnRector: fix example (#5032 )
2023-09-17 06:44:25 +00:00
Tomas Votruba
6942fe920b
Updated Rector to commit 780c5afe7b1623fe23e6c198665f692275fe798e
...
780c5afe7b
[automated] Apply Coding Standard (#5031 )
2023-09-17 00:30:04 +00:00
Tomas Votruba
279e6b242e
Updated Rector to commit 0acf4bd13469aff2ad461317d026234840aa8091
...
0acf4bd134
Simplify UseIdenticalOverEqualWithSameTypeRector (#5029 )
2023-09-16 11:56:33 +00:00
Tomas Votruba
01c783a2bf
Updated Rector to commit c8ff683305a228aa2bfbe2c11eccc7a712c5db94
...
c8ff683305
Remove inline-@var use (#5028 )
2023-09-16 11:45:20 +00:00
Tomas Votruba
c33ef2a625
Updated Rector to commit e6d5d3620448b27bce7d080c9832558e2f6cdf38
...
e6d5d36204
[CodeQuality]: Skip PHPDoc (#5027 )
2023-09-16 08:08:56 +00:00
Tomas Votruba
810ae4c396
Updated Rector to commit f6063588c0107450e51333934308f71434722f68
...
f6063588c0
[DX] Lower current node dependency - pass it directly to doc node parsing (#5023 )
2023-09-15 11:53:42 +00:00
Tomas Votruba
d8dbb74079
Updated Rector to commit 5b423425e584112ae7a02a6e7236c667cd5aedd0
...
5b423425e5
TypedPropertyFromStrictConstructorRector: Skip phpdoc types (#5020 )
2023-09-14 17:09:03 +00:00
Tomas Votruba
4d86ccbb88
Updated Rector to commit 848c2ad9415b0e536b7864872f895f64104ecb50
...
848c2ad941
Improve Use_ const types in docblocks (#5005 )
2023-09-12 20:17:09 +00:00
Tomas Votruba
57dc6f91d6
Updated Rector to commit 7e2bc1414f8567c55934a32d856e8d92a6e31d0f
...
7e2bc1414f
[DeadCode] Ensure $hasChanged not replaced on next iteration when it assigned to true on RemoveUnusedPrivateMethodParameterRector (#5009 )
2023-09-12 19:06:50 +00:00
Tomas Votruba
088accd46c
Updated Rector to commit aeba96a811638e3954028b70d8163c43a8866fa8
...
aeba96a811
Refactor use import resolving (#4998 )
2023-09-12 12:38:05 +00:00
Tomas Votruba
0d6604344e
Updated Rector to commit cbc632c1eda3f2b9aba3fba07b0f1b45cc58caec
...
cbc632c1ed
RenameFunctionRector: prevent repeated isName() calls (#5003 )
2023-09-12 11:58:35 +00:00