Commit Graph

876 Commits

Author SHA1 Message Date
Tomas Votruba
075297ce56 Updated Rector to commit 0af705fb570340cb0e4fbc0b9e897b09bd172f5c
0af705fb57 debug
2023-06-06 16:41:24 +00:00
Tomas Votruba
189167959e Updated Rector to commit 701278e9882f33c2977753be99b08dd7aaf93997
701278e988 Remove node removing services, cleanup (#4093)
2023-06-06 12:07:27 +00:00
Tomas Votruba
9a2931cbe4 Updated Rector to commit bdc2fc99631f67eeb2d96e2cf0906279c2561c9a
bdc2fc9963 [NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
2023-06-01 08:56:46 +00:00
Tomas Votruba
9c4d020ccb Updated Rector to commit fddbb6231342654d15bbaec2792f182881ef66fe
fddbb62313 [TypeDeclaration] Remove parent attribute on ConstructorAssignDetector (#3996)
2023-05-27 20:24:32 +00:00
Tomas Votruba
ea8041895c Updated Rector to commit ebe2a37fe2c0c387e655259548ab7a6f76b3f298
ebe2a37fe2 [Php74][Privatization] Refactor ParentPropertyLookupGuard to use ClassReflection to reduce IO (#3993)
2023-05-27 15:46:25 +00:00
Tomas Votruba
d8c877db45 Updated Rector to commit 33d05d3b9ee7838d254edf58dbd05a355891b48b
33d05d3b9e Refactor RenameVariableToMatchMethodCallReturnTypeRector to StmtsAwareInterface (#3977)
2023-05-26 14:00:49 +00:00
Tomas Votruba
3a65d40447 Updated Rector to commit a244917a428baa6fa06fabaa4e0be15fd3154e50
a244917a42 Remove PARENT_NODE from AddReturnTypeDeclarationBasedOnParentClassMethodRector (#3964)
2023-05-25 14:52:36 +00:00
Tomas Votruba
7dcc1f5c95 Updated Rector to commit 7e9ee7afbf04ede850da1639b1b234e4e86730fb
7e9ee7afbf Refactor from PARENT_NODE in AddReturnTypeDeclarationRector (#3952)
2023-05-24 13:42:05 +00:00
Tomas Votruba
06e1c20df4 Updated Rector to commit 49561b6c81580ca995de4a8a00184f6935bec7db
49561b6c81 Refactor PARENT_NODE away from ParamTypeFromStrictTypedPropertyRector (#3950)
2023-05-24 13:12:14 +00:00
Tomas Votruba
d7eced92e2 Updated Rector to commit c504b2f11f2b732a744ad804b3a4b5afc30e2841
c504b2f11f Refactor PARENT_NODE away from GetClassOnNullRector (#3944)
2023-05-24 09:36:58 +00:00
Tomas Votruba
a9dddd2b37 Updated Rector to commit fe7b5cd28f2333a07b22ddd955d693ebfbc44344
fe7b5cd28f Remove PARENT_NODE from AddVoidReturnTypeWhereNoReturnRector (#3938)
2023-05-23 14:21:41 +00:00
Tomas Votruba
1eed4009a2 Updated Rector to commit 1adea7295ddcdf79c0ee5c2859e42cbabb32f26b
1adea7295d [automated] Re-Generate Nodes/Rectors Documentation (#3909)
2023-05-21 00:34:59 +00:00
Tomas Votruba
d41cd2c891 Updated Rector to commit 6e9310b65c1139a8102ed7aab73b658ba5f97c83
6e9310b65c [automated] Apply Coding Standard (#3910)
2023-05-21 00:33:57 +00:00
Tomas Votruba
c6385617d2 Updated Rector to commit a4d6d414fb2f6ce98c792178895ab01664fab358
a4d6d414fb [TypeDeclaration] Add BoolReturnTypeFromStrictScalarReturnsRector (#3898)
2023-05-19 15:03:57 +00:00
Tomas Votruba
8ef3bb6268 Updated Rector to commit af2a06e85ea318a0a294fce64c157f6ae9887383
af2a06e85e [TypeDeclaration] Skip possible void on ReturnTypeFromReturnNewRector (#3890)
2023-05-18 21:38:08 +00:00
Tomas Votruba
39a43e0003 Updated Rector to commit f2348ae8c75cafec524ea972ff6af912e8ce7c11
f2348ae8c7 [TypeDeclaration] Add nullable property type support to PropertyTypeFromStrictSetterGetterRector (#3877)
2023-05-17 09:12:37 +00:00
Tomas Votruba
5457dd1412 Updated Rector to commit 02500aaf35f5ae96f0522a85b0173342e1da2144
02500aaf35 Remove NEXT/PREV node usage from AlwaysStrictScalarExprAnalyzer (#3872)
2023-05-16 14:24:15 +00:00
Tomas Votruba
1b8d2812ef Updated Rector to commit c8f697b16d888505c2bfbbcaba1665402091159b
c8f697b16d Remove ToStringToMethodCallRector as not practical and only for demo, FalseReturnClassMethodToNullableRector, as requires detailed custom refactoring (#3854)
2023-05-15 13:05:02 +00:00
Tomas Votruba
281f59d306 Updated Rector to commit 7f49261e293df93ac9a81dd49e59ad4abed9ed41
7f49261e29 Make ReturnNeverTypeRector work with type declaration, add it to PHP 8.1 set (#3852)
2023-05-14 22:40:25 +00:00
Tomas Votruba
da149bb5b0 Updated Rector to commit 645071a650fc50d7e084378facaebcc868a52ba1
645071a650 Add test fixture for sprintf number + make use of getArgs() to get always an Arg type (#3822)
2023-05-13 17:20:02 +00:00
Tomas Votruba
900facbf32 Updated Rector to commit 6dea82deb1e64a47c0284a86b1b448dc8b1fc05f
6dea82deb1 Drop AttributeKey::SCOPE in Rector classes (#3791)
2023-05-13 16:50:14 +00:00
Tomas Votruba
b08682957f Updated Rector to commit 0e2b39c2841b845417775936177d2425edac09d3
0e2b39c284 Improve ParamTypeFromStrictTypedPropertyRector performance (#3795)
2023-05-11 09:24:38 +00:00
Tomas Votruba
7ecc9b6c23 Updated Rector to commit 388763c1b3151fbc9f2f934b349d9a7959d5d175
388763c1b3 [TypeDeclaration] Skip Arg unpack on AddMethodCallBasedStrictParamTypeRector (#3787)
2023-05-10 09:38:23 +00:00
Tomas Votruba
39697489d4 Updated Rector to commit 5a32ed95b75b179e77c14a83a65f2eff1f1474b8
5a32ed95b7 [cleanup] Make use of getArgs(), remove ignores from phpstan.neon (#3770)
2023-05-08 10:34:06 +00:00
Tomas Votruba
fff47a3319 Updated Rector to commit e97b7f5c5631588b9651ba09ab10ce081c9ec492
e97b7f5c56 Utilize MinPhpVersionInterface in more rules (#3752)
2023-05-07 08:04:34 +00:00
Tomas Votruba
96d4917fc6 Updated Rector to commit 34eddacde286346ac36fe0862751b45ba8a76c5e
34eddacde2 Improve TypedPropertyFromAssignsRector performance (#3749)
2023-05-07 08:00:09 +00:00
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
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
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
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
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
ab279ddabc Updated Rector to commit edf54c85b6aadaecf064b797d340953697e0ca74
edf54c85b6 [Instanceof] Add FlipNegatedTernaryInstanceofRector (#3610)
2023-04-13 10:40:34 +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