Commit Graph

5255 Commits

Author SHA1 Message Date
Tomas Votruba bd3297e237 Updated Rector to commit 84639e6aa9c5daa4958121e9aa19e36b5b6bb9b6
84639e6aa9 [Php83] Add support +/- value on constant on AddTypeToConstRector (#5694)
2024-03-05 22:49:19 +00:00
Tomas Votruba daa84a6ddf Updated Rector to commit 10c7bc6a4114dddde311e49efcd9c441ea92babc
10c7bc6a41 [Performance][Php81] Ensure check readonly on param only on __construct() method (#5693)
2024-03-05 11:36:28 +00:00
Tomas Votruba ae1f64a7a0 Updated Rector to commit e29b97e4b5d6dd5a0c5ee442067cb52f7dbb7f25
e29b97e4b5  [Php81] Handle with attribute on ReadOnlyPropertyRector on property promotion (#5692)
2024-03-05 11:28:48 +00:00
Tomas Votruba b05ad66b87 Updated Rector to commit 104f656edd312203d24db4cbe60bd54b78c421f8
104f656edd [Performance] [TypeDeclaration] No need check parent method when method is private on AddVoidReturnTypeWhereNoReturnRector (#5690)
2024-03-05 01:17:56 +00:00
Tomas Votruba de9745c9cb Updated Rector to commit 7f9113531a256794a5e598663644897ba108d9a2
7f9113531a [Php80] Fix typo class name: DoctrineCoverterterAttributeDecorator -> DoctrineConverterAttributeDecorator (#5689)
2024-03-04 22:12:31 +00:00
Tomas Votruba bd2820567f Updated Rector to commit 8c52d614891043c1310fb120e0871b4183a33a53
8c52d61489 [CodingStyle] Skip anonymous class on MakeInheritedMethodVisibilitySameAsParentRector (#5688)
2024-03-04 21:33:44 +00:00
Tomas Votruba 9c449858d7 Updated Rector to commit 7df4894bc7bd1bec704f8e428efb768d101e8984
7df4894bc7 [Performance][DeadCode] Early check has private methods before find() on dynamic call checks on RemoveUnusedPrivateMethodRector (#5687)
2024-03-04 17:14:34 +00:00
Tomas Votruba 6fc08102f7 Updated Rector to commit b4212ed99d3aadc3ce6371c984b644b54252752e
b4212ed99d [Performance] Combine repetitive find() usage on RemoveUnusedVariableAssignRector (#5686)
2024-03-04 14:03:11 +00:00
Tomas Votruba 4fdf5d4ab4 Updated Rector to commit b523b734e052b47d756330e7deeaa68372fbd494
b523b734e0 [Configuration] Fix parallel config always replaced by next config per-default true (#5683)
2024-03-03 20:46:43 +00:00
Tomas Votruba 7596fa6da0 Rector 1.0.2 2024-03-03 12:32:31 +00:00
Tomas Votruba 3a69e0ff7b Updated Rector to commit 1ae68446ee021d88238f915bc06201559a0ec82d
1ae68446ee Update README to use the new config syntax (#5674)
2024-03-03 02:43:03 +00:00
Tomas Votruba 769ac36c32 Updated Rector to commit 1cd83bef6196e8b8913d2252a6c8a826bafcf62a
1cd83bef61 [CodeQuality] Handle array destructuring of unpack on ArrayMergeOfNonArraysToSimpleArrayRector (#5682)
2024-03-03 02:33:19 +00:00
Tomas Votruba c34bb45766 Updated Rector to commit 2846b015388fb1eb6d65941481fe9340908c1f79
2846b01538 [CodeQuality] Skip combine var with property fetch on InlineArrayReturnAssignRector (#5681)
2024-03-03 02:19:56 +00:00
Tomas Votruba 659d1a42fb Updated Rector to commit c591bd291650ab22554ffd819e76d01a1a405719
c591bd2916  [CodeQuality] Skip nested array on InlineArrayReturnAssignRector  (#5680)
2024-03-03 02:09:46 +00:00
Tomas Votruba 1dbac6e2a3 Updated Rector to commit ce70534b3c8406164f630acbe6c7a1b18623d757
ce70534b3c Fix duplicated fixture class name on StaticToSelfStaticMethodCallOnFinalClassRector test (#5679)
2024-03-03 01:08:26 +00:00
Tomas Votruba 6986e1fbdb Updated Rector to commit c9fe3caacced982e1c21d7203e9ea0f1bb2092c8
c9fe3caacc [Transform] Allow transform phpVersion() to withPhpVersion() on RectorConfigBuilderRector (#5678)
2024-03-03 01:03:16 +00:00
Tomas Votruba d31429d029 Updated Rector to commit dea2e16665cf567c20664c7ef9bac38d0d7d4f49
dea2e16665 [PHP 8.0] Fix case insenstive false positive replacement for str_ends_with (#5677)
2024-03-02 13:08:36 +00:00
Tomas Votruba 991980cf2b Updated Rector to commit 7191fae140cc8c35a699b6487117e1efa8b4d2f5
7191fae140 Test auto commit after update github actions (#5676)
2024-03-01 20:06:48 +00:00
Tomas Votruba 695c190be3 Updated Rector to commit 94b5561ca87ee6825a098c7c506b774582bf3354
94b5561ca8 chore: bump min version of github actions (fix deprecations) (#5675)
2024-03-01 20:02:28 +00:00
Tomas Votruba 42b37a76a2 Updated Rector to commit 827992ae9784abb4a2a5f5f3aecbe52606f3c737
827992ae97 [Performance] [DeadCode] Early check no params in __construct() on RemoveUnusedPromotedPropertyRector (#5672)
2024-02-28 15:52:40 +00:00
Tomas Votruba e7800d7a95 Updated Rector to commit c57c164bae7c97212384f5120857bddfee329a7d
c57c164bae [CodeQuality] Handle crash on named arg on deep closure on OptionalParametersAfterRequiredRector (#5671)
2024-02-28 14:45:00 +00:00
Tomas Votruba dc6d59d8bb Updated Rector to commit 4a2811d0be372ef590c253a493f49bbb6745b524
4a2811d0be [Naming] Handle crash with numeric-string doc on RenamePropertyToMatchTypeRector (#5670)
2024-02-28 12:35:38 +00:00
Tomas Votruba d148fa379c Updated Rector to commit 8b1a181c243346b1c47c50f3e4513b117ebebc9d
8b1a181c24 [DeadCode] Skip implements interface __construct() on RemoveUnusedPromotedPropertyRector (#5669)
2024-02-28 11:20:28 +00:00
Tomas Votruba e8cdd78f11 Updated Rector to commit 04e62d38cd1f1a0e01d8efc19b19b384cd8726e6
04e62d38cd Revert " [Php81] Skip execution operator on NullToStrictStringFuncCallArgRect…" (#5668)
2024-02-28 01:07:46 +00:00
Tomas Votruba 4da7518a07 Updated Rector to commit b95ff29edfb93a3f6d0abc62a89b4a5362838f17
b95ff29edf  [Php81] Skip execution operator on NullToStrictStringFuncCallArgRector  (#5667)
2024-02-27 18:31:13 +00:00
Tomas Votruba d24ee522ce Updated Rector to commit a56ee1ed01bbbdae515b49fe4d820f219208f768
a56ee1ed01 [DeadCode] Fix infinite loop on RemoveDeadStmtRector + RemoveUnusedVariableAssignRector (#5666)
2024-02-27 12:11:43 +00:00
Tomas Votruba 3240f9e962 Updated Rector to commit 58abec4c5663a5d92ac6cd0a2eef6aace80ab408
58abec4c56 [automated] Apply Coding Standard (#5665)
2024-02-25 00:28:21 +00:00
Tomas Votruba 740fedd8a5 Updated Rector to commit 74a7c51d383b8ad5c6adb10cd67fe5f7f8ff290d
74a7c51d38 [automated] Re-Generate Nodes/Rectors Documentation (#5664)
2024-02-25 00:28:09 +00:00
Tomas Votruba b02be823eb Updated Rector to commit b6f5a0392d90d8f8b7f6fc42db896fdc3562d2d8
b6f5a0392d [Php83] add type to final class constant (#5662)
2024-02-24 01:20:55 +00:00
Tomas Votruba cd427d527e Updated Rector to commit 3ef3e35c45970bce4000f45f9c1cb651f078c5a0
3ef3e35c45 [Php71] Skip re-assign as string on AssignArrayToStringRector part 2 (#5661)
2024-02-23 19:28:49 +00:00
Tomas Votruba dcd788c4dd Updated Rector to commit 2d1f468bc6e41bc84dc273c8ac94033b60761a76
2d1f468bc6 [Privatization] Skip with suffix "TestCase" on FinalizeTestCaseClassRector (#5660)
2024-02-23 13:06:33 +00:00
Tomas Votruba 94501442a5 Updated Rector to commit d754bec5f11ce2d37928901c6998e1cc62e6f20d
d754bec5f1  [Php71] Skip re-assign as string on AssignArrayToStringRector  (#5659)
2024-02-23 10:03:16 +00:00
Tomas Votruba 5f3655eae9 Updated Rector to commit f5a45a5aeb6e5e1264d546e55dbd8880046b36ce
f5a45a5aeb [BetterPhpDocParser] Clean up unnecessary create new ConstFetchNode() on ArrayItemClassNameDecorator (#5658)
2024-02-22 14:12:04 +00:00
Tomas Votruba c0bc2824b0 Updated Rector to commit b9ea5fd9961997cecbd872cb345e88de582d6aca
b9ea5fd996 [PostRector] Skip remove use statement on used in annotation on removeUnusedImports() (#5657)
2024-02-22 12:50:50 +00:00
Tomas Votruba e08ae92529 Updated Rector to commit fb312e00c38b17b096a7257151a4ec0571cd8607
fb312e00c3 [PHPStanStaticTypeMapper] Avoid double \ prefix on IntersectionTypeMapper (#5656)
2024-02-22 10:08:06 +00:00
Tomas Votruba 5c2a81061c Updated Rector to commit 18a8aecd13cbe87766c38de95dcba08673493d3a
18a8aecd13 [TypeDeclaration] Adds AddParamTypeForFunctionLikeWithinCallLikeArgDeclarationRector rule (#5547)
2024-02-22 09:09:42 +00:00
Tomas Votruba 08cec1591e Updated Rector to commit 4951accb91a39af88d3903930112f2752e497076
4951accb91 [Renaming] New Rule: RenameFunctionLikeParamWithinCallLikeArgRector (#5554)
2024-02-22 09:08:40 +00:00
Tomas Votruba adbf03fcec Updated Rector to commit f9b3312035a4e5baee7105b19715d057587e1f59
f9b3312035 [TypeDeclaration] Include MockObject&ClassName docblock with IntersectionTypeNode on TypedPropertyFromStrictSetUpRector (#5655)
2024-02-22 08:46:08 +00:00
Tomas Votruba e8568e6d97 Updated Rector to commit 8038ee15844b7753e5698bd42b62669d9ebca12b
8038ee1584 [TypeDeclaration] Skip possible returns false on ReturnTypeFromStrictNewArrayRector (#5654)
2024-02-21 20:27:59 +00:00
Tomas Votruba 9ae89c0674 Updated Rector to commit 6095e3216f057fbf8dded18cf982bfab034f8086
6095e3216f  [TypeDeclaration] Allow abs() to return int when pass int arg on ReturnTypeFromStrictTypedCallRector (#5653)
2024-02-21 19:55:12 +00:00
Tomas Votruba 283153802a Updated Rector to commit 99a79f8df18f4202f7c939b7996b9714abb78fe4
99a79f8df1 [TypeDeclaration] Fix abs() returns on ReturnTypeFromStrictTypedCallRector (#5652)
2024-02-21 16:18:55 +00:00
Tomas Votruba dc98feb11d Updated Rector to commit 290926cc8b93331dd715d7ea061847dafbc1821a
290926cc8b  [Util] Make consistent new line splitter to Util  (#5651)
2024-02-21 15:30:52 +00:00
Tomas Votruba d7100344be Updated Rector to commit 7e741fee0551af70bb6b3f45c95905fdf9d618ce
7e741fee05 Keep comments in annotations when converting them to attributes (#5650)
2024-02-21 15:17:39 +00:00
Tomas Votruba 194c0359f1 Updated Rector to commit a4445df500e51deb893319e180c3fbdf64e8dc25
a4445df500 Cleanup scope check on UnreachableStatementNodeVisitor (#5648)
2024-02-21 08:05:42 +00:00
Tomas Votruba c6cecac9f8 Updated Rector to commit 3b44873d14db5c15a33147bc6aa395e95ec17def
3b44873d14 [Renaming] Handle crash on RenameFunctionRector with die() and $_SESSION part 2 (#5647)
2024-02-21 07:47:43 +00:00
Tomas Votruba 4461c6c31d Updated Rector to commit 00876daa5dbda14d26b36b8c4365362b7e1cb7ac
00876daa5d [Renaming] Handle crash on RenameFunctionRector with die() and $_SESSION usage (#5646)
2024-02-20 20:26:25 +00:00
Tomas Votruba bf8ee68288 Updated Rector to commit 29562ce48e265fbd75bf13df5e6662af76a44846
29562ce48e [VendorLocker] Early return false on private method on ParentClassMethodTypeOverrideGuard::hasParentClassMethod() (#5644)
2024-02-20 19:00:33 +00:00
Tomas Votruba 7569719db8 Updated Rector to commit 381ecb376283095a82809fd319eae0cfd237165a
381ecb3762 Fix future note (#5643)
2024-02-20 16:24:11 +00:00
Tomas Votruba 1281d2f6ab Updated Rector to commit 522668e4edce544bcb17ba3d71182629df19fd95
522668e4ed [Performance] [VendorLocker] Early allow change return type on private method on ClassMethodReturnTypeOverrideGuard::shouldSkipClassMethod() (#5642)
2024-02-20 16:01:20 +00:00
Tomas Votruba c2f97b2f3a Updated Rector to commit 23179d00859ca75e0b2e1ceff61bba93a9558806
23179d0085 [Transform] Allow transform fileExtensions() to withFileExtensions() (#5641)
2024-02-20 15:50:51 +00:00