Commit Graph

17576 Commits

Author SHA1 Message Date
Tomas Votruba
e153ed98e6 Updated Rector to commit c6ca4f1f5ccdf73d9aa0f8f441267725e07aee67
c6ca4f1f5c [Performance][TypeDeclaration] Avoid using AstResolver on class is on same file on AllAssignNodePropertyTypeInferer (#5387)
2023-12-24 08:15:26 +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
78b306c557 Updated Rector to commit 5259090faea9e744c79da1115ad299d31b649bb1
5259090fae wording
2023-12-23 15:04:06 +00:00
Tomas Votruba
f65671090e Updated Rector to commit ae97b716490cd94d2d7ba5783ab5f5f7e19ad535
ae97b71649 tidy up (#5380)
2023-12-23 14:54:24 +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
0ee99bfbc9 Updated Rector to commit 53ba155ab03ce7717ecef42b311880b314a40fbc
53ba155ab0 [NodeAnalyzer] Use existing VariadicFunctionLikeDetector on VariadicAnalyzer (#5378)
2023-12-23 11:33:51 +00:00
Tomas Votruba
daa774618b Updated Rector to commit 941735ce81d698e7b4c32d71b43595033236226f
941735ce81 [Performance][AstResolver] Avoid parse file on NativeFunctionReflection on AstResolver::resolveFunctionFromFunctionReflection() (#5377)
2023-12-23 10:46:06 +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
4e82e891c9 Updated Rector to commit 7ca4de097ed6b2f0f2b20a8f2b55ea2121120173
7ca4de097e [DeadCode] Skip nullable array on RemoveUnusedNonEmptyArrayBeforeForeachRector (#5375)
2023-12-22 07:54:11 +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
f8011a76d3 Rector 0.18.13 2023-12-20 16:08:01 +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
10fd8e5374 Updated Rector to commit 02a30d483fe28abc9315a7e6bf809614750c95ab
02a30d483f [Php55] Handle crash after exit() on GetCalledClassToSelfClassRector (#5372)
2023-12-18 05:38:03 +00:00
Tomas Votruba
5f40a31427 Updated Rector to commit affdec96db31156ab2b05a5801f980e284e291a5
affdec96db [Testing] Remove unnecessary set Parameter Source on TestingParser (#5371)
2023-12-17 15:33:43 +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
291e258902 Updated Rector to commit 54491a53f081fd8785269513b1650a524a9077f1
54491a53f0 [BetterphpDocparser] Remove new PrivatesAccessor() on promotion property on BetterPhpDocParser (#5368)
2023-12-17 07:29:57 +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
aba5aec25d Updated Rector to commit aa52c4ecedb83773b12c4d3b2906ba36601057ba
aa52c4eced [Reflection] Remove usage on PrivatesAccessor on ClassReflectionAnalyzer (#5366)
2023-12-17 06:07:34 +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
e216058787 Updated Rector to commit f8c3a2e313d5eee15c2aca53177ccf377042a65c
f8c3a2e313 Remove json throw on error rule from PHP 7.3 set, as changed behavior and must be applied on purpose (#5349)
2023-12-10 13:35:43 +00:00
Tomas Votruba
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
976e6eb341 Updated Rector to commit ccbee6ff09668241b9f8bcadbaa05ba4fb8fda5f
ccbee6ff09 [automated] Re-Generate Nodes/Rectors Documentation (#5345)
2023-12-10 00:29:28 +00:00
Tomas Votruba
0125f4dfcf Updated Rector to commit 99dbc0d8b7ca27e803c78657979f574476208125
99dbc0d8b7 [Experiment][TypeDeclaration] Allow change abstract class methods with body on ReturnType*Rector (#5344)
2023-12-09 17:15:42 +00:00
Tomas Votruba
ba2d636bcd Updated Rector to commit bc544cf6f72f9296403ae906a3be83093ba08076
bc544cf6f7 [TypeDeclaration] Skip has child return different type on ReturnNeverTypeRector (#5343)
2023-12-09 14:31:59 +00:00
Tomas Votruba
5fbad6d865 Updated Rector to commit 6a63c6376124c9604097d85aa4cc77c190bdacd2
6a63c63761 [PHP 7.4] Skip typed properties in the set, as standalone set now available (#5342)
2023-12-08 16:11:44 +00:00
Tomas Votruba
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
9e3e9b62ed Updated Rector to commit 9e39db80cf2a763ae6006b3747feb69d82ade52d
9e39db80cf [DeadCode] Skip has parent class with __call() magic method on RemoveParentCallWithoutParentRector (#5336)
2023-12-07 04:38:08 +00:00
Tomas Votruba
e7bdaa4244 Updated Rector to commit b6f53b95e8a0ced2dd8197f9c46640ee9010a63b
b6f53b95e8 add mock object test fixture (#5335)
2023-12-06 23:05:01 +00:00
Tomas Votruba
fb06a0e1f2 Updated Rector to commit 79c57f019e1c94c72ef79cb6cbdda864bdc2e1c1
79c57f019e [TypeDeclaration] Handle assign $this on TypedPropertyFromAssignsRector (#5333)
2023-12-06 14:25:02 +00:00