17305 Commits

Author SHA1 Message Date
Tomas Votruba
d260adfd2b Updated Rector to commit 96fae07575c6c64ac7e2950388cbe07d18cbcfc5
96fae07575 Skip DateTime in ExpectedNameResolver (#5186)
2023-10-18 09:27:27 +00:00
Tomas Votruba
7949049389 Updated Rector to commit c9b0c27fa1df366ccf2213888d4351311bf82966
c9b0c27fa1 Skip new self in RenameVariableToMatchNewTypeRector (#5185)
2023-10-18 08:25:46 +00:00
Tomas Votruba
1e0199beb5 Updated Rector to commit beeba1770967a4f5e59cf21db28a5a1ccae48a2f
beeba17709 [Naming] Skip DateTime from renaming, to keep convention of named dates (#5184)
2023-10-18 08:05:23 +00:00
Tomas Votruba
079ad82aa5 Updated Rector to commit 369f16a2640c381138bc12151109047ae5759f32
369f16a264 [Downgradephp81][DowngradePhp80] Handle No scope crash on DowngradeSetAccessibleReflectionPropertyRector + DowngradeMatchToSwitchRector (#5183)
2023-10-17 05:20:09 +00:00
Tomas Votruba
2e784e585d Updated Rector to commit 11c66a7d12042656f37b27e3bba10f5b35582226
11c66a7d12 [DX] Hide worker command in list, as internal and not intended to invoke by user (#5182)
2023-10-16 20:44:04 +00:00
Tomas Votruba
5bc02b3f6b Updated Rector to commit 4a781cdb6687444ae392736c504fb2071625d75f
4a781cdb66 [Renaming] Skip nullable object object|null on RenameMethodRector (#5181)
2023-10-16 12:45:26 +00:00
Tomas Votruba
baa0c15190 Updated Rector to commit d22e71ec0196d8f0f363845db83e064b471cb07e
d22e71ec01 Revert rename + auto import remove use tweak (#5179)
2023-10-16 07:38:49 +00:00
Tomas Votruba
524a503444 Updated Rector to commit cd0c14e144f4d4ef35b4cd42751981c40023879a
cd0c14e144 Improve UnaryPlus and UnaryMinus support in isDynamicExpr (#5177)
2023-10-16 04:18:43 +00:00
Tomas Votruba
a8b90c645c Updated Rector to commit 4f50ad56d9bc8b5e54ae5c6dcd92b01bca54c927
4f50ad56d9 [DX] Sync order of PostFileProcessor dependencies (#5176)
2023-10-15 08:51:39 +00:00
Tomas Votruba
5123bfe626 Updated Rector to commit d14ec5e4b71d57fcfaec47850c61883a2a8d1969
d14ec5e4b7 [PostRector] Fix ClassRenamingPostRector return when no auto import replacement (#5175)
2023-10-15 07:19:14 +00:00
Tomas Votruba
b3f3d77384 Updated Rector to commit a9908f6498004953531a1a145a4e271fa953a3c7
a9908f6498 [PostRector] Reduce loop on ClassRenamingPostRector (#5174)
2023-10-15 04:45:43 +00:00
Tomas Votruba
3f64ea0f3f Updated Rector to commit c5d3a0e1913fb0057513dd70122d8eef4d226e1c
c5d3a0e191 [CodingStyle] Clean up check last name on UseImportsRemover (#5173)
2023-10-15 04:06:54 +00:00
Tomas Votruba
6fbeed5643 Updated Rector to commit 29370c7ddfc45c6fe29d88cfca6aa56234a76874
29370c7ddf [AutoImport] [Renaming] Skip remove used use statement on annotation during rename + auto import when no replacement on auto import (#5168)
2023-10-15 03:39:12 +00:00
Tomas Votruba
5479401552 Updated Rector to commit e2ba601e7ca2e8d602bfc2ffa36bf60a88b1a1f0
e2ba601e7c [DeadCode] Skip return false pseudo type in union on RemoveUselessReturnTagRector (#5172)
2023-10-15 02:06:32 +00:00
Tomas Votruba
41683b4c5a Updated Rector to commit 9cf016cd67a9f12ebbc7ae7aaa422626eb5722a9
9cf016cd67 [automated] Apply Coding Standard (#5171)
2023-10-15 00:29:20 +00:00
Tomas Votruba
9f158ba7a8 Updated Rector to commit da2dd66088e15a5c182a047726933306a8fdc28c
da2dd66088 RemoveUnusedNonEmptyArrayBeforeForeachRector: skip array dim fetch (#5166)
2023-10-14 13:25:46 +00:00
Tomas Votruba
4c4ad160dd Updated Rector to commit c639ef8ad9213881d4fe08554f090934bc5dda07
c639ef8ad9 RemoveUnusedNonEmptyArrayBeforeForeachRector: ignore phpdoc types (#5169)
2023-10-14 12:51:53 +00:00
Tomas Votruba
727c62f465 Updated Rector to commit d55a35bcdede830d3927de1c11e0f7f0d12ee9e4
d55a35bcde [CodeQuality] Skip magic property fetch on IssetOnPropertyObjectToPropertyExistsRector (#5163)
2023-10-13 15:56:28 +00:00
Tomas Votruba
d06e2fcb41 Updated Rector to commit 396f1989b8605b261cfdfebe45ee855e9fb70ac4
396f1989b8 [DeadCode] Skip count() on mixed on RemoveUnusedNonEmptyArrayBeforeForeachRector (#5160)
2023-10-13 14:40:44 +00:00
Tomas Votruba
16cc61e430 Updated Rector to commit 2efd6d56a9499be0a210a89cdd1883c6a21f83f8
2efd6d56a9 [DeadCode] Handle file_get_contents() only remove variable on RemoveUnusedVariableAssignRector (#5162)
2023-10-13 13:59:23 +00:00
Tomas Votruba
a7ae66acba Updated Rector to commit ff7acb4c853ebc2322dac6fff618dac8218dacb3
ff7acb4c85 [CodeQuality] Skip docblock usage on SimplifyBoolIdenticalTrueRector (#5161)
2023-10-13 13:49:39 +00:00
Tomas Votruba
6e9ac90555 Updated Rector to commit 1f0450448ed47e4778cfc88e50955f63df31f42a
1f0450448e [CodeQuality] Handle negative and positive int/float on InlineConstructorDefaultToPropertyRector (#5159)
2023-10-13 09:59:20 +00:00
Tomas Votruba
93080b5520 Updated Rector to commit b7a5fefedc9d1a32c1f238a6a8c9b89b88e7d21c
b7a5fefedc [DeadCode] Add RemoveUselessReturnExprInConstructRector (#5158)
2023-10-12 10:26:14 +00:00
Tomas Votruba
2db63eef1a Updated Rector to commit 444bc59e559a1c8b65117f992a489208946661dd
444bc59e55 [TypeDeclaration] Add Fixture tests for ClassMethodReturnTypeOverrideGuard usage on NumericReturnTypeFromStrictScalarReturnsRector  and AddReturnTypeDeclarationFromYieldsRector (#5157)
2023-10-12 01:25:49 +00:00
Tomas Votruba
950a5ddaf3 Updated Rector to commit 67250ca5556cb9550ac927ef9e48a1f3d4b9f598
67250ca555 [TypeDeclaration] Utilize ClassMethodReturnTypeOverrideGuard on AddReturnTypeDeclarationFromYieldsRector (#5156)
2023-10-11 16:04:37 +00:00
Tomas Votruba
f25beaaf93 Updated Rector to commit 668da1d020b596441b274ee6bf9d1ed763f8e43d
668da1d020 [TypeDeclaration] Utilize ClassMethodReturnTypeOverrideGuard on NumericReturnTypeFromStrictScalarReturnsRector (#5155)
2023-10-11 15:50:01 +00:00
Tomas Votruba
251ad8aeef Updated Rector to commit 0eb6000cfce746d9cf714722047a7d824d1f2dac
0eb6000cfc [DeadCode] Skip used in next For_/Foreach_ on RemoveDeadIfForeachForRector (#5154)
2023-10-11 04:48:30 +00:00
Tomas Votruba
882ff036c6 Updated Rector to commit 6d96068b0232141101c238752d0c5e80d5781f74
6d96068b02  [DeadCode] Skip key used in next stmt on RemoveUnusedForeachKeyRector  (#5153)
2023-10-10 13:08:33 +00:00
Tomas Votruba
80c4856fb5 Updated Rector to commit 6d96068b0232141101c238752d0c5e80d5781f74
6d96068b02  [DeadCode] Skip key used in next stmt on RemoveUnusedForeachKeyRector  (#5153)
2023-10-10 12:35:07 +00:00
Tomas Votruba
b70e1334d4 Updated Rector to commit 6d96068b0232141101c238752d0c5e80d5781f74
6d96068b02  [DeadCode] Skip key used in next stmt on RemoveUnusedForeachKeyRector  (#5153)
2023-10-10 11:25:01 +00:00
Tomas Votruba
970b701227 Updated Rector to commit 6cb63f3752012f33f691844906e56d1045c8bfcf
6cb63f3752 [DeadCode] Skip indirect variable definition on RemoveNonExistingVarAnnotationRector (#5152)
2023-10-10 10:46:27 +00:00
Tomas Votruba
b1be6fd9fc Updated Rector to commit ee7e92ca7b3507a2903a21bb52b9f840ae3cc2e8
ee7e92ca7b [CodeQuality] Fix missing parentheses on CombineIfRector (#5151)
2023-10-10 08:33:07 +00:00
Tomas Votruba
7aea9b9ed8 Updated Rector to commit fd04aa8db977151cc4147289c3d9b81c1ce53dcf
fd04aa8db9 [PHPStanStaticTypeMapper] Remove Doctrine\Common\Collections\Collection check on UnionTypeMapper (#5150)
2023-10-10 07:11:47 +00:00
Tomas Votruba
2dacf5e7e8 Updated Rector to commit ea3c5045da67b30727c8d9d393729c0838078505
ea3c5045da [TypeDeclaration] Handle union A extends B on ReturnUnionTypeRector (#5149)
2023-10-09 14:44:00 +00:00
Tomas Votruba
d01cef1bb1 Updated Rector to commit 48cfad804223f830e6c5138b5f19d5fefc10fc19
48cfad8042 [PHPStanStaticTypeMapper] Remove matchArrayTypes() on UnionTypeMapper (#5146)
2023-10-08 12:07:51 +00:00
Tomas Votruba
dcad64cca1 Updated Rector to commit 72373f5b302526938591b7c03c90585bd0d6eda9
72373f5b30 [PHPStanStaticTypeMapper] Remove narrow string and int on UnionTypeMapper (#5145)
2023-10-08 11:50:02 +00:00
Tomas Votruba
f41f0e0aae Updated Rector to commit 3891c8dd38fd5a6f966de3afc776b044678065f6
3891c8dd38 [TypeDeclaration] Handle Union with array type on ReturnUnionTypeRector (#5144)
2023-10-08 10:39:35 +00:00
Tomas Votruba
db98d35ea7 Updated Rector to commit 49fda93e9028c5800057d20a45ecc1ec38fab5cc
49fda93e90 Remove src/constants.php for T_ENUM and T_NAME_RELATIVE (#5143)
2023-10-08 08:15:45 +00:00
Tomas Votruba
1eb3a7a3a9 Updated Rector to commit 4d56a61025597b598a1287f76f475bb6e8f1766f
4d56a61025 [DeadCode] Remove UnionType check on RecastingRemovalRector (#5142)
2023-10-08 03:17:49 +00:00
Tomas Votruba
8b7e66c3f3 Updated Rector to commit e83c7ef0b689c36d548ae0328b4a4bcf6fcde6b8
e83c7ef0b6 [PHPStanStaticTypeMapper] Remove BoolUnionTypeAnalyzer on UnionTypeMapper (#5141)
2023-10-08 01:59:48 +00:00
Tomas Votruba
9ebd77a611 Updated Rector to commit c07a44ff93900b79cbcb981a712df0eede7980d5
c07a44ff93 [automated] Apply Coding Standard (#5140)
2023-10-08 00:29:05 +00:00
Tomas Votruba
606ba73c30 Updated Rector to commit c47b778401b0e66628b1e1d850da19ab69306e75
c47b778401 add consistentimploderector rule to php80 rules (#5139)
2023-10-07 23:21:21 +00:00
Tomas Votruba
738c193e65 Updated Rector to commit d320ac74b9bf2f19dae9405449f3253e546c318c
d320ac74b9 [PhpParser] Reduce AstResolver complexity by move check fileName is null to parseFileNameToDecoratedNodes() (#5138)
2023-10-07 10:20:38 +00:00
Tomas Votruba
ba8a9c44c4 Updated Rector to commit b29a6f80c319c6819007a604cc20b788e3abe59c
b29a6f80c3 [CodeQuality] Use its start token pos on Else_ on CompleteMissingIfElseBracketRector as no cond (#5136)
2023-10-06 21:59:20 +00:00
Tomas Votruba
16af101457 Updated Rector to commit 22bf404fbdc1fa1a01aa3075363b1a6d7414d171
22bf404fbd [CodeQuality] Handle on closure, anonymous function, method call on CompleteMissingIfElseBracketRector (#5135)
2023-10-06 21:49:08 +00:00
Tomas Votruba
b405743bb9 Updated Rector to commit dbd374ba2a2899d247d9c9e087aedf455462fffe
dbd374ba2a [CodeQuality] Handle missing bracket on If only on CompleteMissingIfElseBracketRector (#5134)
2023-10-06 19:05:34 +00:00
Tomas Votruba
417c9d5b38 Updated Rector to commit 96d061278a3bd76106bf5acc48bc4af5e0eca181
96d061278a apply cs
2023-10-06 13:03:44 +00:00
Tomas Votruba
649f0f5ffb Updated Rector to commit caf08c4efa0c3351a9d899e568ded816bacd1993
caf08c4efa Skip `__construct()` in BoolReturnTypeFromStrictScalarReturnsRector (#5133)
2023-10-06 09:33:45 +00:00
Tomas Votruba
d232b29090 Updated Rector to commit 8179073d77b744e70404ec57a02ac730a877516a
8179073d77 [CodeQuality] Skip VB style in complex HTML on CompleteMissingIfElseBracketRector (#5132)
2023-10-06 08:50:53 +00:00
Tomas Votruba
c02a263d0e Updated Rector to commit 8f4ef6ce9b4b14a86f9a525f931ace6dd96e0e5f
8f4ef6ce9b Clean up CompleteMissingIfElseBracketRector (#5131)
2023-10-06 08:31:06 +00:00