Commit Graph

1045 Commits

Author SHA1 Message Date
Tomas Votruba
649f0f5ffb Updated Rector to commit caf08c4efa0c3351a9d899e568ded816bacd1993
caf08c4efa Skip `__construct()` in BoolReturnTypeFromStrictScalarReturnsRector (#5133)
2023-10-06 09:33:45 +00:00
Tomas Votruba
1c164a642f Updated Rector to commit 8cab945ae45b651cdf66c8bfbb1603c514733896
8cab945ae4 The ReturnTypeFromReturnNewRector must only handle new instances, to avoid leaking to everything (#5115)
2023-10-04 13:14:06 +00:00
Tomas Votruba
3c946b60af Updated Rector to commit 6a89b43080ca6f349322af160b15bf0814d40cb6
6a89b43080 [TypeDeclaration] Remove AstResolver usage on ReturnedNodesReturnTypeInfererTypeInferer (#5108)
2023-10-02 23:27:49 +00:00
Tomas Votruba
671f50c702 Updated Rector to commit ee715396945596fffb158ff8278749feb01ea01a
ee71539694 [NodeTypeResolver] Use isScalar()->yes() usage on StaticTypeAnalyzer and ScalarTypeComparator services (#5099)
2023-10-01 01:36:35 +00:00
Tomas Votruba
95d1af621f Updated Rector to commit 640a49bb8dded439c57723ea4d047f1c9782b78f
640a49bb8d move collectors to src/Collector namespace for easy discovery, add MockedClassCollector (#5055)
2023-09-30 09:19:11 +00:00
Tomas Votruba
d7242c6a67 Updated Rector to commit 0c0e5eeb4fd337d98f27224d0b46bfd310405dfd
0c0e5eeb4f AddParamTypeBasedOnPHPUnitDataProviderRector: Enhance existing rule to handle PHPUnit 10+ DataProvider Attribute (#4925)
2023-09-30 09:01:28 +00:00
Tomas Votruba
f642d08e09 Updated Rector to commit 41235b8c7c52b0ba77872c2f04921685569c3b6e
41235b8c7c [Core] Deprecate AbstractRector staticTypeMapper, use dependency directly when needed (#5091)
2023-09-29 12:48:57 +00:00
Tomas Votruba
d2a4c3c81b Updated Rector to commit 801d367f34aff122d69072dda92a7a34211f815b
801d367f34 AddParamTypeBasedOnPHPUnitDataProviderRector: Check all data providers (#5068)
2023-09-29 07:28:16 +00:00
Tomas Votruba
4b8fc3fb05 Updated Rector to commit e698133cad1a85f2384a6cf450d66c54df1876a2
e698133cad [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5053)
2023-09-20 12:55:35 +00:00
Tomas Votruba
3827f75ecd Updated Rector to commit 23d429233d37af0d743b4d4dc622828c704d2d2f
23d429233d [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5052)
2023-09-20 12:53:23 +00:00
Tomas Votruba
b2b3a0f5cc Updated Rector to commit 33fa6262970128e964fc4099d88d9a7369828e1a
33fa626297 [DX] Make PhpDocInfoFactory explicitly required in Rector rule constructor, if needed (#5051)
2023-09-20 12:41:26 +00:00
Tomas Votruba
3a35226590 Updated Rector to commit 5ee831f533cf97bc985b381cfd067122e2a479d2
5ee831f533 [TypeDeclaration] Add return static property support on ReturnTypeFromStrictTypedPropertyRector (#5050)
2023-09-19 13:48:46 +00:00
Tomas Votruba
db78ff1331 Updated Rector to commit 76611f69af76327be04538df7b8c568600ac58c0
76611f69af Deprecate TypedPropertyFromStrictConstructorReadonlyClassRector as based on docblock and public elements; use private elements and property promotion instead (#5049)
2023-09-19 13:45:02 +00:00
Tomas Votruba
4ea05c5a5f Updated Rector to commit e530fc1e1a98faa22509115e79de5e5f2997208d
e530fc1e1a Introducing Collectors - final step 🥳  - processing collected data + test case (#4970)
2023-09-19 11:53:28 +00:00
Tomas Votruba
65c9e5396a Updated Rector to commit 2cf8d837421963a540d2cf6e3b42702b1a8ae09e
2cf8d83742 [TypeDeclaration] Handle fallback from param same type object on ReturnTypeFromReturnNewRector (#5039)
2023-09-18 06:15:34 +00:00
Tomas Votruba
dc61ee1240 Updated Rector to commit 8ba3d90ba430782c8e9bba135411260df802df3e
8ba3d90ba4 EmptyOnNullableObjectToInstanceOfRector: skip phpdoc (#5034)
2023-09-17 07:02:22 +00:00
Tomas Votruba
6942fe920b Updated Rector to commit 780c5afe7b1623fe23e6c198665f692275fe798e
780c5afe7b [automated] Apply Coding Standard (#5031)
2023-09-17 00:30:04 +00:00
Tomas Votruba
c33ef2a625 Updated Rector to commit e6d5d3620448b27bce7d080c9832558e2f6cdf38
e6d5d36204 [CodeQuality]: Skip PHPDoc (#5027)
2023-09-16 08:08:56 +00:00
Tomas Votruba
d8dbb74079 Updated Rector to commit 5b423425e584112ae7a02a6e7236c667cd5aedd0
5b423425e5 TypedPropertyFromStrictConstructorRector: Skip phpdoc types (#5020)
2023-09-14 17:09:03 +00:00
Tomas Votruba
3c6c1c03f8 Updated Rector to commit a2f70054a7d976acd2c73b06789095b998829be6
a2f70054a7 [DocBlock] Update docblock contents right in the rule (#4999)
2023-09-11 21:30:42 +00:00
Tomas Votruba
f73bcd4ef8 Updated Rector to commit c97e4ffb0534d388b5f51508491916f54d3f342a
c97e4ffb05 [Naming] Remove matchesStringName() check completely from NodeNameResolver, including endsWith() method - use getName() and compare directly instead (#4954)
2023-09-09 22:49:40 +00:00
Tomas Votruba
6adcb19ec9 Updated Rector to commit 474b3a222684b9c343ba6b43ea5bd39b78fbef2a
474b3a2226 Faster name resolving (#4955)
2023-09-09 18:18:18 +00:00
Tomas Votruba
4ae2dfa94e Updated Rector to commit 2be5a4d4928468b981079704bd0946764a6a1ec3
2be5a4d492 Simplify AlwaysStrictScalarExprAnalyzer (#4935)
2023-09-07 12:50:04 +00:00
Tomas Votruba
e30fbabf27 Updated Rector to commit b47adb55f7f7940987078fbe77f5222577a429b4
b47adb55f7 [TypeDeclaration] Add non native function return support on ReturnTypeFromStrictScalarReturnExprRector (#4934)
2023-09-07 11:28:19 +00:00
Tomas Votruba
030adf9f7d Updated Rector to commit eebc3ce703e0d57794c1dd1823457b272e02403d
eebc3ce703 [TypeDeclaration] Ensure ArrayType on ReturnTypeFromStrictNewArrayRector::shouldAddReturnArrayDocType() (#4932)
2023-09-07 04:43:51 +00:00
Tomas Votruba
549a072c08 Updated Rector to commit fa28385f9b46b0119073fb4209762fce23f8c09a
fa28385f9b Refactor BetterNodeFinder::findFirstInFunctionLikeScoped() to work with SilentVoidResolver (#4931)
2023-09-07 04:03:06 +00:00
Tomas Votruba
94613faf8f Updated Rector to commit 54799fc3d3a341643d050d06ecf72b467c8d37e8
54799fc3d3 [TypeDeclaration] Skip return after return closure on AddVoidReturnTypeWhereNoReturnRector (#4930)
2023-09-07 02:10:00 +00:00
Tomas Votruba
087ff4d5eb Updated Rector to commit e47f63176a7913ff040bfbce75a260a4ec47ceab
e47f63176a [TypeDeclaration] Add init assign method call support on ReturnTypeFromStrictNewArrayRector (#4929)
2023-09-07 01:50:05 +00:00
Tomas Votruba
73ca9074e0 Updated Rector to commit 2a697f79ecd82e4b59091f59927d8b9315113c18
2a697f79ec [TypeDeclaration] Add fallback return direct array support on ReturnTypeFromStrictNewArrayRector (#4928)
2023-09-06 19:40:05 +00:00
Tomas Votruba
f36a223be4 Updated Rector to commit aee42009d91dfdca128760fc4b37e09e101db23f
aee42009d9 AddVoidReturnTypeWhereNoReturnRector: fix never type handling (#4918)
2023-09-06 13:12:52 +00:00
Tomas Votruba
51c70b1a6e Updated Rector to commit eca01b375a62cca2d79ee5a1a7fff1795f3cba11
eca01b375a Trigger Rectify (#4924)
2023-09-06 12:41:35 +00:00
Tomas Votruba
7866e76540 Updated Rector to commit 15e924988caf800caffddf1906da948138daf44b
15e924988c Faster SilentVoidResolver (#4923)
2023-09-06 12:33:43 +00:00
Tomas Votruba
01bdd5bff5 Updated Rector to commit c17181453c5493f1ef2e43206759f12d715c18df
c17181453c [TypeDeclaration] Add append in loop support on ReturnTypeFromStrictNewArrayRector (#4922)
2023-09-06 12:12:53 +00:00
Tomas Votruba
3cee45fd42 Updated Rector to commit 0d2cdf0c48e4c0608ff4189e176c66aee92c820c
0d2cdf0c48 [TypeDeclaration] Use $type->isScalar()->yes() on AlwaysStrictScalarExprAnalyzer (#4920)
2023-09-06 11:44:15 +00:00
Tomas Votruba
752381df77 Updated Rector to commit c4ea636dcfb0a87f7fa7a7214e80ed98dac2444d
c4ea636dcf [TypeDeclaration] Add return empty string defined support on ReturnTypeFromStrictScalarReturnExprRector (#4919)
2023-09-06 11:35:48 +00:00
Tomas Votruba
4c7551da27 Updated Rector to commit aa7282195caab5889ee067ca3fb5eda62f26ed1b
aa7282195c [TypeDeclaration] Add return static object support on ReturnTypeFromStrictFluentReturnRector (#4916)
2023-09-05 17:03:27 +00:00
Tomas Votruba
dbdeb211ce Updated Rector to commit 6d009ccad0aacd102fdacba00eb59b32a1104582
6d009ccad0 [TypeDeclaration] Add return self object support on ReturnTypeFromStrictFluentReturnRector (#4915)
2023-09-05 15:48:41 +00:00
Tomas Votruba
2ae279bf07 Updated Rector to commit 093bcb63a19db3fcdab8264897c584212d755463
093bcb63a1 [CodeQuality] Add NumberCompareToMaxFuncCallRector (#4914)
2023-09-05 13:21:31 +00:00
Tomas Votruba
491915e31b Updated Rector to commit 5595f80ed176f93485f50ff6dabad79cedbb72dc
5595f80ed1 Update github actions/checkout from v3 to v4 (#4909)
2023-09-04 14:00:44 +00:00
Tomas Votruba
c5dca33b93 Updated Rector to commit 5919201e137b5ed041eebdf891ff2bada22fddb1
5919201e13 StrictArrayParamDimFetchRector: Skip objects (#4907)
2023-09-04 10:32:52 +00:00
Tomas Votruba
bbc92f1719 Updated Rector to commit 824bb97770867b1584fa7c2398d0d59b7cd4f36e
824bb97770 [TypeDeclaration] Skip mixing native + docblock union assign on TypedPropertyFromAssignsRector (#4905)
2023-09-04 07:41:42 +00:00
Tomas Votruba
326e84f967 Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
7078b51a7c [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890)
2023-09-01 11:10:35 +00:00
Tomas Votruba
3d97937140 Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
7078b51a7c [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890)
2023-08-31 16:33:28 +00:00
Tomas Votruba
62fe44207e Updated Rector to commit 56c84ba714b135a36e7e95fdf53f406b1411461e
56c84ba714 [TypeDeclaration] Do not add default value when assigned in __construct() on TypedPropertyFromStrictGetterMethodReturnTypeRector (#4886)
2023-08-31 11:38:41 +00:00
Tomas Votruba
a3ea8375c9 Updated Rector to commit 4b0a688b8117689c243adc1c8dd18e9512673428
4b0a688b81 [TypeDeclaration] skip variadic constructor param of mixed type on AddParamTypeFromPropertyTypeRector (#4887)
2023-08-31 10:36:02 +00:00
Tomas Votruba
25e5fba435 Updated Rector to commit cf69407e2ff3402abb8a939d79f326f59121b2b4
cf69407e2f Fix missing default string in TypedPropertyFromStrictGetterMethodReturnTypeRector (#4885)
2023-08-31 08:41:20 +00:00
Tomas Votruba
97f92edab1 Updated Rector to commit 6424bae725296eb72307e5f4902715ea41dad3ba
6424bae725 [TypeDeclaration] Using ClassMethodReturnTypeOverrideGuard on ReturnTypeFromStrictParamRector (#4878)
2023-08-29 16:52:48 +00:00
Tomas Votruba
fbd33e5f98 Updated Rector to commit 45aababfbcf23f7ab3765376d6f04a3aee113e8a
45aababfbc [TypeDeclaration] Add new array replaced with array on ReturnTypeFromStrictNewArrayRector (#4825)
2023-08-21 09:37:33 +00:00
Tomas Votruba
a3856d782f Updated Rector to commit 4a869b9b104dc81adef4441025787c0c3411d4d6
4a869b9b10 bump PHPUnit printer to optional (#4826)
2023-08-21 09:28:35 +00:00
Tomas Votruba
def86c6e48 Updated Rector to commit 45aababfbcf23f7ab3765376d6f04a3aee113e8a
45aababfbc [TypeDeclaration] Add new array replaced with array on ReturnTypeFromStrictNewArrayRector (#4825)
2023-08-21 09:28:31 +00:00