5385 Commits

Author SHA1 Message Date
Tomas Votruba
8d7c7faf2f Updated Rector to commit 417b208b58da94040e01c5f9629ae33db472df78
417b208b58 [TypeDeclaration] Add TypedPropertyFromCreateMockAssignRector (#6177)
2024-07-23 17:11:54 +00:00
Tomas Votruba
cecbffbf7d Updated Rector to commit b0c89a98a0eb4a62d3141d950484d6e3ea7fdbda
b0c89a98a0 fix: Convert DateTime to Carbon properly when hours/minutes/seconds are used (#6176)
2024-07-23 16:05:22 +00:00
Tomas Votruba
d35c1aa009 Updated Rector to commit 938f4a2a24ec32f7ee9e9447abad7f37b1046d3f
938f4a2a24 [TypeDeclaration] Update fixture and example method name (#6171)
2024-07-22 09:24:17 +00:00
Tomas Votruba
85fe52c53a Updated Rector to commit ecdb0d4e3528ad9ea921678b0a0d69455da7fde6
ecdb0d4e35 [TypeDeclaration] Skip possible void and return by docblock on ReturnTypeFromMockObjectRector (#6170)
2024-07-22 00:24:31 +00:00
Tomas Votruba
0591dbc6c0 Updated Rector to commit 623bbf66a6ac2f652af0f14e7bd9fad4075d3d12
623bbf66a6 [TypeDeclaration] Add missing usage of ClassMethodReturnTypeOverrideGuard on ReturnTypeFromMockObjectRector (#6169)
2024-07-21 23:42:47 +00:00
Tomas Votruba
f64c7ac2e1 Updated Rector to commit 31724aa46e628a479ea78ae22e9ff88213509e66
31724aa46e [Scoper] Fix prefixed MockObject on ReturnTypeFromMockObjectRector (#6167)
2024-07-21 23:05:10 +00:00
Tomas Votruba
2ec758b3bc Updated Rector to commit 5eb07c4285a12d1e6275fad54311b11930bcd818
5eb07c4285 [TypeDeclaration] Add ReturnTypeFromMockObjectRector (#6166)
2024-07-21 22:31:48 +00:00
Tomas Votruba
701eed2be7 Updated Rector to commit 6f3881cb854aad227039563fe013be7a0ab5c911
6f3881cb85 [CodeQuality] Skip used in next stmt on UnusedForeachValueToArrayKeysRector (#6164)
2024-07-20 22:30:57 +00:00
Tomas Votruba
7c7ca2ba52 Updated Rector to commit 40121763c79be8359df16b48fd40a995c66020dc
40121763c7  [TypeDeclaration] Skip variadic on StrictArrayParamDimFetchRector  (#6163)
2024-07-20 18:56:17 +00:00
Tomas Votruba
3fd072f643 Updated Rector to commit 28027252405256321c5f01f6f9a823d288c151ee
2802725240 [DeadCode] Remove unnecessary print variable to detect variable variable on ExprUsedInNodeAnalyzer (#6161)
2024-07-18 21:46:37 +00:00
Tomas Votruba
fee19877db Updated Rector to commit 041279d3e87d44d8b1ce4f23af8bb4b3233b9245
041279d3e8 [DeadCode] Remove impure functions list on PureFunctionDetector (#6158)
2024-07-18 15:50:54 +00:00
Tomas Votruba
21475d5e56 Updated Rector to commit a3f0b1f21f60b21e4f357d3c7e6187b14bfa3ed2
a3f0b1f21f [TypeDeclaration] Prevent uncaught exception in ReturnTypeFromReturnNewRector (#6159)
2024-07-18 14:28:25 +00:00
Tomas Votruba
fb0c77dcfd Updated Rector to commit 687351bb53971b21c9a8a65d80578473e0d654a0
687351bb53 [TypeDeclaration] Refactor CallerParamMatcher to avoid ambigous returns usage (#6157)
2024-07-17 14:44:21 +00:00
Tomas Votruba
713958aa18 Updated Rector to commit 84be3cbd889338f30960b7042a3c6e5d767a0a94
84be3cbd88 [TypeDeclaration] Handle throw without new on on ParamTypeByMethodCallTypeRector (#6156)
2024-07-17 14:29:41 +00:00
Tomas Votruba
31438357a6 Updated Rector to commit 8416021316b34b541e4cdcf266712f3cc8704795
8416021316 [TypeDeclaration] Fix union type by multiple method calls on ParamTypeByMethodCallTypeRector (#6155)
2024-07-16 19:11:59 +00:00
Tomas Votruba
c762db2d8d Updated Rector to commit 117a5eea1a0c98c45bc4127ec6c623b9438f88be
117a5eea1a [TypeDeclaration] Fix configuration example on AddReturnTypeDeclarationRector (#6154)
2024-07-16 15:58:54 +00:00
Tomas Votruba
b5d4e71e18 Updated Rector to commit 021085d53bd131520dd69ea0c52773e63ae7d5a7
021085d53b Skip phpdoc types in NumericReturnTypeFromStrictReturnsRector (#6153)
2024-07-16 09:06:40 +00:00
Tomas Votruba
a86c4a9948 Updated Rector to commit 8b983280a817e815b0de72e02d2fe99d201c5a1c
8b983280a8  [Php80] Skip used in compact() on RemoveUnusedVariableInCatchRector  (#6152)
2024-07-15 22:59:02 +00:00
Tomas Votruba
427f73f6f7 Updated Rector to commit 36b475d84ae192f498854c796bd8246038a5bc7a
36b475d84a [TypeDeclaration] Add ConstFetch support on ReturnTypeFromStrictConstantReturnRector (#6151)
2024-07-15 22:01:05 +00:00
Tomas Votruba
2cbd10ab77 Updated Rector to commit d6de24c449d21207b50bd5342e3ddc0836a9265b
d6de24c449 [TypeDeclaration] Skip variadic on AddParamTypeBasedOnPHPUnitDataProviderRector (#6150)
2024-07-15 17:37:05 +00:00
Tomas Votruba
075bcc5773 Updated Rector to commit 07a3bdc597ce144a9ccbe370004b437d4118e0c2
07a3bdc597 [CodingStyle] Handle with trait use adaptations on SeparateMultiUseImportsRector (#6149)
2024-07-15 17:30:41 +00:00
Tomas Votruba
4fe7b62b40 Updated Rector to commit 1e7fffd0be6bd99905dff054488e967a276b8727
1e7fffd0be [Php55] Skip parse error on no concat in left in left Concat on PregReplaceEModifierRector (#6148)
2024-07-15 17:09:25 +00:00
Tomas Votruba
8349226da6 Updated Rector to commit 25b437a67243133d39aaf9579723013730b4d3f5
25b437a672 [CodeQuality] Allow change empty() to [] compare of other object property usage on SimplifyEmptyCheckOnEmptyArrayRector (#6147)
2024-07-14 20:57:32 +00:00
Tomas Votruba
e1cf6fb0cf Updated Rector to commit dc2a3cd5cec984cf53df08fba9023a6b79e78470
dc2a3cd5ce [CodeQuality] Skip multiple new lines on JoinStringConcatRector (#6141)
2024-07-13 19:54:46 +00:00
Tomas Votruba
dccef81623 Updated Rector to commit cceae2c532758efe3dfafc8151414d56aafac8c8
cceae2c532 [CodeQuality] Skip used in static Closure/ArrowFunction on LocallyCalledStaticMethodToNonStaticRector (#6139)
2024-07-12 11:53:42 +00:00
Tomas Votruba
8ae3b50fdb Updated Rector to commit eae3e2c7e9a82537b31b5ca382b7665bc4e2f5fd
eae3e2c7e9 [e2e][Printer] Handle crash indentation on AddParamBasedOnParentClassMethodRector (#6112)
2024-07-12 09:32:13 +00:00
Tomas Votruba
90fe72a634 Updated Rector to commit 2a14c30a574d0c539ba289fd1447accd4a15ee17
2a14c30a57 Fix ArrayDimFetchToMethodCallRector (#6138)
2024-07-12 08:45:18 +00:00
Tomas Votruba
6da53ce15c Updated Rector to commit 18846cb4c3052cb313619fea47c8a7b56d8e99b1
18846cb4c3 [TypeDeclaration] Skip has named arg on AddMethodCallBasedStrictParamTypeRector (#6137)
2024-07-11 14:17:27 +00:00
Tomas Votruba
5b23ce9838 Updated Rector to commit 5302c406920f5ada7538a55c129cf83863eabd74
5302c40692 [DeadCode] Remove unused @var on key after remove key on RemoveUnusedForeachKeyRector (#6135)
2024-07-09 20:23:20 +00:00
Tomas Votruba
1edceb7a20 Updated Rector to commit 0f1e8ae03e2b768166471e543a9816c8fdaea5a7
0f1e8ae03e [DeadCode] Handle same namespace param type on RemoveUselessParamTagRector (#6133)
2024-07-09 12:47:10 +00:00
Tomas Votruba
f6e296c7c2 Updated Rector to commit 18ac56ba991202762fae3deb9e7ab190b2d369e4
18ac56ba99 refactor: Move function first-class-callable to a standalone rule (#6131)
2024-07-08 13:48:56 +00:00
Tomas Votruba
7a2dda49fc Updated Rector to commit e327ee767a699eb02b898ef0f03768b6b24d127f
e327ee767a FirstClassCallableRector: link rfc (#6130)
2024-07-08 09:54:38 +00:00
Tomas Votruba
2d231b6466 Updated Rector to commit 2f86b39349f1bbd76de8bde10e4cb24bd019744e
2f86b39349 [Php82] Handle has only readonly properties but not all promoted property on ReadOnlyClassRector (#6129)
2024-07-07 16:15:29 +00:00
Tomas Votruba
838449c742 Updated Rector to commit 911f44867c56307036c167ecb0e93b2764f3cd36
911f44867c [TypeDeclaration] Skip union with yield on NumericReturnTypeFromStrictScalarReturnsRector (#6125)
2024-07-06 16:00:00 +00:00
Tomas Votruba
c2b4dc9b5e Updated Rector to commit acca1e006a8fc1eee197fc8ffa6fa5e7cc2af131
acca1e006a [TypeDeclaration] Clean up ArrowFunction check on ReturnTypeInferer (#6124)
2024-07-06 14:17:58 +00:00
Tomas Votruba
6a6b9d7674 Updated Rector to commit b563c6d57a65c531f5f50b28db1c8baa4f960ae0
b563c6d57a [Php52] Handle in deep else on ContinueToBreakInSwitchRector (#6123)
2024-07-06 09:33:04 +00:00
Tomas Votruba
35cd651a6b Updated Rector to commit 1f512caa3b3f1d4cb8b042f1db68e6e0c498c1ec
1f512caa3b note
2024-07-05 21:53:11 +00:00
Tomas Votruba
5cf7c628a2 Updated Rector to commit 8f81fe94e28f425fd5ff0956557665723d83033a
8f81fe94e2 [Php52] Handle deep if stmts on ContinueToBreakInSwitchRector (#6122)
2024-07-05 20:30:33 +00:00
Tomas Votruba
fc0db98182 Updated Rector to commit 9885970604a5a716faa55040f257a90d68f64264
9885970604 [TypeDeclaration] Skip start with shebang on DeclareStrictTypesRector (#6121)
2024-07-05 18:51:42 +00:00
Tomas Votruba
ec48ec1118 Updated Rector to commit f6844a40e3502c4e0aa8f3bb4add5728bf1a3ef5
f6844a40e3 [TypeDeclaration] Reduce double traverse on ReturnAnalyzer (#6120)
2024-07-05 12:56:24 +00:00
Tomas Votruba
3e32b82bee Updated Rector to commit 72d298f9df4fba52d9fbd0f61e06b0c69337873e
72d298f9df fix nested sample
2024-07-05 12:34:57 +00:00
Tomas Votruba
83d0c406de Updated Rector to commit 9500a3c7cab5bfafadb06eba0e53c2eae617dfe2
9500a3c7ca [TypeDeclaration] Fix inline closure type on ClosureReturnTypeRector (#6119)
2024-07-05 12:16:50 +00:00
Tomas Votruba
41c32337d5 Updated Rector to commit 842e3d5b16d02f3531b8a63dc1b5ca61bd3b08c1
842e3d5b16 [TypeDeclaration] Skip void on BoolReturnTypeFromBooleanStrictReturnsRector (#6118)
2024-07-05 11:47:45 +00:00
Tomas Votruba
be24836c68 Updated Rector to commit e63e9a22fe148c02a55817fc432a769bc5914346
e63e9a22fe [Php71] Handle not identical to Float for empty string should compare to 0.0 on BinaryOpBetweenNumberAndStringRector (#6117)
2024-07-05 07:41:28 +00:00
Tomas Votruba
b845779e98 Updated Rector to commit 3fe55534ea6c60a09d5ab1de5573f9b907a55bcf
3fe55534ea  [DeadCode] Skip fluent no return type on RemoveUnusedPrivateMethodRector take 2 (#6116)
2024-07-04 13:07:32 +00:00
Tomas Votruba
2720c63eec Updated Rector to commit 5fe7f4e12add95d0cb6d476ea9f4776492b38ed3
5fe7f4e12a Deprecate BoolReturnTypeFromStrictScalarReturnsRector, use BoolReturnTypeFromBooleanStrictReturnsRector instead (#6115)
2024-07-03 23:11:56 +00:00
Tomas Votruba
4aaedf51cb Updated Rector to commit 049f1efef6046aa7287fc129891abf3e310e4e6d
049f1efef6 Add - number support, deprecate ReturnTypeFromStrictScalarReturnExprRector functionality, already split (#6114)
2024-07-03 20:32:54 +00:00
Tomas Votruba
cd6dafbe86 Updated Rector to commit 2c1ae9bc46b3c8d31b1a45dcaac57c7d1522a8c1
2c1ae9bc46 Split StringReturnTypeFromStrictScalarReturnsRector into string, bool and numeric scalar + strict return type rules (#6113)
2024-07-03 20:14:45 +00:00
Tomas Votruba
3839c795dc Updated Rector to commit d8400c7cf1b75378603c7276c95393e2fd74c5b5
d8400c7cf1 [type-declarations] Add StringsReturnTypeFromStrictScalarReturnsRector to complete the string returns (#6111)
2024-07-03 16:42:04 +00:00
Tomas Votruba
1c29427ddb Updated Rector to commit 133c810f25c546682941c91717ce99f6787bfac7
133c810f25 [type-declarations] Add ReturnNullableTypeRector (#6110)
2024-07-03 15:34:41 +00:00