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
Tomas Votruba
3c6c1c03f8
Updated Rector to commit a2f70054a7d976acd2c73b06789095b998829be6
...
a2f70054a7
[DocBlock] Update docblock contents right in the rule (#4999 )
2023-09-11 21:30:42 +00:00
Tomas Votruba
35a66f9d23
Updated Rector to commit 596bbc98a25903c525914b4d16ea5f9c76b500fb
...
596bbc98a2
[tests] Replace wildcard e2e test with unit one (#5000 )
2023-09-11 18:33:42 +00:00
Tomas Votruba
9a39b26232
Updated Rector to commit 9e7367ca9296ca986a31abd8bb7d6b3a6b5ef0d8
...
9e7367ca92
Trigger Rectify (#4997 )
2023-09-11 16:07:43 +00:00
Tomas Votruba
df6678519f
Updated Rector to commit ed0be502e5d74171d59e67874f089f69429a01b0
...
ed0be502e5
UseImportsTraverser: don't deep traverse (#4994 )
2023-09-11 15:55:07 +00:00
Tomas Votruba
abed52d2c1
Updated Rector to commit edadb26ab4a156985027b8f685cdeecf4ea4b098
...
edadb26ab4
[Transform] Improve performance of AddAllowDynamicPropertiesAttributeRector (#4995 )
2023-09-11 15:18:16 +00:00
Tomas Votruba
02ce33183a
Updated Rector to commit f733c32f6c44c06faeba9ad5c46a62b8eee11748
...
f733c32f6c
[Transform] Refactor AddAllowDynamicPropertiesAttributeRector with verify both fnmatch and is string name (#4993 )
2023-09-11 15:00:52 +00:00
Tomas Votruba
927d670ef2
Updated Rector to commit 27d4c55bebe8706a74273d8c2379f59b75543c0e
...
27d4c55beb
[Transform] Check str_contains * before fnmatch() early on AddAllowDynamicPropertiesAttributeRector (#4991 )
2023-09-11 13:47:00 +00:00
Tomas Votruba
be951e04e1
Updated Rector to commit 878f381d30ddb07c68dfbe828e9cd6e2b77b6c31
...
878f381d30
[Php55] Check str_contains * before fnmatch() early on StringClassNameToClassConstantRector (#4990 )
2023-09-11 13:37:38 +00:00
Tomas Votruba
93e75a5197
Updated Rector to commit bfb759084621dfe23766ebfb43db47fb71ed5512
...
bfb7590846
[CodingStyle] Use str_starts_with() on isName($node, 'test*') on DataProviderArrayItemsNewlinedRector (#4988 )
2023-09-11 13:33:44 +00:00
Tomas Votruba
549bed6da9
Updated Rector to commit b3639f72d73d9471ea8a843f93eb2ca61cd54a56
...
b3639f72d7
Update docblock only when changed, directly in rector rule (#4986 )
2023-09-11 13:16:45 +00:00
Tomas Votruba
0a6aef3c00
Updated Rector to commit c9c3d78d3c5e583b541d06e5827f4f019adc3e40
...
c9c3d78d3c
Remove ununnecesary markAsChanged() in PhpDocTypeChanger (#4984 )
2023-09-11 10:41:08 +00:00
Tomas Votruba
282e5517d7
Updated Rector to commit ae3608b3d6464b63a041dd5e779c7b4e8f4cedb6
...
ae3608b3d6
Remove ununnecesary markAsChanged() in PhpDocTypeChanger, print docblock in explicit way when changed (#4983 )
2023-09-11 09:08:21 +00:00
Tomas Votruba
553b67b890
Updated Rector to commit 57ec646b63b0c7804df44fd67990b41d83d56c40
...
57ec646b63
Make PhpDocINfo::removeByType() return bool to inform about changed node (#4979 )
2023-09-11 07:37:02 +00:00
Tomas Votruba
1a37c5b7e2
Updated Rector to commit e4eec89c47fb767dbadb65662c12e2e3b6650cd5
...
e4eec89c47
[Performance][Php55] Remove regex replace e on RegexMatcher (#4974 )
2023-09-10 19:01:55 +00:00
Tomas Votruba
44ac4c0b00
Updated Rector to commit b5c8f9a8930520277828986608fda0b75ef5381a
...
b5c8f9a893
use strlen() directly, as enough for string check (#4969 )
2023-09-10 14:40:14 +00:00
Tomas Votruba
1e7c1e02b0
Updated Rector to commit ead7a25b38797531d9e6a755492200d59b05b1ae
...
ead7a25b38
Remove regex and fnmatch again on NodeNameResolver (#4968 )
2023-09-10 13:41:40 +00:00
Tomas Votruba
5995088c4e
Updated Rector to commit ef6c8bcc96bcb35a832ca0e798d580735c58f9ef
...
ef6c8bcc96
[NodeNameResolver] Check regex start delimiter and contains * on NodeNameResolver to use fnmatch() (#4964 )
2023-09-10 13:01:10 +00:00
Tomas Votruba
f73bcd4ef8
Updated Rector to commit c97e4ffb0534d388b5f51508491916f54d3f342a
...
c97e4ffb05
[Naming] Remove matchesStringName() check completely from NodeNameResolver, including endsWith() method - use getName() and compare directly instead (#4954 )
2023-09-09 22:49:40 +00:00
Tomas Votruba
5ab2aa34fb
Updated Rector to commit 416e52ad9e2164bc7d8e11518e3c0165862cb1b3
...
416e52ad9e
fix typo (#4956 )
2023-09-09 18:21:23 +00:00
Tomas Votruba
6adcb19ec9
Updated Rector to commit 474b3a222684b9c343ba6b43ea5bd39b78fbef2a
...
474b3a2226
Faster name resolving (#4955 )
2023-09-09 18:18:18 +00:00
Tomas Votruba
81d65055b2
Updated Rector to commit 2d5d72f3ba66a63acb991107ba763e147c9840f4
...
2d5d72f3ba
[Naming] Introduce startsWith() to acompany endsWith() naming check (#4953 )
2023-09-09 14:19:44 +00:00
Tomas Votruba
7540a5e283
Updated Rector to commit 9a322af593a3ed9de20a535f613ed25e12ecc823
...
9a322af593
BC: Separated regex matching in NodeNameResolver->isName() (#4951 )
2023-09-09 14:08:25 +00:00
Tomas Votruba
5102d25a1e
Updated Rector to commit 672df31993b36396c3987bf6082f6218ba5cd26c
...
672df31993
Remove UnSpreadOperatorRector as not clear value and spread used on purpose (#4949 )
2023-09-09 11:18:54 +00:00
Tomas Votruba
4ae2dfa94e
Updated Rector to commit 2be5a4d4928468b981079704bd0946764a6a1ec3
...
2be5a4d492
Simplify AlwaysStrictScalarExprAnalyzer (#4935 )
2023-09-07 12:50:04 +00:00
Tomas Votruba
e30fbabf27
Updated Rector to commit b47adb55f7f7940987078fbe77f5222577a429b4
...
b47adb55f7
[TypeDeclaration] Add non native function return support on ReturnTypeFromStrictScalarReturnExprRector (#4934 )
2023-09-07 11:28:19 +00:00
Tomas Votruba
030adf9f7d
Updated Rector to commit eebc3ce703e0d57794c1dd1823457b272e02403d
...
eebc3ce703
[TypeDeclaration] Ensure ArrayType on ReturnTypeFromStrictNewArrayRector::shouldAddReturnArrayDocType() (#4932 )
2023-09-07 04:43:51 +00:00
Tomas Votruba
549a072c08
Updated Rector to commit fa28385f9b46b0119073fb4209762fce23f8c09a
...
fa28385f9b
Refactor BetterNodeFinder::findFirstInFunctionLikeScoped() to work with SilentVoidResolver (#4931 )
2023-09-07 04:03:06 +00:00
Tomas Votruba
94613faf8f
Updated Rector to commit 54799fc3d3a341643d050d06ecf72b467c8d37e8
...
54799fc3d3
[TypeDeclaration] Skip return after return closure on AddVoidReturnTypeWhereNoReturnRector (#4930 )
2023-09-07 02:10:00 +00:00
Tomas Votruba
087ff4d5eb
Updated Rector to commit e47f63176a7913ff040bfbce75a260a4ec47ceab
...
e47f63176a
[TypeDeclaration] Add init assign method call support on ReturnTypeFromStrictNewArrayRector (#4929 )
2023-09-07 01:50:05 +00:00
Tomas Votruba
73ca9074e0
Updated Rector to commit 2a697f79ecd82e4b59091f59927d8b9315113c18
...
2a697f79ec
[TypeDeclaration] Add fallback return direct array support on ReturnTypeFromStrictNewArrayRector (#4928 )
2023-09-06 19:40:05 +00:00
Tomas Votruba
e6e6042119
Updated Rector to commit 10eb09f02d825d01caf92e2c45c73dddf6aa3430
...
10eb09f02d
[cleanup] Remove deprecated NonPhpRectorInterface, PseudoNamespaceToNamespaceRector and mysql to mysqli sets (#4927 )
2023-09-06 16:03:21 +00:00
Tomas Votruba
f36a223be4
Updated Rector to commit aee42009d91dfdca128760fc4b37e09e101db23f
...
aee42009d9
AddVoidReturnTypeWhereNoReturnRector: fix never type handling (#4918 )
2023-09-06 13:12:52 +00:00
Tomas Votruba
51c70b1a6e
Updated Rector to commit eca01b375a62cca2d79ee5a1a7fff1795f3cba11
...
eca01b375a
Trigger Rectify (#4924 )
2023-09-06 12:41:35 +00:00
Tomas Votruba
7866e76540
Updated Rector to commit 15e924988caf800caffddf1906da948138daf44b
...
15e924988c
Faster SilentVoidResolver (#4923 )
2023-09-06 12:33:43 +00:00
Tomas Votruba
01bdd5bff5
Updated Rector to commit c17181453c5493f1ef2e43206759f12d715c18df
...
c17181453c
[TypeDeclaration] Add append in loop support on ReturnTypeFromStrictNewArrayRector (#4922 )
2023-09-06 12:12:53 +00:00
Tomas Votruba
3cee45fd42
Updated Rector to commit 0d2cdf0c48e4c0608ff4189e176c66aee92c820c
...
0d2cdf0c48
[TypeDeclaration] Use $type->isScalar()->yes() on AlwaysStrictScalarExprAnalyzer (#4920 )
2023-09-06 11:44:15 +00:00
Tomas Votruba
752381df77
Updated Rector to commit c4ea636dcfb0a87f7fa7a7214e80ed98dac2444d
...
c4ea636dcf
[TypeDeclaration] Add return empty string defined support on ReturnTypeFromStrictScalarReturnExprRector (#4919 )
2023-09-06 11:35:48 +00:00
Tomas Votruba
2bbdfcfe3b
Updated Rector to commit a21a3f17578cb8e13505ffe0e797ecfd12e86c4f
...
a21a3f1757
[Cleanup] Remove TypeToCallReflectionResolver as not needed anymore (#4917 )
2023-09-05 19:57:28 +00:00
Tomas Votruba
4c7551da27
Updated Rector to commit aa7282195caab5889ee067ca3fb5eda62f26ed1b
...
aa7282195c
[TypeDeclaration] Add return static object support on ReturnTypeFromStrictFluentReturnRector (#4916 )
2023-09-05 17:03:27 +00:00
Tomas Votruba
dbdeb211ce
Updated Rector to commit 6d009ccad0aacd102fdacba00eb59b32a1104582
...
6d009ccad0
[TypeDeclaration] Add return self object support on ReturnTypeFromStrictFluentReturnRector (#4915 )
2023-09-05 15:48:41 +00:00
Tomas Votruba
2ae279bf07
Updated Rector to commit 093bcb63a19db3fcdab8264897c584212d755463
...
093bcb63a1
[CodeQuality] Add NumberCompareToMaxFuncCallRector (#4914 )
2023-09-05 13:21:31 +00:00
Tomas Votruba
491915e31b
Updated Rector to commit 5595f80ed176f93485f50ff6dabad79cedbb72dc
...
5595f80ed1
Update github actions/checkout from v3 to v4 (#4909 )
2023-09-04 14:00:44 +00:00
Tomas Votruba
c5dca33b93
Updated Rector to commit 5919201e137b5ed041eebdf891ff2bada22fddb1
...
5919201e13
StrictArrayParamDimFetchRector: Skip objects (#4907 )
2023-09-04 10:32:52 +00:00
Tomas Votruba
bbc92f1719
Updated Rector to commit 824bb97770867b1584fa7c2398d0d59b7cd4f36e
...
824bb97770
[TypeDeclaration] Skip mixing native + docblock union assign on TypedPropertyFromAssignsRector (#4905 )
2023-09-04 07:41:42 +00:00
Tomas Votruba
454b838af8
Updated Rector to commit 75717921e8661b5fc6f0ebbffe2e35bd86146202
...
75717921e8
MyCLabs enum equals + keeping methods (#4645 )
2023-09-04 07:26:59 +00:00
Tomas Votruba
d72f4cf839
Updated Rector to commit 04c528e639778905387757ca3f7db6a3e48ac92f
...
04c528e639
Skip identical to false in SimplifyBoolIdenticalTrueRector, as exact comparison is stronger than negated expression (#4901 )
2023-09-03 16:38:10 +00:00
Tomas Votruba
28c16a1c00
Updated Rector to commit d5f399eee5709932b579d41e3799c3097bbc101f
...
d5f399eee5
[DeadCode] Remove @return void on return self on RemoveUselessReturnTagRector (#4894 )
2023-09-02 15:59:59 +00:00
Tomas Votruba
fc46b4d878
Updated Rector to commit 3243e0efc1b7cab4f4c3f08cb73f16750018bad4
...
3243e0efc1
Add number support to concat EncapsedStringsToSprintfRector (#4898 )
2023-09-02 15:54:43 +00:00
Tomas Votruba
ed2db39d3d
Updated Rector to commit 412d0bd50130f82d8f5388060301a7e1debf50ad
...
412d0bd501
Add single value concat support to EncapsedStringsToSprintfRector (#4897 )
2023-09-02 15:36:16 +00:00
Tomas Votruba
326e84f967
Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
...
7078b51a7c
[TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890 )
2023-09-01 11:10:35 +00:00
Tomas Votruba
3d97937140
Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
...
7078b51a7c
[TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890 )
2023-08-31 16:33:28 +00:00
Tomas Votruba
62fe44207e
Updated Rector to commit 56c84ba714b135a36e7e95fdf53f406b1411461e
...
56c84ba714
[TypeDeclaration] Do not add default value when assigned in __construct() on TypedPropertyFromStrictGetterMethodReturnTypeRector (#4886 )
2023-08-31 11:38:41 +00:00
Tomas Votruba
a3ea8375c9
Updated Rector to commit 4b0a688b8117689c243adc1c8dd18e9512673428
...
4b0a688b81
[TypeDeclaration] skip variadic constructor param of mixed type on AddParamTypeFromPropertyTypeRector (#4887 )
2023-08-31 10:36:02 +00:00
Tomas Votruba
25e5fba435
Updated Rector to commit cf69407e2ff3402abb8a939d79f326f59121b2b4
...
cf69407e2f
Fix missing default string in TypedPropertyFromStrictGetterMethodReturnTypeRector (#4885 )
2023-08-31 08:41:20 +00:00
Tomas Votruba
97f92edab1
Updated Rector to commit 6424bae725296eb72307e5f4902715ea41dad3ba
...
6424bae725
[TypeDeclaration] Using ClassMethodReturnTypeOverrideGuard on ReturnTypeFromStrictParamRector (#4878 )
2023-08-29 16:52:48 +00:00
Tomas Votruba
73a1ef4a72
Updated Rector to commit d8d31debc51ab5df1d30655846bb0fbd9f76039b
...
d8d31debc5
[Performance] Use more performance spl_object_id() (#4876 )
2023-08-28 17:41:52 +00:00
Tomas Votruba
dd562a4b59
Updated Rector to commit 9e8ed6c33f39aa9d7d859fb39b6f2d0344cdea0d
...
9e8ed6c33f
Remove SwapFuncCallArgumentsRector as keeps swaping to infinity, use custom rule instead (#4874 )
2023-08-28 12:45:54 +00:00
Tomas Votruba
b19f667a5b
Updated Rector to commit 21f33de2b90c0e63d42c3ebebef7cf4415191a21
...
21f33de2b9
Recreate to exact Expr node instead of printing when possible on AddParamBasedOnParentClassMethodRector take 2 (#4842 )
2023-08-24 10:28:16 +00:00
Tomas Votruba
3e344a5749
Updated Rector to commit 5de9824db5006d0e6d9e9e60a2a1c439ff7adb6e
...
5de9824db5
[Performance][Php80] Avoid print on Expr when possible on AddParamBasedOnParentClassMethodRector (#4839 )
2023-08-23 13:42:14 +00:00
Tomas Votruba
20bb3755f5
Updated Rector to commit 15ddec30da5ca9996fa56949e35ec9a190c72bf3
...
15ddec30da
[Php73][Php80] Handle empty long array syntax default value on SensitiveConstantNameRector+AddParamBasedOnParentClassMethodRector (#4837 )
2023-08-23 13:24:46 +00:00
Tomas Votruba
ef0d7bee6c
Updated Rector to commit 4b34887e678f90e4d9a8b4838333091465c28dc7
...
4b34887e67
[Php80] Handle crash parent default empty array/string param on AddParamBasedOnParentClassMethodRector (#4833 )
2023-08-23 11:33:01 +00:00
Tomas Votruba
fbd33e5f98
Updated Rector to commit 45aababfbcf23f7ab3765376d6f04a3aee113e8a
...
45aababfbc
[TypeDeclaration] Add new array replaced with array on ReturnTypeFromStrictNewArrayRector (#4825 )
2023-08-21 09:37:33 +00:00
Tomas Votruba
a3856d782f
Updated Rector to commit 4a869b9b104dc81adef4441025787c0c3411d4d6
...
4a869b9b10
bump PHPUnit printer to optional (#4826 )
2023-08-21 09:28:35 +00:00
Tomas Votruba
def86c6e48
Updated Rector to commit 45aababfbcf23f7ab3765376d6f04a3aee113e8a
...
45aababfbc
[TypeDeclaration] Add new array replaced with array on ReturnTypeFromStrictNewArrayRector (#4825 )
2023-08-21 09:28:31 +00:00
Tomas Votruba
8d42e37dfd
Updated Rector to commit 00f736f054372cca311469fec02b46edd5159b9a
...
00f736f054
Fix RenamePropertyToMatchTypeRector to skip Laravel collections and avoid accident rename (#4811 )
2023-08-18 09:06:56 +00:00
Tomas Votruba
7ad16ccd68
Updated Rector to commit 5363a676265cbe868f4ecc6bde8c6a99b213d028
...
5363a67626
AddReturnTypeDeclarationBasedOnParentClassMethodRector: don't trust phpdoc types (#4810 )
2023-08-17 15:17:47 +00:00
Tomas Votruba
314c192af3
Updated Rector to commit bbd2e81b171f50d05ef73d63518cb1a31fdd7cd5
...
bbd2e81b17
Merge many Skipper tests to one, cleanup phpstan errors (#4806 )
2023-08-17 10:13:30 +00:00
Tomas Votruba
266669789d
Updated Rector to commit a85997a277c3227652eb9b2a6571fd01d183a5a7
...
a85997a277
Faster AddParamBasedOnParentClassMethodRector (#4805 )
2023-08-17 09:06:25 +00:00
Tomas Votruba
7e217a5d21
Updated Rector to commit 2604a47c32dd8606349a1724122977c8b2fa6bf9
...
2604a47c32
Faster AddReturnTypeDeclarationBasedOnParentClassMethodRector (#4804 )
2023-08-17 09:03:10 +00:00
Tomas Votruba
3fc5ae2dea
Updated Rector to commit 04f332aaff53d2cda434b5051373aa0311683747
...
04f332aaff
[TypeDeclaration] Remove USE_PHPDOC constant on AddVoidReturnTypeWhereNoReturnRector since no longer used (#4799 )
2023-08-16 16:42:25 +00:00
Tomas Votruba
1f172665e6
Updated Rector to commit d8d4e8d0b244ba368e3ce8767343c71b108ec93c
...
d8d4e8d0b2
Revert removed ErrorType handling on NullToStrictStringFuncCallArgRector (#4793 )
2023-08-14 20:02:59 +00:00
Tomas Votruba
426abe14c5
Updated Rector to commit 514df0a319b75f86b9b381ee0db7f95aadca32fb
...
514df0a319
Make NullToStrictStringFuncCallArgRector run without scope (#4792 )
2023-08-14 14:35:49 +00:00
Tomas Votruba
5b1b83ed61
Updated Rector to commit 685fe90cb8752c2a288ee982d03d15d8df6b59f2
...
685fe90cb8
Make SimplifyUselessVariableRector run without scope (#4791 )
2023-08-14 14:31:01 +00:00
Tomas Votruba
951076fc19
Updated Rector to commit 90b832dc4f10d04b32f2c0cbc473082f6ccd11fb
...
90b832dc4f
cleanup (#4787 )
2023-08-14 09:58:25 +00:00
Tomas Votruba
34e7d4f989
Updated Rector to commit 29d9b7619d0d8bd68a62cc5ab3fcba5699a50558
...
29d9b7619d
[PHPStanStaticTypeMapper] Remove TypeKind::ANY (#4786 )
2023-08-14 09:24:11 +00:00
Tomas Votruba
867dc4426c
Updated Rector to commit 6b7aac835934de48c034aa8b2bad886616566e06
...
6b7aac8359
[Php81] Remove IntersectionTypesRector as rely on docblock (#4784 )
2023-08-14 06:41:08 +00:00
Tomas Votruba
81362af021
Updated Rector to commit 72815588219a43f3881295c77bd5c97239e4721a
...
7281558821
[TypeDeclaration] Skip @param int on StrictStringParamConcatRector (#4780 )
2023-08-13 16:51:50 +00:00
Tomas Votruba
5034b0a7f0
Updated Rector to commit 2970fa114ef632768f4704c8eefd2f5d0310703c
...
2970fa114e
[TypeDeclaration] Skip in conditional on AddParamTypeFromPropertyTypeRector (#4779 )
2023-08-13 07:18:25 +00:00
Tomas Votruba
435adccb1e
Updated Rector to commit d02cfa14472309287e8ab741197440718a243fbd
...
d02cfa1447
[TypeDeclaration] Skip param re-assign on Strict Param rules (#4775 )
2023-08-12 05:16:06 +00:00
Tomas Votruba
997543819d
Updated Rector to commit 3f863a78c33218b94632431cc16ef5024d835f3e
...
3f863a78c3
[TypeDeclaration] Handle crash on concat param append returned used on Arg on StrictStringParamConcatRector (#4774 )
2023-08-11 17:54:04 +00:00
Tomas Votruba
66f7957611
Updated Rector to commit 130f07b3da5cd6024b1e03265f75e70666a95473
...
130f07b3da
[DeadCode] Skip used by trait inside Closure on RemoveUnusedPrivateMethodRector (#4773 )
2023-08-11 17:24:11 +00:00
Tomas Votruba
e36ad5d27c
Updated Rector to commit 6923113ff2994cfb0c76298c7dc7d038655fbc95
...
6923113ff2
[DeadCode] Skip used by trait on RemoveUnusedPrivateMethodRector (#4770 )
2023-08-11 13:30:03 +00:00
Tomas Votruba
7abf8380e8
Updated Rector to commit cf1d5b0a492598b893c3fe0ac1ec1d2fcd5018c6
...
cf1d5b0a49
Remove SwapMethodCallArgumentsRector as could lead to infinite swapping, use custom rule with type/value check instead (#4766 )
2023-08-11 10:13:56 +00:00