16352 Commits

Author SHA1 Message Date
Tomas Votruba
830b50116f Updated Rector to commit 951fb8be8f890b118b87858d45afc93f2cd9a29c
951fb8be8f [DX] Remove findParentType() method (#4438)
2023-07-08 20:40:11 +00:00
Tomas Votruba
47fc2f5153 Updated Rector to commit 651616a14b47aadfd467da1dded6c420f1ef3f01
651616a14b [NodeTypeResolver] Reduce parent lookup on ParamTypeResolver (#4435)
2023-07-08 14:38:41 +00:00
Tomas Votruba
811311089b Updated Rector to commit 6daf93e54524b24be9b2d79edca98d97b6c2ae32
6daf93e545 [NodeAnalyzer] Remove find first previous on CallAnalyzer (#4434)
2023-07-07 16:13:45 +00:00
Tomas Votruba
4666787179 Updated Rector to commit 83a9221d6baa56dc6fc009db45db18f8b4ea63c8
83a9221d6b [NodeAnalyzer] Mark Variable as non-refreshable MutatingScope on ScopeAnalyzer (#4433)
2023-07-07 10:34:54 +00:00
Tomas Votruba
beaa6639c6 Updated Rector to commit ce207419aafa6effb8e2812408c09b1d8e9b874c
ce207419aa [DX] Lower parent node dependency in VariableToConstantGuard (#4430)
2023-07-06 22:39:41 +00:00
Tomas Votruba
d53aabefd9 Updated Rector to commit 1d0feb251132d3b766945bc80d8f914c5279277f
1d0feb2511 [DX] Lower readonly PropertyManipulator complexity (#4429)
2023-07-06 21:07:00 +00:00
Tomas Votruba
e3e96f6f96 Updated Rector to commit 3962227709fda9312f07d6a516a1ee405b392489
3962227709 [NodeTypeResolver] Reduce duplicated Scope fill on FuncCall (#4428)
2023-07-06 20:17:30 +00:00
Tomas Votruba
7f5bbceea9 Updated Rector to commit 3962227709fda9312f07d6a516a1ee405b392489
3962227709 [NodeTypeResolver] Reduce duplicated Scope fill on FuncCall (#4428)
2023-07-06 18:53:30 +00:00
Tomas Votruba
ef629ad2ed Updated Rector to commit 3962227709fda9312f07d6a516a1ee405b392489
3962227709 [NodeTypeResolver] Reduce duplicated Scope fill on FuncCall (#4428)
2023-07-06 15:20:15 +00:00
Tomas Votruba
d071e69583 Updated Rector to commit 3962227709fda9312f07d6a516a1ee405b392489
3962227709 [NodeTypeResolver] Reduce duplicated Scope fill on FuncCall (#4428)
2023-07-06 14:24:46 +00:00
Tomas Votruba
92a790ae25 Updated Rector to commit a4ef13b30cfd2ee5a02f547256673064d648c558
a4ef13b30c [NodeAnalyzer] Check statementDepth on Stmt, and expressionDepth on Expr on ScopeAnalyzer (#4425)
2023-07-05 17:31:36 +00:00
Tomas Votruba
4ded5a660a Updated Rector to commit 9df1445de8c8cb5eed5a85446628226f9b03ed76
9df1445de8 [DX] Remove SimplifyForeachToArrayFilterRector as it turns typed functions to string and make code worse (#4424)
2023-07-05 15:32:48 +00:00
Tomas Votruba
8c7b0e1592 Updated Rector to commit 14790b408cc616842ab25084c23c91cdd83559a1
14790b408c [NodeTypeResolver] Remove ArrayItem scope filling from Array_ and Name filling for Catch types on PHPStanNodeScopeResolver (#4423)
2023-07-05 12:35:10 +00:00
Tomas Votruba
67e1d2d61c Updated Rector to commit 3fa4bec792258ae18bf56c665d5ec3fa4938d475
3fa4bec792 [Renaming] Remove Scope filling from Name node on PHPStanNodeScopeResolver for RenameClassRector (#4422)
2023-07-05 12:18:11 +00:00
Tomas Votruba
e534d832ec Updated Rector to commit b4ff32ef246fe2c36351701995759ee4fc21f370
b4ff32ef24 [TypeDeclaration] Remove aliased object type from MethodCall/StaticCall on ObjectTypeSpecifier (#4421)
2023-07-05 09:25:45 +00:00
Tomas Votruba
64593b7175 Updated Rector to commit 77b0bb7080b3f3e01e1fc8cdac2908c7b490a9d0
77b0bb7080 [NodeTypeResolver][Performance] Using instanceof instead of is_string() check on Node visitors (#4420)
2023-07-04 15:43:39 +00:00
Tomas Votruba
59c58750fa Updated Rector to commit b353e704c81dd3a9bd78f82bc571153c3023b471
b353e704c8 [Performance] Improve check has unreachable statement node NodeScopeAndMetadataDecorator  take 3 (#4419)
2023-07-04 14:54:28 +00:00
Tomas Votruba
da9114bcbb Updated Rector to commit cd3d327988ac60ed5ec725bafe51b4c670e56ec1
cd3d327988 Revert "[Performance] Immediate remove UnreachableStatementNodeVisitor object after traverse to avoid re-use in next file (#4417)" (#4418)
2023-07-04 14:40:22 +00:00
Tomas Votruba
abbf3c7b97 Updated Rector to commit fb0ae6dd929596556c2e7454068ecdec5e326378
fb0ae6dd92 [Performance] Add $hasUnreachableStatementNode flag on PHPStanNodeScopeResolver to ensure execute UnreachableStatementNodeVisitor only when it has (#4416)
2023-07-04 13:33:50 +00:00
Tomas Votruba
7251a47b0d Updated Rector to commit 93a4b2b15eec15c506ae55c25b23a40dd0390cff
93a4b2b15e [NodeTypeResolver] Remove parent attribute on PHPStanNodeScopeResolver for after UnreachableStatementNode detector (#4415)
2023-07-04 08:36:47 +00:00
Tomas Votruba
1f28e1c52a Updated Rector to commit 708cc4fb49562e19a98849abd50216048b1f48ba
708cc4fb49 [TypeDeclaration] Handle crash on no namespace with + operation on DeclareStrictTypesRector (#4414)
2023-07-03 17:30:02 +00:00
Tomas Votruba
d16d5ab29c Updated Rector to commit 3bd0e9faa5e015df82ccf511e248b5ca3d168b33
3bd0e9faa5  [DeadCode] Skip used as closure on RemoveUnusedPrivateMethodRector  (#4413)
2023-07-03 16:48:28 +00:00
Tomas Votruba
f40dc9ec2a Updated Rector to commit 3aed20ef6677602ae7a5d164be8bbdee291da4ce
3aed20ef66 [DX] Make use of SimpleParameterProvider::provideStringParameter() (#4410)
2023-07-03 15:07:34 +00:00
Tomas Votruba
54dbeae92c Updated Rector to commit ddc3d946366d72d91ef608b08ccd6f3e17eed830
ddc3d94636 [DX] Make use of SimpleParameterProvider::provideIntParameter() (#4409)
2023-07-03 15:00:57 +00:00
Tomas Votruba
e055ea60b8 Updated Rector to commit 2502fe2e92aa8fcee621b2aa3eb2a1cfdf2b0621
2502fe2e92 [Php82] Skip extends unknown class on ReadonlyClassRector (#4408)
2023-07-03 14:56:15 +00:00
Tomas Votruba
ecece488c5 Updated Rector to commit 011f7e5e7d5390b456d3bb91848c12f94baf7b71
011f7e5e7d [DX] Make use of SimpleParameterProvider (#4406)
2023-07-03 14:46:51 +00:00
Tomas Votruba
493a57e478 Updated Rector to commit df5a7bbfbf4e01f4b485603bacab0f1fd807b7f7
df5a7bbfbf [DX] Kick of SimpleParameterProvider (#4405)
2023-07-03 13:55:43 +00:00
Tomas Votruba
2d92d14602 Updated Rector to commit 265f3ac2eca7287556b176ea428fa5f36fdef93c
265f3ac2ec Fix NumericReturnTypeFromStrictScalarReturnsRector for non-natively-typed parameters (#4380)
2023-07-03 08:34:34 +00:00
Tomas Votruba
63da13d421 Updated Rector to commit 4a0008452981d918b6590b82cf8f2577b3aa8171
4a00084529 [automated] Apply Coding Standard (#4402)
2023-07-02 00:37:53 +00:00
Tomas Votruba
a5a4164e0f Updated Rector to commit 6a53d48a8cdde9c40751ed2b294758dab8fb4d6f
6a53d48a8c [Renaming] Handle crash on catch Exception name on RenameClassRector (#4401)
2023-07-01 23:26:53 +00:00
Tomas Votruba
e28ac0cec4 Updated Rector to commit 222569c781584f6c6f76968ab3e2557c58983af3
222569c781 [NodeAnalyzer] Remove parent attribute on ScopeAnalyzer (#4400)
2023-07-01 23:02:38 +00:00
Tomas Votruba
d403caf40e Updated Rector to commit 66a9bcff33fce09aff972693263c04cc4cdd3604
66a9bcff33 [EarlyReturn] Remove findFirstNext() on InvertedIfFactory (#4399)
2023-07-01 17:58:08 +00:00
Tomas Votruba
b083f2427f Updated Rector to commit 6e90cc741ca2e6d94fe485fd01c085a7641d5d93
6e90cc741c [ReadWrite] Remove parent attribute usage on ReadWritePropertyAnalyzer (#4398)
2023-07-01 15:51:11 +00:00
Tomas Votruba
6aada686fa Updated Rector to commit 5944b6d6a998a6ee854b699f5a8541bdc8a17818
5944b6d6a9 [NodeManipulator] Reduce parent check on PropertyManipulator (#4397)
2023-07-01 14:21:21 +00:00
Tomas Votruba
d769492469 Updated Rector to commit b8129b47429c5686a82e6a3753b24e49706384b3
b8129b4742 [NodeTypeResolver] Remove param type context on ContextNodeVisitor (#4396)
2023-07-01 13:54:24 +00:00
Tomas Votruba
872db0f1a4 Updated Rector to commit 9f6e80e2901da6caf3c77c4b7cb06cb384042238
9f6e80e290 [StaticTypeMapper] Remove parent attribute usage on FullyQualifiedNodeMapper (#4395)
2023-07-01 13:47:28 +00:00
Tomas Votruba
4ac2f7ee3a Updated Rector to commit 51cc0678a8da0b27b7dcc33706fc32d192e565ca
51cc0678a8 [NodeManipulator] Remove parent attribute usage on AssignManipulator (#4394)
2023-07-01 13:10:36 +00:00
Tomas Votruba
2d175bf66e Updated Rector to commit 07859a15a3d53652689a6226de9a7cb09c4b89ee
07859a15a3 [ReadWrite] Remove parent attribute usage on JustReadExprAnalyzer (#4393)
2023-07-01 12:50:16 +00:00
Tomas Votruba
ea79543156 Updated Rector to commit 38f4ad787ead53fc4e1c44c1a53ae17c3b6bf53a
38f4ad787e Remove commited temp_10fe18f2bd3524e99ff8_phpstan-for-rector.neon file (#4391)
2023-07-01 11:12:12 +00:00
Tomas Votruba
1dc3d74b09 Updated Rector to commit 2161084bd7920506db4484aa0d07a62ccdd3ec04
2161084bd7 [DeadCode] Skip non typed param numeric check on RecastingRemovalRector (#4390)
2023-07-01 10:50:27 +00:00
Tomas Votruba
33dbc6506f Updated Rector to commit db5f778f9f9fd94fe1271ce8fc3ef4c156fd88ad
db5f778f9f [NodeAnalyzer] Remove parent lookup on ExprAnalyzer::isNonTypedFromParam() (#4389)
2023-07-01 10:16:51 +00:00
Tomas Votruba
6981c70c9a Updated Rector to commit 9ed8c21b127cdd45a28307d5fc41668f867f4ef4
9ed8c21b12 [DeadCode] Remove findFirstPrevious() usage on UselessIfCondBeforeForeachDetector (#4388)
2023-07-01 09:41:56 +00:00
Tomas Votruba
1d37efe8d7 Updated Rector to commit 8c9d630a27e6b3c3b76b31bd8ce96db14c7e8800
8c9d630a27 [ReadWrite] Reduce parent lookup on ReadWritePropertyAnalyzer (#4387)
2023-06-30 19:13:32 +00:00
Tomas Votruba
6ce9445bdc Updated Rector to commit 8040759d5fff1d9f9e5ca933dedad256d16bc571
8040759d5f [TypeDeclaration] Skip guarded by parent on StrictArrayParamDimFetchRector (#4386)
2023-06-30 18:35:54 +00:00
Tomas Votruba
9718cf02a8 Updated Rector to commit 5a91bde755a1906e932d8346466c98101a31ec02
5a91bde755 [DX] Make autowired commands with tags (#4385)
2023-06-30 16:53:55 +00:00
Tomas Votruba
687d1218b1 Updated Rector to commit 8324cf427656e1d81f8c0e782885ca65bf592481
8324cf4276 [TypeDeclaration] Add StrictArrayParamDimFetchRector (#4384)
2023-06-30 16:33:30 +00:00
Tomas Votruba
5db0586b82 Updated Rector to commit 205df9013af5e05034441aa6088599532f5fef05
205df9013a [TypeDeclaration] Add Encapsed string support to AlwaysStrictScalarExprAnalyzer (#4382)
2023-06-30 11:59:36 +00:00
Tomas Votruba
f77ffbaf00 Updated Rector to commit 205df9013af5e05034441aa6088599532f5fef05
205df9013a [TypeDeclaration] Add Encapsed string support to AlwaysStrictScalarExprAnalyzer (#4382)
2023-06-30 10:58:35 +00:00
Tomas Votruba
48f3d4f73c Updated Rector to commit 3c823c71fe33485a439af676f6ea3ed100b06faa
3c823c71fe Remove duplicate ReturnNeverTypeRector rule (#4381)
2023-06-30 10:36:30 +00:00
Tomas Votruba
0529f61c4f Updated Rector to commit 93a279d3658fea5d56670bb63ff41df3b2b481f3
93a279d365 Cleanup test fixtures for NumericReturnTypeFromStrictScalarReturnsRector (#4379)
2023-06-30 08:38:54 +00:00