5573 Commits

Author SHA1 Message Date
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
Tomas Votruba
495bfd639d Updated Rector to commit 0fec333ff5813be7d8de6cc9295ec393b1550585
0fec333ff5 [Php70] Swap min is higher than max on RandomFunctionRector (#6109)
2024-07-03 15:21:57 +00:00
Tomas Votruba
3944af555d Updated Rector to commit eccf5022a4dfc0376d9e4ff942e43ec6f3b53c4a
eccf5022a4 [DeadCode] Skip fluent no return type on RemoveUnusedPrivateMethodRector (#6108)
2024-07-03 13:54:58 +00:00
Tomas Votruba
f0ee411314 Updated Rector to commit fd5f15c7987257b5247bc05e36a932a4cccc29cc
fd5f15c798 [TypeDeclaration] Introducing ClosureReturnTypeRector to handle closure types separately (#6106)
2024-07-03 10:47:09 +00:00
Tomas Votruba
96ee33c4c8 Updated Rector to commit da745df35d8ab8be72f648c288a1c542ed666d5f
da745df35d [TypeDeclaration] handle explicit if else new on ReturnTypeFromReturnNewRector (#6104)
2024-07-02 23:06:05 +00:00
Tomas Votruba
4e27e7bdd3 Updated Rector to commit 00a7c2a70a467ff3e37b9244c87cf0f3030479c8
00a7c2a70a ReturnUnionTypeRector now return only non-nullable types, to prepare space for new nullable rule as off PHP 7.1+ (#6105)
2024-07-02 16:02:35 +00:00
Tomas Votruba
01271feb55 Updated Rector to commit 21d6f44e00d85de072b241c82d48db7f28b549d8
21d6f44e00 Make ReturnUnionTypeRector run on PHP 8.0+ (#6103)
2024-07-02 15:09:04 +00:00
Tomas Votruba
8ae1a6e847 Updated Rector to commit f09e1bd49989ba5839a6368d2717751dab1e8827
f09e1bd499 Check root return in ReturnTypeFromReturnNewRector (#6102)
2024-07-02 13:54:37 +00:00
Tomas Votruba
23b3490cd9 Updated Rector to commit 1561c90c6b9ef040532a34afa1c2f581ad5dfbc1
1561c90c6b [DeadCode] Clean up instanceof check on RemoveDeadInstanceOfRector.php (#6096)
2024-07-01 08:18:32 +00:00
Tomas Votruba
738f33982e Updated Rector to commit ef333502fb722ef471049b492a257781d02d0d62
ef333502fb Make NameScopeFactory simpler (#6092)
2024-07-01 06:16:16 +00:00
Tomas Votruba
f3e0e28a74 Updated Rector to commit 0482641eaf933bdb7ef52a89f7064126b61366c3
0482641eaf Use class name directly in RemoveDeadInstanceOfRector (#6087)
2024-06-30 17:49:54 +00:00
Tomas Votruba
33f4d6d989 Updated Rector to commit de0dda8f29453b36bcfa3728cf26662fb634fcd1
de0dda8f29 Compare type directly in CleanupUnneededNullsafeOperatorRector (#6086)
2024-06-30 17:49:38 +00:00
Tomas Votruba
0d7785b246 Updated Rector to commit e82e643982359c05c71d0941ee9890aaac452c86
e82e643982 Remove union type mapper narrower, as no longer needed (#6081)
2024-06-30 10:21:05 +00:00