4523 Commits

Author SHA1 Message Date
Tomas Votruba
6e8d9f01fe Updated Rector to commit 9ff238819b2cfed103b30766d2c0e33135abed38
9ff238819b apply cs
2023-06-29 10:02:47 +00:00
Tomas Votruba
bbcd259217 Updated Rector to commit 6947eb7c4cf8cefe0e7a4cb95bbae23ab64362bd
6947eb7c4c [NodeTypeResolver] Only use FileWithoutNamespaceNodeTraverser once on NodeScopeAndMetadataDecorator (#4369)
2023-06-27 20:26:20 +00:00
Tomas Votruba
a3231bb81d Updated Rector to commit 40a1f34b12c548f7be05f02a084be54e8374a58a
40a1f34b12 [Naming] Remove parent lookup on UseImportsResolver (#4367)
2023-06-27 17:32:34 +00:00
Tomas Votruba
8264d403d3 Updated Rector to commit b408d9e7cdec8dadcee766681b8bd8185da55097
b408d9e7cd Skip argument if value equals default value (#4368)
2023-06-27 15:24:30 +00:00
Tomas Votruba
d90547ba8c Updated Rector to commit 14d5c18788067f9f75fe234071814aabf42c41b1
14d5c18788 Fix just assigned variable in InlineArrayReturnAssignRector (#4363)
2023-06-27 10:06:39 +00:00
Tomas Votruba
ff810186aa Updated Rector to commit a653146486eea313a569bd84a19e6ebaec7015d9
a653146486 avoid including copiler extension stub
2023-06-27 09:04:22 +00:00
Tomas Votruba
2528c0753a Updated Rector to commit 5e20015ec5d8002b9a11f8bfa7c70f4f2a5b5c5d
5e20015ec5 [Php81] Skip named constructor on ReadOnlyPropertyRector (#4359)
2023-06-27 06:35:24 +00:00
Tomas Votruba
9da21b49dc Updated Rector to commit 52a5b7d9482d52d1fa8b8cbe87bd43eaff68da30
52a5b7d948 [Renaming] Reduce parent check early on ClassRenamer (#4355)
2023-06-26 19:09:51 +00:00
Tomas Votruba
4bb7391372 Updated Rector to commit 715561ce71380357545db851fd44ad8b55948b6d
715561ce71 Introduces AddSensitiveParameterAttributeRector rule (#4342)
2023-06-26 18:55:49 +00:00
Tomas Votruba
cc690d6895 Updated Rector to commit 5f7e5dc030e2ec6d7b0ce279788e40b8dd2901c8
5f7e5dc030  [Php82] Do not reprint Class_ when no attribute on ReadOnlyClassRector  (#4353)
2023-06-26 16:59:37 +00:00
Tomas Votruba
ebab7418f4 Updated Rector to commit 6cc42eb33187a9b77357c1f459d724c8aa1eb4f7
6cc42eb331 [StaticTypeMapper] Remove parent attribute usage on FullyQualifiedObjectType (#4347)
2023-06-25 17:06:09 +00:00
Tomas Votruba
f7561073a3 Updated Rector to commit beca17df3f02d9a2a7800e9b238bac3b9c862498
beca17df3f [CodingStyle] Remove parent attribute on NameImporter (#4346)
2023-06-25 16:52:29 +00:00
Tomas Votruba
f835cb735b Updated Rector to commit a01259fbabdd5e7c9a5ee021b619a9305037c736
a01259fbab [CodingStyle] Reduce parent attribute usage on NameImporter take 2 (#4345)
2023-06-25 16:45:19 +00:00
Tomas Votruba
46e1669e6a Updated Rector to commit 53e4e9f1e939da3cc6aa9d8c7172cd17e8550d8e
53e4e9f1e9 [CodingStyle] Reduce parent attribute usage on NameImporter (#4344)
2023-06-25 16:22:08 +00:00
Tomas Votruba
9d08d136fd Updated Rector to commit dfef34df2f634b87afe6940cc4671018fb81e26e
dfef34df2f Bump nikic/php-parser to 4.16.0 (#4343)
2023-06-25 16:18:38 +00:00
Tomas Votruba
96b9046f78 Updated Rector to commit 8337f6fb509fffc41aaa5ab15a4e7c695a2883e1
8337f6fb50 [Renaming] Reduc parent attribute on ClassRenamer take 2 (#4341)
2023-06-25 10:07:16 +00:00
Tomas Votruba
03d30f2c86 Updated Rector to commit 0efdd58b4d0fcc06e66841c7b7235724e8d6bedf
0efdd58b4d  [Renaming] Reduce parent attribute on ClassRenamer take 1  (#4340)
2023-06-25 09:59:06 +00:00
Tomas Votruba
9ce469b35c Updated Rector to commit f5a5780031301ae8678d92c28ca537bf70951498
f5a5780031 [CodeQuality] Use AbstractRector on ForeachItemsAssignToEmptyArrayToAssignRector (#4336)
2023-06-24 09:24:54 +00:00
Tomas Votruba
aa8fe10881 Updated Rector to commit e80557a0c438d589759e9bb1c2026ebedaba401e
e80557a0c4  [CodeQuality] Skip not regex on SimplifyRegexPatternRector  (#4322)
2023-06-22 19:58:23 +00:00
Tomas Votruba
6d1a7ecf0c Updated Rector to commit 5370b722f8802f82ead12b12b2e3988f40192718
5370b722f8 [Php81] Remove cast check on NullToStrictStringFuncCallArgRector (#4320)
2023-06-22 19:01:05 +00:00
Tomas Votruba
4c49964fc9 Updated Rector to commit 5c1fd4e0e38ad79fa64669ae8ba3ba6fb64cf051
5c1fd4e0e3 [Naming] Remove BreakingVariableRenameGuard::isUsedInIfAndOtherBranches() to remove previous by types (#4319)
2023-06-22 18:08:32 +00:00
Tomas Votruba
7a6a298311 Updated Rector to commit b6650fa8bebfc08299b4075f4c8d9cce1a4c072d
b6650fa8be [ScopeNestingComparator] Remove ScopeNestingComparator to remove parent lookup (#4316)
2023-06-22 16:15:01 +00:00
Tomas Votruba
7f7ffb52f5 Updated Rector to commit 11796980f4d5cc4c2b07d765fdef097697d40708
11796980f4 [TypeDeclaration] Skip once typed and else return array_map() on ReturnTypeFromStrictTypedCallRector (#4312)
2023-06-21 16:13:15 +00:00
Tomas Votruba
f41e5dc13b Updated Rector to commit df459e711ae5bd8f359df40fbef863cc386bf107
df459e711a Handle AlwaysRememberedExpr in deep Expr (#4310)
2023-06-21 09:44:12 +00:00
Tomas Votruba
3c275c29fd Updated Rector to commit 3ed219bb2fb0f598e09ecc061655a97f28a77454
3ed219bb2f [Php71] Add Closure support on AssignArrayToStringRector (#4303)
2023-06-20 09:52:55 +00:00
Tomas Votruba
0b8bae3feb Updated Rector to commit f4f9d5c771017ccf1ca99f30efcdb0e71ebcc22c
f4f9d5c771 [Php71] Remove parent lookup on AssignArrayToStringRector (#4302)
2023-06-20 08:50:04 +00:00
Tomas Votruba
577f0343f5 Updated Rector to commit 57e2712bd04d491826cc60afa9e003c54e8add96
57e2712bd0 Move AddMethodParentCallRector to Symfony Rector (#4301)
2023-06-20 08:35:19 +00:00
Tomas Votruba
6dd50a6e2f Updated Rector to commit 9b9321c27ebda491718fbc6a857f01128368f054
9b9321c27e Add bitwise or to NumericReturnTypeFromStrictScalarReturnsRector (#4299)
2023-06-20 08:04:52 +00:00
Tomas Votruba
93731bf2a6 Updated Rector to commit 41184e16830061a819fbdcaaac89a8312805e124
41184e1683 Skip divide in NumericReturnTypeFromStrictScalarReturnsRector (#4298)
2023-06-19 22:12:23 +00:00
Tomas Votruba
6ea944db62 Updated Rector to commit cc70ba969346bcf459d4105cf5f2da5be8bc247c
cc70ba9693 [TypeDeclaration] Extend NumericReturnTypeFromStrictScalarReturnsRector (#4297)
2023-06-19 21:48:46 +00:00
Tomas Votruba
a32e799655 Updated Rector to commit eaf68d45ead20912a9658dc5006f463e1063334a
eaf68d45ea [TypeDeclaration] Add NumericReturnTypeFromStrictScalarReturnsRector (#4296)
2023-06-19 21:00:27 +00:00
Tomas Votruba
a9747ba209 Updated Rector to commit 78475f89ad4c6e06ad1ed1a7c94858e52cfa63b3
78475f89ad  [CodeQuality] Remove parent lookup on LocalPropertyAnalyzer  (#4295)
2023-06-19 20:14:17 +00:00
Tomas Votruba
81bbd7dc72 Updated Rector to commit 9e3849f2260a0072f9427cd314db2c276c461ce2
9e3849f226 [Naming] Remove parent lookup on VariableAndCallAssignMatcher (#4294)
2023-06-19 19:54:45 +00:00
Tomas Votruba
296985db95 Updated Rector to commit 70287f1c96f3814ceb544491d03baae3c03f8d65
70287f1c96 [Naming] Remove parent lookup on ForeachMatcher (#4293)
2023-06-19 19:32:10 +00:00
Tomas Votruba
8bb866241c Updated Rector to commit 253b4f6e866fbdcd7381d22ea84f17005b233bfb
253b4f6e86 [CodeQuality] Remove parent lookup on ForeachItemsAssignToEmptyArrayToAssignRector (#4292)
2023-06-19 18:40:02 +00:00
Tomas Votruba
f9aed43e7b Updated Rector to commit 9e8925edfd766a78d2cc20684863899d64df9586
9e8925edfd [TypeDeclaration] Remove parent attribute on ObjectTypeSpecifier (#4290)
2023-06-19 17:26:32 +00:00
Tomas Votruba
6ea61fb33b Updated Rector to commit d9f02cadebe0cb3b9ec43be05e000805f31bcb18
d9f02cadeb [Php55] Clean up FullyQualified assigned to FullyQualified on StringClassNameToClassConstantRector (#4284)
2023-06-19 15:33:20 +00:00
Tomas Votruba
30d2bb9a83 Updated Rector to commit 4b05faa06d30e8d3f47fb3c3b37dad8548ae5230
4b05faa06d [Php55][NodeTypeResolver] Handle crash on dynamic variable concat assign on StringClassNameToClassConstantRector (#4283)
2023-06-19 14:17:25 +00:00
Tomas Votruba
4d62037b71 Updated Rector to commit 0893df020e01529a72933efee0c085752e24c4d2
0893df020e Skip rewindable generator (#4282)
2023-06-19 11:00:56 +00:00
Tomas Votruba
852d73ba40 Updated Rector to commit ad41e8a6cf9c319bc25ef3d6b6b47643edc76499
ad41e8a6cf [CodeQuality][Performance] Reduce repetitive NodeTypeResolver->getType() on ExprBoolCaster (#4279)
2023-06-18 14:30:25 +00:00
Tomas Votruba
09e844dec2 Updated Rector to commit c8e7963c048c61053f98c2aaa5690891cecc884e
c8e7963c04 [CodeQuality][Performance] Using STOP_TRAVERSAL in traverseNodesWithCallable() in LocallyCalledStaticMethodToNonStaticRector (#4278)
2023-06-18 14:04:18 +00:00
Tomas Votruba
b326a57561 Updated Rector to commit 805b7b7d39fcd989873452ddbbd57e2a76150022
805b7b7d39 [Performance] Do not traverse current and children on context check Break_ and If_ (#4271)
2023-06-18 06:22:16 +00:00
Tomas Votruba
a80b7eaeaf Updated Rector to commit 3d07c26d3efc4c0c16cbbe1fb347114e0178cc5e
3d07c26d3e [Php70] Remove parent lookup for Break_ inside Switch_ on BreakNotInLoopOrSwitchToReturnRector (#4269)
2023-06-18 05:21:33 +00:00
Tomas Votruba
950bd50ad1 Updated Rector to commit 392898c5de7e25ceeb83072eb951939ddf1c7150
392898c5de [Performance] Remove NODES_TO_MATCH constant on RemoveNonExistingVarAnnotationRector (#4267)
2023-06-18 03:50:55 +00:00
Tomas Votruba
fba1230ae5 Updated Rector to commit 0d9828f9d90ee0dd4b50f759c150575785cce6b8
0d9828f9d9 [automated] Apply Coding Standard (#4265)
2023-06-18 00:34:36 +00:00
Tomas Votruba
f157e8fdfc Updated Rector to commit d036eeb6e6a09eed0286272da58299a90c818675
d036eeb6e6 [TypeDeclaration] Remove parent lookup on AllAssignNodePropertyTypeInferer (#4264)
2023-06-17 20:36:34 +00:00
Tomas Votruba
a0d8cc6508 Updated Rector to commit 8550c092de01d1167d95922a77490c282f3154d5
8550c092de [Ast] Use ClassLikeAstResolver directly when possible (#4262)
2023-06-17 19:37:05 +00:00
Tomas Votruba
084bcaaa18 Updated Rector to commit ad65e0445c0a68393d7031067f095ea9f8b1cbde
ad65e0445c [CodingStyle] Remove parent lookup on ShortNameResolver (#4260)
2023-06-17 18:24:04 +00:00
Tomas Votruba
d3f1b27d37 Updated Rector to commit 96dc30676a52c8c1b66b664bcdd76b88f5540514
96dc30676a [Performance] Remove findFirst on AliasUsesResolver and UsedImportsResolver (#4259)
2023-06-17 18:02:56 +00:00
Tomas Votruba
38260ff6c5 Updated Rector to commit 8cb7e850459ec7c5685e718a772a5c89db5700c2
8cb7e85045 [CodingStyle] Remove parent lookup on AliasUsesResolver (#4257)
2023-06-17 16:01:00 +00:00