Commit Graph

4154 Commits

Author SHA1 Message Date
Tomas Votruba
65abab80de Updated Rector to commit 5c1be93b80c3f7bfd8bd158ba0a55501a7acaefc
5c1be93b80 PHP 8.2 is supported (#3717)
2023-05-01 01:36:32 +00:00
Tomas Votruba
107da04b98 Updated Rector to commit 08d93e01b9341fdea9a22f52dc5fbce542c62245
08d93e01b9 [automated] Apply Coding Standard (#3713)
2023-04-30 00:40:55 +00:00
Tomas Votruba
4ba18f5a6a Updated Rector to commit 28712b9f9c756a69fec7ca52f53a5549a55a5113
28712b9f9c [Naming] Improve performance by using findFirst() for casted to (bool) on BreakingVariableRenameGuard (#3703)
2023-04-29 04:13:11 +00:00
Tomas Votruba
9a8a2a24dd Updated Rector to commit 31f64cc2d45491304065e2f04343900110005a19
31f64cc2d4 [Php56][Php70][Php74] Handle infinite loop on AddDefaultValueForUndefinedVariableRector+IfToSpaceshipRector+ClosureToArrowFunctionRector (#3701)
2023-04-28 13:29:51 +00:00
Tomas Votruba
73330a66b6 Updated Rector to commit b3e269603f8d7162c906b2409497624661baa559
b3e269603f [Renaming] Prevent overly greed type resolving in RenamePropertyRector (#3700)
2023-04-28 11:58:31 +00:00
Tomas Votruba
2c70f375ca Updated Rector to commit 7d16e3d57e8942a535551e9c7d8725fc91329993
7d16e3d57e [Renaming] Improve performance of RenamePropertyRector (#3698)
2023-04-28 10:31:03 +00:00
Tomas Votruba
d73b4dcf29 Updated Rector to commit 92a992ef6e5c5350a0e6de2b4e844e21f072fb1b
92a992ef6e [NodeManipulator] Clean up AssignManipulator take 2 (#3696)
2023-04-28 10:15:23 +00:00
Tomas Votruba
a4e6a42d08 Updated Rector to commit 14b6073057861d5547610084eb59a7b1826d2ad8
14b6073057 [CodeQuality] Using local variable  on NarrowUnionTypeDocRector (#3697)
2023-04-28 09:53:28 +00:00
Tomas Votruba
259585c967 Updated Rector to commit ea454bb871796a2e9aaf48e3d842c92245809818
ea454bb871 [Renaming] Improve performance of RenameFunctionRector (#3699)
2023-04-28 05:49:18 +00:00
Tomas Votruba
f9b7772a69 Updated Rector to commit 9b4f6003c8b6a015cc34ff536e1c2ee1c80f07b0
9b4f6003c8 [TypeDeclaration] Add do { } while support on WhileNullableToInstanceofRector (#3682)
2023-04-25 07:13:07 +00:00
Tomas Votruba
701d429812 Updated Rector to commit 2efca7308210405e65198d44a7521f84940fdd21
2efca73082 [TypeDeclaration] Handle regression multiple params no longer working on AddMethodCallBasedStrictParamTypeRector (#3681)
2023-04-24 17:11:45 +00:00
Tomas Votruba
d13bb4f126 Updated Rector to commit 52e213f80055305f3d1d46caf967c9834de09e24
52e213f800 [TypeDeclaration] Handle infinite loop on array_reverse with index on AddMethodCallBasedStrictParamTypeRector on php8+ feature (#3678)
2023-04-24 11:51:04 +00:00
Tomas Votruba
a93a36635a Updated Rector to commit fb89e317c52fb8a16e2db18edb80172adb17014e
fb89e317c5 [TypeDeclaration] Add WhileNullableToInstanceofRector (#3680)
2023-04-24 11:18:26 +00:00
Tomas Votruba
6becad5a83 Updated Rector to commit 26bd7485f3168e92e8e4dd7c7d81d816241454bf
26bd7485f3 [Test] Remove PropertyRenameFactoryTest.php (#3679)
2023-04-24 09:28:11 +00:00
Tomas Votruba
8f2079c8ca Updated Rector to commit 10c36b08fa0c980bd31b3059cafa12610852ebdd
10c36b08fa [Test] Rename fixture and refactor to solve random error (#3677)
2023-04-24 03:09:16 +00:00
Tomas Votruba
dbf153e6a3 Updated Rector to commit 54663e7124c3d9b138007c52a6f64e6393edb104
54663e7124 Minor ParamTypeFromStrictTypedPropertyRector improvements (#3661)
2023-04-23 06:13:24 +00:00
Tomas Votruba
ec5e44e489 Updated Rector to commit 61f2c4288bc6027fcdb347ace448d0936bbdcda4
61f2c4288b [TypeDeclaration] Handle mix InlineHTML on FileWithoutNamespace (#3648)
2023-04-22 08:33:24 +00:00
Tomas Votruba
30c4c5527a Updated Rector to commit c203b601c98f4a93236c82179a2e9a5a519b48ae
c203b601c9 [Php80] Handle crash leaveNode() returned invalid value of type integer on TokenGetAllToObjectRector (#3644)
2023-04-21 15:28:50 +00:00
Tomas Votruba
3e22fca2fe Updated Rector to commit add55824f64b4b597a6b3bc3feb9a557708ace00
add55824f6 Fix SingleInArrayToCompareRector if array item is variadic (#3640)
2023-04-21 12:00:51 +00:00
Tomas Votruba
fc866d1d8d Updated Rector to commit ae99f13c3bb546659ee87450de554585a6c7974c
ae99f13c3b [Performance] Using cheap chekc first on UndefinedVariableResolver::shouldSkipVariable() (#3643)
2023-04-21 07:33:09 +00:00
Tomas Votruba
d784926da7 Updated Rector to commit 79a630987e9afffb7edda0380099472b04f2e211
79a630987e [Performance] Using findFirst() for cast to (bool) so no need search all found nodes (#3642)
2023-04-21 04:11:14 +00:00
Tomas Votruba
d4a0c8ebe6 Updated Rector to commit 8425c9090832424c6c93638af5c71592151e92d6
8425c90908 [Php56][Php70] Handle infinite loop on TernaryToNullCoalescingRector+AddDefaultValueForUndefinedVariableRector (#3639)
2023-04-20 13:50:26 +00:00
Tomas Votruba
1cb1664849 Updated Rector to commit f08216fc30ced0d29868a18cd1c2504a1a10ecd0
f08216fc30 [CodeQuality] Skip with break on SwitchTrueToIfRector (#3634)
2023-04-20 00:27:18 +00:00
Tomas Votruba
9c020977b6 Updated Rector to commit f453969311462cd11987768ae1b2843f38cadcb3
f453969311 [TypeDeclaration] Using negation on BinaryOr on BinaryOpNullableToInstanceofRector (#3633)
2023-04-20 00:20:55 +00:00
Tomas Votruba
37ad4fbc43 Updated Rector to commit a4c1d7e481d426cb82d5a5bf89bfcac21deb3764
a4c1d7e481 [TypeDeclaration] Add BinaryOpNullableToInstanceofRector (#3631)
2023-04-19 11:05:06 +00:00
Tomas Votruba
203f525759 Updated Rector to commit e3e51469627756e976a8b8afb718d77caad3a0c4
e3e5146962 [CodingStyle] Handle inner closure on FuncGetArgsToVariadicParamRector (#3630)
2023-04-19 07:14:37 +00:00
Tomas Votruba
4980a45b0b Updated Rector to commit 581fba01dfcc247be5dcec00903b72739b7eca6d
581fba01df [Php55] Add StaticToSelfOnFinalClassRector (#3629)
2023-04-19 07:12:58 +00:00
Tomas Votruba
f00ddc261c Updated Rector to commit 14cc7d49406c55acd1ce7e83c7cddd23b9fd12a2
14cc7d4940 [TypeDeclaration] Allow multiple declare on DeclareStrictTypesRector (#3628)
2023-04-18 11:12:39 +00:00
Tomas Votruba
f924c3de30 Updated Rector to commit 0dfc92f16f7d3d21a21ae5e6f6abb21467fb48da
0dfc92f16f Add declare strict_types rule, finally 🥳 (#3619
2023-04-17 15:47:09 +00:00
Tomas Votruba
4febb1e4a1 Updated Rector to commit 4f6de3f84ecb50aba2643f4b38dcfce6e04e1f4a
4f6de3f84e ReadOnlyPropertyRector: do cheaper checks first (#3618)
2023-04-16 10:42:58 +00:00
Tomas Votruba
9263d6613a Updated Rector to commit 195bb62accb975904892da79996ccfb61eda34cd
195bb62acc [DeadCode] Add early return check to RemoveUnusedNonEmptyArrayBeforeForeachRector (#3611)
2023-04-14 08:11:59 +00:00
Tomas Votruba
52b2dda9f2 Updated Rector to commit f81f92cffa59603401e98b51cce2943cc47eddac
f81f92cffa [CodingStyle] Skip inside readonly class on AddArrayDefaultToArrayPropertyRector (#3612)
2023-04-13 14:10:48 +00:00
Tomas Votruba
ab279ddabc Updated Rector to commit edf54c85b6aadaecf064b797d340953697e0ca74
edf54c85b6 [Instanceof] Add FlipNegatedTernaryInstanceofRector (#3610)
2023-04-13 10:40:34 +00:00
Tomas Votruba
c65ab46563 Updated Rector to commit 5ea7727cfd05ece95fa8730576360e58148b3d56
5ea7727cfd [DeadCode] Skip RemoveDuplicatedArrayKeyRector on ++index or --index  (#3606)
2023-04-11 04:16:20 +00:00
Tomas Votruba
f6fb04983f Updated Rector to commit 951e9f9643fcfde430aa5784596454838c6c8cb0
951e9f9643 [DeadCode] Skip used as assign var next on RemoveJustPropertyFetchRector (#3605)
2023-04-10 23:58:01 +00:00
Tomas Votruba
da7c61a9a9 Updated Rector to commit ebc2e7efa17d9871cc5d9b90a81c41d504a214db
ebc2e7efa1 Add new rule to remove function calls (#3524)
2023-04-10 08:19:12 +00:00
Tomas Votruba
9b3b24049e Updated Rector to commit 83eef32f504c089d81d801d26a0355632bdc46b5
83eef32f50 [EarlyReturn] Reduce next attribute usage on ChangeAndIfToEarlyReturnRector (#3597)
2023-04-09 03:06:57 +00:00
Tomas Votruba
3f1c0e6187 Updated Rector to commit 9629890a306844ba49ea6689d58fbecb67a7980e
9629890a30 Use isInteger() (#3593)
2023-04-09 00:51:38 +00:00
Tomas Votruba
2300088c0b Updated Rector to commit 08660ad7077c86c3c86e7d1cbd14d9d7d71cb450
08660ad707 Use isFloat() (#3594)
2023-04-09 00:39:59 +00:00
Tomas Votruba
a03a19aeca Updated Rector to commit 273e4b43f1dbe84d426f4db5ab7ea9b0b1fea190
273e4b43f1 Use isBoolean() (#3591)
2023-04-08 16:37:58 +00:00
Tomas Votruba
679f8a6710 Updated Rector to commit 0389ec89d79713b46f280cc6f028783c1d4e48b8
0389ec89d7 Improve ArraySpreadInsteadOfArrayMergeRector (#3568) (#3589)
2023-04-08 16:24:17 +00:00
Tomas Votruba
7025ec875c Updated Rector to commit 64cca7759d28f2dc0d17acdf55eb10779818726c
64cca7759d [DeadCode] Improve RemoveUnusedNonEmptyArrayBeforeForeachRector with && (#3587)
2023-04-08 14:11:59 +00:00
Tomas Votruba
470e7f2c55 Updated Rector to commit a6ca5a0e8429d8c1423916c07ba5e72efdeafd44
a6ca5a0e84 Re-apply isVoid() (#3574) (#3586)
2023-04-08 14:00:36 +00:00
Tomas Votruba
3da290e4ab Updated Rector to commit dbb0e196a43d8c14a9de6abeef8fe081e95c51c2
dbb0e196a4 Revert all is* changes (#3584)
2023-04-08 13:25:07 +00:00
Tomas Votruba
9d60770133 Updated Rector to commit e66317aeb276bb0b544e7b4b55057c9dab5fbb73
e66317aeb2 fix cs (#3579)
2023-04-08 11:32:12 +00:00
Tomas Votruba
aaddfe2522 Updated Rector to commit 59cdfc8d814b094bffd814f4679c828cd45c7ec9
59cdfc8d81 Use isInteger() (#3571)
2023-04-08 01:19:54 +00:00
Tomas Votruba
e7c7a40197 Updated Rector to commit 437cc5aa660262603343cdbb193e0a54abf9037e
437cc5aa66 Use isBoolean() (#3570)
2023-04-08 01:12:35 +00:00
Tomas Votruba
5f5a4162ce Updated Rector to commit 7611dcb05adda44fb14a228574481b3f79d0b9d5
7611dcb05a Use isVoid() (#3574)
2023-04-08 01:08:03 +00:00
Tomas Votruba
be3c7cb235 Updated Rector to commit 46301c10a803d2b6727270a738e8c9c297b0b10c
46301c10a8 Use isFloat() (#3572)
2023-04-08 00:59:02 +00:00
Tomas Votruba
3ff4433fbb Updated Rector to commit 073f2d62a5beb49e270b2eab2433b60adb974cb6
073f2d62a5 Improve ArraySpreadInsteadOfArrayMergeRector (#3568)
2023-04-07 08:37:53 +00:00