Commit Graph

1732 Commits

Author SHA1 Message Date
Tomas Votruba
e7578a4299 Updated Rector to commit 2be5a4d4928468b981079704bd0946764a6a1ec3
2be5a4d492 Simplify AlwaysStrictScalarExprAnalyzer (#4935)
2023-09-07 13:09:24 +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
e31a8c2782 Updated Rector to commit 1812281273ff14f76b8b81ab5321ee4b7e656684
1812281273 [Performance][Testing] Remove $nodeScopeResolver->setAnalysedFiles() on AbstractRectorTestCase (#4911)
2023-09-04 19:46:53 +00:00
Tomas Votruba
bdf398ef14 Updated Rector to commit 4a3627e63426e3c590ec21815621f6684ff41f87
4a3627e634 [Performance][Testing] Avoid double call FileSystem::read() on AbstractRectorTestCase (#4908)
2023-09-04 15:47:52 +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
2f2e7aff34 Updated Rector to commit d5f399eee5709932b579d41e3799c3097bbc101f
d5f399eee5 [DeadCode] Remove @return void on return self on RemoveUselessReturnTagRector (#4894)
2023-09-02 19:48:22 +00:00
Tomas Votruba
060f298712 Updated Rector to commit 65fd2014b2a4ac76f78f347c094a2a799dad7b16
65fd2014b2 Fix union type check of object (#4893)
2023-09-01 17:48:05 +00:00
Tomas Votruba
814e26534d Updated Rector to commit 65fd2014b2a4ac76f78f347c094a2a799dad7b16
65fd2014b2 Fix union type check of object (#4893)
2023-09-01 17:12:44 +00:00
Tomas Votruba
cc7b0cd56f Updated Rector to commit 65fd2014b2a4ac76f78f347c094a2a799dad7b16
65fd2014b2 Fix union type check of object (#4893)
2023-09-01 15:23:24 +00:00
Tomas Votruba
8848b01ee3 Updated Rector to commit c5897e54a62ee69d2441afcd8f043aa65085ee5f
c5897e54a6 Fix tests fixture updater (#4892)
2023-09-01 14:46:57 +00:00
Tomas Votruba
933f88178b Updated Rector to commit c5897e54a62ee69d2441afcd8f043aa65085ee5f
c5897e54a6 Fix tests fixture updater (#4892)
2023-09-01 13:46:47 +00:00
Tomas Votruba
ed860db4e7 Updated Rector to commit c5897e54a62ee69d2441afcd8f043aa65085ee5f
c5897e54a6 Fix tests fixture updater (#4892)
2023-09-01 13:35:19 +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
eeab658669 Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
7078b51a7c [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890)
2023-08-31 19:21:20 +00:00
Tomas Votruba
8be31113be Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
7078b51a7c [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890)
2023-08-31 19:02:42 +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
d7c5dcb785 Updated Rector to commit 6424bae725296eb72307e5f4902715ea41dad3ba
6424bae725 [TypeDeclaration] Using ClassMethodReturnTypeOverrideGuard on ReturnTypeFromStrictParamRector (#4878)
2023-08-29 17:02:15 +00:00
Tomas Votruba
dd35feba0b Updated Rector to commit beffd07acd0f131b0bad64461ae901fd9bb4e03c
beffd07acd ReturnTypeFromStrictParamRector: Fix typo in test-fixture (#4879)
2023-08-29 15:55:26 +00:00
Tomas Votruba
4650cf5c21 Updated Rector to commit 7841dc582440c815796e703cf3cf9b3f17f80285
7841dc5824 Clean up usused filePath instance check on ApplicationFileProcessor (#4877)
2023-08-29 07:31:50 +00:00
Tomas Votruba
1b7113d724 Updated Rector to commit 2f38105001867c15fb1b2001767b37566428719f
2f38105001 fix cs
2023-08-28 12:02:21 +00:00
Tomas Votruba
d47a3cb197 Updated Rector to commit 7e4a920a8aeab9d49bed2625ac160d4bac4eb932
7e4a920a8a [Performance] Only save nodesToReturn[$objectHash] on return array of nodes on AbstractRector (#4865)
2023-08-27 15:41:04 +00:00
Tomas Votruba
2473beec4a Updated Rector to commit 7d9c9111eb140283f77aa7ddeb57066e035de614
7d9c9111eb [automated] Apply Coding Standard (#4860)
2023-08-27 00:28:44 +00:00
Tomas Votruba
35b66505ec Updated Rector to commit 857e7a5604df3c36f85ea2702c066744a17728f7
857e7a5604 [Scoped] Do not downgrade vendor/rector-*/config (#4859)
2023-08-26 13:52:10 +00:00
Tomas Votruba
3982c504e9 Updated Rector to commit f64cb7b3f8467fe5e6509f0651017a6dabc1fd47
f64cb7b3f8 Revert "Pin react/socket to 1.13 (#4855)" (#4856)
2023-08-26 09:10:09 +00:00
Tomas Votruba
0728ba3ce0 Updated Rector to commit 55bde86033d704228a71c83b6b4d597d8bc6d350
55bde86033 [Performance] Reduce possible re-create Scope on ExprScopeFromStmtNodeVisitor (#4853)
2023-08-26 06:01:40 +00:00
Tomas Votruba
3be5dc788b Updated Rector to commit 55bde86033d704228a71c83b6b4d597d8bc6d350
55bde86033 [Performance] Reduce possible re-create Scope on ExprScopeFromStmtNodeVisitor (#4853)
2023-08-26 03:10:37 +00:00
Tomas Votruba
5fdba3c8f0 Updated Rector to commit 55bde86033d704228a71c83b6b4d597d8bc6d350
55bde86033 [Performance] Reduce possible re-create Scope on ExprScopeFromStmtNodeVisitor (#4853)
2023-08-26 02:10:45 +00:00
Tomas Votruba
33326d3cb4 Updated Rector to commit 55bde86033d704228a71c83b6b4d597d8bc6d350
55bde86033 [Performance] Reduce possible re-create Scope on ExprScopeFromStmtNodeVisitor (#4853)
2023-08-26 01:30:33 +00:00
Tomas Votruba
909b93c7f2 Updated Rector to commit 55bde86033d704228a71c83b6b4d597d8bc6d350
55bde86033 [Performance] Reduce possible re-create Scope on ExprScopeFromStmtNodeVisitor (#4853)
2023-08-25 17:57:39 +00:00
Tomas Votruba
f5e2367b07 Updated Rector to commit 20133824b6589f2259982d75d052cf7be3be8182
20133824b6 [DX] Remove double call $configuration->getFileExtensions() on FileFactory (#4851)
2023-08-25 16:24:26 +00:00
Tomas Votruba
9ab8c34a91 Updated Rector to commit a2c2046ba856be0346f69887e3fa0b75c4febfa9
a2c2046ba8 replaces `get_headers` $associative with bool (#4850)
2023-08-25 07:04:35 +00:00
Tomas Votruba
307620097c Updated Rector to commit f8ed35cddd0bd97601ff7fa559841d74ba6bcee0
f8ed35cddd Bump to PHPStan 1.10.31 (#4849)
2023-08-24 16:59:52 +00:00
Tomas Votruba
b19f667a5b Updated Rector to commit 21f33de2b90c0e63d42c3ebebef7cf4415191a21
21f33de2b9 Recreate to exact Expr node instead of printing when possible on AddParamBasedOnParentClassMethodRector take 2 (#4842)
2023-08-24 10:28:16 +00:00
Tomas Votruba
6da4ac4e2a Updated Rector to commit 295156cba171ce9685cd26e73490fd7d7b2001b1
295156cba1 [Traverser] Set explicitely nodeConnectingVisitorCompatibility: false config in config/phpstan/static-reflection.neon (#4841)
2023-08-24 07:18:13 +00:00
Tomas Votruba
f2f66bf17c Updated Rector to commit c73bc294a61249c7e7f35581cebd29864e49385a
c73bc294a6 [tests] Improve resetable interface call (#4834)
2023-08-23 10:02:05 +00:00
Tomas Votruba
98e671cd4d Updated Rector to commit bdad8bd4a5e4cdbcd65bdf942119750e0c7be1a8
bdad8bd4a5 [Experiment] Try running doc node traverser just once (#4822)
2023-08-20 12:44:53 +00:00
Tomas Votruba
c9318c9c37 Updated Rector to commit 74d918832653f922fc7f81c8d9369031c5de6fc9
74d9188326 Fix downgrade build (#4820)
2023-08-20 10:35:10 +00:00
Tomas Votruba
8c53c7470b Updated Rector to commit 216108b6d9e24cf4f3f829fe5a67133c8564d23d
216108b6d9 [DX] Merge PhpRectorInterface to RectorInterface as identical contract and separation no longer needed (#4812)
2023-08-18 12:27:46 +00:00
Tomas Votruba
9d3486b554 Updated Rector to commit b7d8787a257e94da73348cace71d2384bcc97930
b7d8787a25 remove fixture
2023-08-17 14:07:55 +00:00
Tomas Votruba
4930b08d44 Updated Rector to commit e7f551069cd3efc29ccd7089f432f22556f52b0c
e7f551069c fix
2023-08-15 23:57:05 +00:00
Tomas Votruba
0dc3d6f51c Updated Rector to commit de97b987257a4de435af72252ec2186c5b20c139
de97b98725 require deprectaion contracts
2023-08-15 23:43:04 +00:00
Tomas Votruba
89d0c03325 Updated Rector to commit 525a4b206360d6f0728b7e492644cc57859f28a6
525a4b2063 restore contracts
2023-08-15 23:36:27 +00:00
Tomas Votruba
acc38e2215 Updated Rector to commit f77cf5af2c486ab2db77c0a88d1c982e76261e09
f77cf5af2c [DI] Remove symfony/dependency-injection dependency (#4796)
2023-08-15 23:30:13 +00:00
Tomas Votruba
97db597ce6 Updated Rector to commit 78e491aae512e1b354427621a3171c506477aabe
78e491aae5 load devs commands
2023-08-15 22:36:34 +00:00
Tomas Votruba
e57e1c363e Updated Rector to commit 6d0f7da6e3d41e41781251d23f5ff934047d15cd
6d0f7da6e3 fix duplicated method
2023-08-15 22:27:51 +00:00
Tomas Votruba
61d0700b14 Updated Rector to commit 83fdfb3648e0c1a636ef0589e261cc48ea921456
83fdfb3648 [DeadCode] Handle duplicated annotation on space before close parentheses on RemoveUselessParamTagRector (#4795)
2023-08-15 15:20:12 +00:00
Tomas Votruba
5b1b83ed61 Updated Rector to commit 685fe90cb8752c2a288ee982d03d15d8df6b59f2
685fe90cb8 Make SimplifyUselessVariableRector run without scope (#4791)
2023-08-14 14:31:01 +00:00
Tomas Votruba
8216388351 Updated Rector to commit 2fe68ad7649faf0ebec883dcdeb91ee6118297ce
2fe68ad764 [DI] Add resetable interface to reset services on new DI run (#4790)
2023-08-14 13:46:38 +00:00
Tomas Votruba
a8b42110be Updated Rector to commit 7899f2b186919d8b6bec30272f5e3046ec0793bd
7899f2b186 [NodeNameResolver] Remove EmptyNameResolver (#4782)
2023-08-14 06:35:46 +00:00
Tomas Votruba
9891ab5633 Updated Rector to commit 092b6115b0e0642d0c20836673415ece4a3d0084
092b6115b0 Bump nikic/php-parser to 4.17 (#4781)
2023-08-13 16:46:42 +00:00
Tomas Votruba
705e925e68 Updated Rector to commit 28a64fd972f9015b31c2d10c1c14aed0ccedeca4
28a64fd972 [Config] Move from magic loading of all PHPStan extensions, their bootstrap files etc. under control with explicit file listing (#4769)
2023-08-11 11:56:34 +00:00
Tomas Votruba
7bb4bad572 Updated Rector to commit 1659ca292848fc1722b4b084d9fd1625b21e69c9
1659ca2928 [DX] Deprecate NonPhpRectorInterface, the only rule and its file processor, to make Rector handle exlusively PHP (#4761)
2023-08-10 19:26:52 +00:00
Tomas Votruba
4b4f578689 Updated Rector to commit fa2a806a07ca9279af5a69391d0556098f0cdbb1
fa2a806a07 [DX] deprecated build shipped debug fuctions, allow using custom debug package instead; add local d() and dd() functions (#4759)
2023-08-10 15:20:53 +00:00
Tomas Votruba
50e22e8613 Updated Rector to commit bcb51e81bc9cbc667017eea9240d7f8564848768
bcb51e81bc [Renaming] Deprecate PseudoNamespaceToNamespaceRector as too dynamic and unreliable, use the RenameClassRector instead (#4755)
2023-08-10 11:47:33 +00:00
Tomas Votruba
dde9963adf Updated Rector to commit f294e6df400814dbd8125ba141b16d96930716c5
f294e6df40 Cleanup test fixture (#4753)
2023-08-10 10:13:56 +00:00
Tomas Votruba
80654c23af Updated Rector to commit 8ae33c5f7ce2f1b27dd0a3100f8e9bdbb18a5361
8ae33c5f7c [Php70] Remove appendArgs() usage on CallUserMethodRector (#4731)
2023-08-09 12:42:27 +00:00
Tomas Votruba
ee45a5a26e Updated Rector to commit 17fe187769dba735386f3afbad705e27de46b887
17fe187769 [TypeDeclaration] Skip param setter method intersection docblock not autoload on ReturnNeverTypeRector (#4721)
2023-08-08 15:26:09 +00:00
Tomas Votruba
5602ee85cd Updated Rector to commit 3de7c697f5adc910481ff5873674284b2836dc50
3de7c697f5 [DX] Remove *AnnotationIncorrectNullableRector rules as works with unreliable docblocks and can have 2 solutions (#4719)
2023-08-08 13:25:26 +00:00
Tomas Votruba
3c5f7a4dd4 Updated Rector to commit eed1dca02b44f63a00f232631763eddce1545094
eed1dca02b [DX] remove branch alias to avoid miss-versioning, use specific tag instead (#4715)
2023-08-08 08:50:04 +00:00
Tomas Votruba
c122d338d1 Updated Rector to commit 56195b368e89f7fc7d92fe96703286f9c4985f18
56195b368e Fix external patch path (#4677)
2023-08-06 15:55:08 +00:00
Tomas Votruba
da7cbac54d Updated Rector to commit 56195b368e89f7fc7d92fe96703286f9c4985f18
56195b368e Fix external patch path (#4677)
2023-08-06 15:47:57 +00:00
Tomas Votruba
6f8ff0f9d5 Updated Rector to commit 2ffa009e08d06c7522a1f3b066f90e8edbee8210
2ffa009e08 [DX] Make use of Laravel container in few tests - step #1 (#4672)
2023-08-06 15:14:10 +00:00
Tomas Votruba
9165e88cea Updated Rector to commit 3dbaeb0cadbc3a31d21849fab5494a1a828d792b
3dbaeb0cad [TypeDeclaration] Handle anonymous class in union on AddArrowFunctionReturnTypeRector (#4676)
2023-08-06 14:47:16 +00:00
Tomas Votruba
ce69ade1ae Updated Rector to commit 22e423dc79a8e4677198c8b260fb24243db0ea45
22e423dc79 [NodeTypeResolver] Clean up anonymous class detection on NodeTypeResolver::getNativeType() (#4673)
2023-08-06 10:56:52 +00:00
Tomas Votruba
9ee8cf74ba Updated Rector to commit f10821b43226affce9e7f3b0085b231ff39940f1
f10821b432 [DX] Remove deprecated RectorConfigProvider, use SimpleParameterProvider instead (#4658)
2023-08-06 00:09:08 +00:00
Tomas Votruba
7503c1fb60 Updated Rector to commit 395b215707a867cb11d625ee5f2653589e45bed7
395b215707 Resolve encapsed values as strings (#4622)
2023-08-06 00:06:35 +00:00
Tomas Votruba
2e58adbe3b Updated Rector to commit 8c04f656b32d8d95a5139e59cbfbc508647dd3b1
8c04f656b3 [TypeDeclaration] Skip public method on AddMethodCallBasedStrictParamTypeRector (#4659)
2023-08-05 16:29:56 +00:00
Tomas Votruba
0a93085a9e Updated Rector to commit ae896432a906ca02a97c326295a29ced3c689998
ae896432a9 Move ArrayManipulator to rector-symfony, where only used (#4656)
2023-08-05 12:14:07 +00:00
Tomas Votruba
15f46b1693 Updated Rector to commit 9b03d8367cd3c69b36b8b1aedf458b191f46655a
9b03d8367c [TypeDeclaration] Add ReturnUnionTypeRector (#4655)
2023-08-05 11:03:19 +00:00
Tomas Votruba
9ccb6367c0 Updated Rector to commit 9b03d8367cd3c69b36b8b1aedf458b191f46655a
9b03d8367c [TypeDeclaration] Add ReturnUnionTypeRector (#4655)
2023-08-05 10:29:33 +00:00
Tomas Votruba
cdee2bcef9 Updated Rector to commit 75e46c2ff65a715543aa5354c97e5d43f2a20f6c
75e46c2ff6 Add back "symfony/contracts": "^3.2" (#4654)
2023-08-04 18:17:32 +00:00
Tomas Votruba
93ce3c4606 Updated Rector to commit ef35a4957b1afbede20679d94529393f4e6d1286
ef35a4957b [DX] Cleanup few dev dependencies to lower dependency-tree load (#4650)
2023-08-04 17:51:05 +00:00
Tomas Votruba
1814d573d8 Updated Rector to commit e380cf8fdb65fe9929ed047dafdd49fadb00e01c
e380cf8fdb [DX] Make MoneyFormatToNumberFormatRector wrap func call directly to keep simple (#4653)
2023-08-04 17:46:10 +00:00
Tomas Votruba
92b9fdfd95 Updated Rector to commit fbcd7cf7e6c61be3ad014eebe50ff6c83e8a202e
fbcd7cf7e6 Remove resolveFromNodeWithScopeCountAndFallbackName() as unused (#4652)
2023-08-04 17:28:42 +00:00
Tomas Votruba
81777836bc Updated Rector to commit cbc026e3245d744eea5cf1fc48f3722f67b62173
cbc026e324 [DX] Cleanup ForRepeatedCountToOwnVariableRector counter (#4651)
2023-08-04 17:15:45 +00:00
Tomas Votruba
d79728bb9f Updated Rector to commit 58273de24474dee2a5463949ad127a86526c4e3a
58273de244 [CodingStyle][Php80][Privatization] Handle SeparateMultiUseImportsRector+ClassPropertyAssignToConstructorPromotionRector+FinalizeClassesWithoutChildrenRector cause invalid removal (#4649)
2023-08-04 16:26:53 +00:00
Tomas Votruba
b2fa3fba80 Updated Rector to commit 529defd2de2b8ea122d0d7326ca0b054a22a030d
529defd2de [TypeDeclaration] Using native type scope get on ReturnTypeInferer (#4648)
2023-08-04 14:11:13 +00:00
Tomas Votruba
5ed75de032 Updated Rector to commit ae767eb1fe01f65c9d5a1e5c2a4c067e95b5386e
ae767eb1fe [TypeDeclaration] Set minimum php version for AddReturnTypeDeclarationBasedOnParentClassMethodRector to php 7.0 (#4647)
2023-08-04 13:42:14 +00:00
Tomas Votruba
32ea38b2ab Updated Rector to commit 3c2fab22122dbab967154f433c93c61ec5532de5
3c2fab2212 [Strict] Skip docblock on BooleanInTernaryOperatorRuleFixerRector (#4638)
2023-08-03 16:56:43 +00:00
Tomas Votruba
8e45114f90 Updated Rector to commit 5965ddd37bf4e44553822ae16165c2de4b052f42
5965ddd37b [TypeDeclaration] Add Closure support on ReturnTypeFromStrictParamRector (#4633)
2023-08-03 14:19:00 +00:00
Tomas Votruba
a41439c736 Rector 0.17.8 2023-08-03 13:06:37 +00:00
Tomas Votruba
38d5eacbd5 Updated Rector to commit 56d1c1822bd594c2643a0f5431444d1454cf2335
56d1c1822b [Printer] Fix printing PHPStan AlwaysRememberedExpr with add unwrapper inside BetterStandardPrinter::p (#4629)
2023-08-03 09:57:07 +00:00
Tomas Votruba
c0798d5cca Updated Rector to commit a63ad695ca6b86b460c425a65762778329ca577f
a63ad695ca [TypeDeclaration] Skip has parent class method on AddParamTypeFromPropertyTypeRector (#4627)
2023-08-02 08:12:09 +00:00
Tomas Votruba
aae549741f Updated Rector to commit 0cb3fd0feb464b4568e07607a05c794637aa2862
0cb3fd0feb [Php73] Handle crash Type Error on JsonThrowOnErrorRector (#4626)
2023-08-01 10:55:14 +00:00
Tomas Votruba
64fc640e30 Updated Rector to commit 00edfa77a0dcfabb55daca82e7e0b51063ad68e6
00edfa77a0 [TypeDeclaration] Add StrictStringParamConcatRector (#4624)
2023-07-31 11:10:36 +00:00
Tomas Votruba
d9fb45c92e Updated Rector to commit e8bba86e071c527045951c0ed5edd852d80776af
e8bba86e07 Fix string type on StrictArrayParamDimFetchRector (#4623)
2023-07-30 17:06:57 +00:00
Tomas Votruba
e8f8e6a94d Updated Rector to commit c01925aad05a9baf0a44701a069a989ca3c0edc8
c01925aad0 Resolve native return-type from native union-type in short ternary (#4606)
2023-07-26 13:22:32 +00:00
Tomas Votruba
abd2958b1c Updated Rector to commit c01925aad05a9baf0a44701a069a989ca3c0edc8
c01925aad0 Resolve native return-type from native union-type in short ternary (#4606)
2023-07-26 12:30:52 +00:00
Tomas Votruba
294fd68b81 Updated Rector to commit ba04cef4f0aed1b1bda356cc9207bb108bd97657
ba04cef4f0 Reduce ConstExprClassNameDecorator overhead (#4603)
2023-07-25 14:46:15 +00:00
Tomas Votruba
56035a3c99 Updated Rector to commit a04101c5089e5043b7962316e3a1bb0802e453fc
a04101c508  [Php81] Skip re-assign with AssignOp on ReadOnlyPropertyRector  (#4600)
2023-07-25 10:07:19 +00:00
Tomas Votruba
f265ebd38b Updated Rector to commit 3c82c6e9ac05760468a1b21f710da553efba70ad
3c82c6e9ac [PHPStanStaticTypeMapper] Fix IntersectionTypeMapper to make ObjectType have FQCN (#4598)
2023-07-25 09:44:39 +00:00
Tomas Votruba
a89d98c36c Updated Rector to commit 6658a0e3950589eface36a82af5be21bef70bf11
6658a0e395 [TypeDeclaration] Skip coalesce on StrictArrayParamDimFetchRector (#4589)
2023-07-24 12:42:10 +00:00
Tomas Votruba
f2d74dd860 Updated Rector to commit 578d6372a2e2028f52e4635f6e321b690c1e383b
578d6372a2 [PHPStanStaticTypeMapper] FQCN for Closure type mapper  (#4584)
2023-07-23 23:31:30 +00:00
Tomas Votruba
0e76101aa3 Rector 0.17.7 2023-07-23 20:44:23 +00:00
Tomas Votruba
2d8f90877a Updated Rector to commit 4a5616878c580138a26e1eedf63c15fa8e0dcda8
4a5616878c Make ReturnTypeFromStrictNewArrayRector handle only single level arrays (#4575)
2023-07-21 21:08:31 +00:00
Tomas Votruba
62fb16f0e0 Updated Rector to commit 2e0ce286cb84cc202d17b293de3d59f89b9c4112
2e0ce286cb Make use of toPhpDocNode() - take #5 (#4567)
2023-07-21 11:06:18 +00:00
Tomas Votruba
ad6f93a19d Updated Rector to commit 1411c048b31beeb040986e1c553d3508b17b4a31
1411c048b3 [CodeQuality] Skip pull property from inner class on CompleteDynamicPropertiesRector (#4561)
2023-07-20 23:57:52 +00:00
Tomas Votruba
2b435e3666 Updated Rector to commit bbe6ed0e1471c4f5394f524c477dfa2ada52d7e5
bbe6ed0e14 Fix space in paths (#4553)
2023-07-20 15:05:47 +00:00
Tomas Votruba
5a211089b1 Updated Rector to commit 8c5507f3e83e70657f95ae9ccb6488732b0359f5
8c5507f3e8 [Strict] Skip empty() from param doc on DisallowedEmptyRuleFixerRector (#4550)
2023-07-20 11:36:45 +00:00
Tomas Votruba
51b2bd7a2e Updated Rector to commit 8c5507f3e83e70657f95ae9ccb6488732b0359f5
8c5507f3e8 [Strict] Skip empty() from param doc on DisallowedEmptyRuleFixerRector (#4550)
2023-07-20 11:22:15 +00:00
Tomas Votruba
12f401a463 Updated Rector to commit a2c12ab0db6bb7d6207ea5a5c63ef5e6426cf0f0
a2c12ab0db Bump to PHPStan 1.10.26 (#4546)
2023-07-20 05:58:46 +00:00
Tomas Votruba
bff94f9200 Updated Rector to commit ceab6d71bb3436c1c613651a12af55954ab3f7bf
ceab6d71bb Add currentStmt property on AbstractRector to allow pull Scope from it on deep Expr (#4437)
2023-07-19 11:08:33 +00:00
Tomas Votruba
b9ed01d3be Updated Rector to commit 972d7607f1c4ab8b733b91d7aa5020ce1b143538
972d7607f1 [Application] Merge process files on both parallel and non-parallel process (#4523)
2023-07-19 10:53:43 +00:00
Tomas Votruba
f7109e0cbd Updated Rector to commit 490bd72c85d61feaf426d51d61bf9d04d40a418e
490bd72c85 [Performance][NodeManipulator] Avoid loop on search first variable named on next sliced next stmts on StmtsManipulator (#4537)
2023-07-19 10:36:07 +00:00
Tomas Votruba
34b2975e47 Updated Rector to commit cebcea0a9aae472a64f80608d88e79a91797a67d
cebcea0a9a Support class-const-fetch in ReturnTypeFromStrictTypedCallRector (#4520)
2023-07-17 03:49:59 +00:00
Tomas Votruba
3e8e67ac99 Updated Rector to commit 4e016abd43fa853c69b1454d378a32a1bb0fa0ae
4e016abd43 coding standard
2023-07-14 10:37:52 +00:00
Tomas Votruba
a09f711e9b Updated Rector to commit a12242df2ad756d59d6f214b3f727dedc0598704
a12242df2a [AstResolver][Performance] Remove unnecessary double File read on AstResolver::parseFileNameToDecoratedNodes() (#4508)
2023-07-13 20:32:24 +00:00
Tomas Votruba
6f18436957 Updated Rector to commit 8537bbd52a5b9d8aa619326b750df6dcb1b30f32
8537bbd52a [DeadCode] Skip append += assignment on RemoveUnusedPrivatePropertyRector (#4506)
2023-07-13 16:05:50 +00:00
Tomas Votruba
4da4f21668 Updated Rector to commit 8537bbd52a5b9d8aa619326b750df6dcb1b30f32
8537bbd52a [DeadCode] Skip append += assignment on RemoveUnusedPrivatePropertyRector (#4506)
2023-07-13 15:37:09 +00:00
Tomas Votruba
ef7c42a7c7 Updated Rector to commit 398baa2c6aa2af11d0a391bd0d2a71dfb71eebcf
398baa2c6a [CI] Add doctrine rules in set check (#4505)
2023-07-13 14:15:29 +00:00
Tomas Votruba
0a29dbd455 Updated Rector to commit 398baa2c6aa2af11d0a391bd0d2a71dfb71eebcf
398baa2c6a [CI] Add doctrine rules in set check (#4505)
2023-07-13 13:50:29 +00:00
Tomas Votruba
5cbdbd7d21 Updated Rector to commit 295a01c49f086ab6c442f4287d0dded308cc8a6e
295a01c49f [NodeTypeResolver] Remove nestedChainMethodCallLimit() for deep method call counter check (#4504)
2023-07-13 12:53:07 +00:00
Tomas Votruba
10b083fee2 Updated Rector to commit 295a01c49f086ab6c442f4287d0dded308cc8a6e
295a01c49f [NodeTypeResolver] Remove nestedChainMethodCallLimit() for deep method call counter check (#4504)
2023-07-13 12:47:15 +00:00
Tomas Votruba
77dec4163c Updated Rector to commit a10ddea5d14f8fbdf21366dbfd20defef01f64db
a10ddea5d1 let phpunit handle its own empty method rule
2023-07-13 11:09:22 +00:00
Tomas Votruba
98ae4430e1 Updated Rector to commit a10ddea5d14f8fbdf21366dbfd20defef01f64db
a10ddea5d1 let phpunit handle its own empty method rule
2023-07-13 10:52:04 +00:00
Tomas Votruba
ccf7bb9270 Updated Rector to commit 5d942a0f7ee68dee11b4fb6dd72a78f6bbe938a0
5d942a0f7e Add PHPUnit to sets (#4495)
2023-07-13 10:23:36 +00:00
Tomas Votruba
a2178d82dc Updated Rector to commit 9e9a314b23fa9f217c236412591c4cb9ad94edf5
9e9a314b23 [NodeTypeResolver] Remove unused AttributeKey::INSIDE_ARRAY_ITEM on ContextNodeVisitor (#4496)
2023-07-12 22:16:31 +00:00
Tomas Votruba
400669639f Updated Rector to commit 77167c7a1047f430b68f7b1063b5f2cb8dfa9830
77167c7a10 [Php52] Use instanceof check instead of compare object $newStmt === $caseStmt  on ContinueToBreakInSwitchRector (#4494)
2023-07-12 16:02:47 +00:00
Tomas Votruba
31e06fa816 Updated Rector to commit 293913662e1372aae24a5069a753e38475116b8e
293913662e [Performance] Only set Attribute on context inside ArrayDimFetch and ArrayItem on specific node used (#4493)
2023-07-12 15:02:18 +00:00
Tomas Votruba
0ac904fa27 Updated Rector to commit 293913662e1372aae24a5069a753e38475116b8e
293913662e [Performance] Only set Attribute on context inside ArrayDimFetch and ArrayItem on specific node used (#4493)
2023-07-12 14:49:54 +00:00
Tomas Votruba
a10e49e22a Updated Rector to commit 293913662e1372aae24a5069a753e38475116b8e
293913662e [Performance] Only set Attribute on context inside ArrayDimFetch and ArrayItem on specific node used (#4493)
2023-07-12 14:29:41 +00:00
Tomas Votruba
50d0f997c6 Updated Rector to commit 293913662e1372aae24a5069a753e38475116b8e
293913662e [Performance] Only set Attribute on context inside ArrayDimFetch and ArrayItem on specific node used (#4493)
2023-07-12 14:21:26 +00:00
Tomas Votruba
d4bf4ea4ff Updated Rector to commit 706be908c5d96381785128ad94cc608814aa0f35
706be908c5 lock react/promise to avoid process leaking
2023-07-12 13:11:50 +00:00
Tomas Votruba
75f2fdd3e2 Updated Rector to commit 706be908c5d96381785128ad94cc608814aa0f35
706be908c5 lock react/promise to avoid process leaking
2023-07-12 12:45:07 +00:00
Tomas Votruba
495c6799f3 Updated Rector to commit 706be908c5d96381785128ad94cc608814aa0f35
706be908c5 lock react/promise to avoid process leaking
2023-07-12 10:45:31 +00:00
Tomas Votruba
72beb9bc2e Updated Rector to commit c0983f1000c1ca67b23d6da0c7f43eede90d14db
c0983f1000 Skip coalsce assign in RemoveUnusedPrivatePropertyRector (#4491)
2023-07-12 10:10:58 +00:00
Tomas Votruba
03be03391c Updated Rector to commit d514a5ad79c530cf236308d4f7ab9254e2340996
d514a5ad79 Fix StrictArrayParamDimFetchRector on same named property (#4488)
2023-07-12 08:37:36 +00:00
Tomas Votruba
100d1e2fc8 Updated Rector to commit d4a432e7e490695a11daa32bce6bf20ab0d075f6
d4a432e7e4 Fix StrictArrayParamDimFetchRector on `is_*` calls (#4486)
2023-07-12 08:02:53 +00:00
Tomas Votruba
802b78e28b Updated Rector to commit dd6a1fb651c07c558d28a9dcf72ff1248b2c0614
dd6a1fb651 [DeadCode] Skip property not exists on RemoveTypedPropertyDeadInstanceOfRector (#4481)
2023-07-11 21:50:58 +00:00
Tomas Votruba
2e39614116 Updated Rector to commit 26a368c89ba8297d33600aa5a1c954d2a1b5d274
26a368c89b Fix ReturnBinaryOrToEarlyReturnRector mixing up returned nodes of array, hook into StmtsAwareInterface instead to keep next Rector rules updated (#4476)
2023-07-11 15:35:53 +00:00
Tomas Votruba
a552423177 Updated Rector to commit aac0f2a90922bcfe90a1918448dc6e80172beb62
aac0f2a909 Remove duplicated version_compare ReplaceFuncCallArgumentDefaultValue rule (#4473)
2023-07-10 23:27:24 +00:00
Tomas Votruba
5f68d82340 Updated Rector to commit 284596d4b976784ebe973370e2ed93d0e9977d90
284596d4b9 [Testing] Remove gc_collect_cycles() on AbstractRectorTestCase to avoid random error in tests due to SimpleParameterProvider static property usage lost (#4472)
2023-07-10 11:49:37 +00:00
Tomas Votruba
484c94d08a Updated Rector to commit 868612ae6bac93afe8d9aea8fd7d2fb6c6306991
868612ae6b [DX] Remove parent node from AbstractRector (#4465)
2023-07-09 18:49:55 +00:00
Tomas Votruba
9bef88551a Updated Rector to commit a771c5621971eb1c527c75de17119a82ac8294e6
a771c56219 [DX] Remove autowrapping of expr/stmt to make return values in the same type and reliable (#4466)
2023-07-09 17:30:30 +00:00
Tomas Votruba
2d4dfa7604 Updated Rector to commit ce03029084e1d8c860de15ee6fcfef8f6f35dbdb
ce03029084 [DeadCode] Remove RemoveJustVariableAssignRector as often done on purpose or with side effect (#4450)
2023-07-09 10:36:52 +00:00
Tomas Votruba
0c4f4be946 Updated Rector to commit 33019ba2ff8abfa658b998db5a7ca88f2fa87da3
33019ba2ff [MysqlToMysqli] Deprecate set, as dangerous to use, better handle manually (#4448)
2023-07-09 09:46:05 +00:00
Tomas Votruba
0ae22238e2 Updated Rector to commit 3c90b2d0ec9aef15c1d869ceadf1dfeaea8235ce
3c90b2d0ec [DX] Remove parent node fixture, to avoid false positive on node discovery (#4440)
2023-07-08 21:47:47 +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
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
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
f40dc9ec2a Updated Rector to commit 3aed20ef6677602ae7a5d164be8bbdee291da4ce
3aed20ef66 [DX] Make use of SimpleParameterProvider::provideStringParameter() (#4410)
2023-07-03 15:07:34 +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
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
6981c70c9a Updated Rector to commit 9ed8c21b127cdd45a28307d5fc41668f867f4ef4
9ed8c21b12 [DeadCode] Remove findFirstPrevious() usage on UselessIfCondBeforeForeachDetector (#4388)
2023-07-01 09:41:56 +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
a890ca90e8 Updated Rector to commit 7ee89b326702a0b51e3165fc478615834de50fe1
7ee89b3267 [BetterPhpDocParser] Remove double array_values() call on same variable (#4371)
2023-06-28 16:15:45 +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
4bb7391372 Updated Rector to commit 715561ce71380357545db851fd44ad8b55948b6d
715561ce71 Introduces AddSensitiveParameterAttributeRector rule (#4342)
2023-06-26 18:55:49 +00:00
Tomas Votruba
39599829a2 Updated Rector to commit f8bc487500b703f33bc66806f151a7757f4be3dc
f8bc487500 [ReadWrite] Reduce parent attribut usage on JustReadExprAnalyzer (#4350)
2023-06-26 13:30:41 +00:00
Tomas Votruba
e5f365df87 Updated Rector to commit 0afc961f2b1e7d3d1f86250fe795e3176e6527b3
0afc961f2b Update actions/checkout v2 to v3 (#4348)
2023-06-26 07:17:54 +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
9bda775f8d Updated Rector to commit 3f8c7e9fb52ba2356912ce938c6b7183c5fbcc07
3f8c7e9fb5  [PhpParser] Remove parent lookup on ValueResolver  (#4337)
2023-06-24 16:09:30 +00:00
Tomas Votruba
e2e3e333e5 Updated Rector to commit fe0f45e10f1127571424f35ec57dec52c3154a10
fe0f45e10f add symfony sets to check in missing-in-set
2023-06-24 14:33:20 +00:00
Tomas Votruba
1ed51827b0 Updated Rector to commit f5a5780031301ae8678d92c28ca537bf70951498
f5a5780031 [CodeQuality] Use AbstractRector on ForeachItemsAssignToEmptyArrayToAssignRector (#4336)
2023-06-24 13:18:21 +00:00
Tomas Votruba
7bb62202c8 Updated Rector to commit f5a5780031301ae8678d92c28ca537bf70951498
f5a5780031 [CodeQuality] Use AbstractRector on ForeachItemsAssignToEmptyArrayToAssignRector (#4336)
2023-06-24 09:35:12 +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
f8aedc6558 Updated Rector to commit 914e0e83543d2428d6eec6f49c800f9ed94c351a
914e0e8354 [TypeDeclaration] Handle crash on object shape on ArrayShapeFromConstantArrayReturnRector (#4323)
2023-06-23 08:36:32 +00:00
Tomas Votruba
53262b6c62 Updated Rector to commit ffce073ffa08eddc334b866ae3bec92afab15e0a
ffce073ffa [NodeNestingScope] Remove parent lookup on ContextAnalyzer (#4315)
2023-06-22 11:51:54 +00:00
Tomas Votruba
737806867e Updated Rector to commit 5438c558066953abc6d800e94e7ffbff4215acff
5438c55806 Fix command to configure rector (#4314)
2023-06-22 10:02:01 +00:00
Tomas Votruba
13cd8748d7 Updated Rector to commit df459e711ae5bd8f359df40fbef863cc386bf107
df459e711a Handle AlwaysRememberedExpr in deep Expr (#4310)
2023-06-21 12:59:23 +00:00
Tomas Votruba
3236151dbe Updated Rector to commit df459e711ae5bd8f359df40fbef863cc386bf107
df459e711a Handle AlwaysRememberedExpr in deep Expr (#4310)
2023-06-21 12:07:07 +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
ba7a1a55c4 Updated Rector to commit c20828965125f2afbde8367f68dab0f9ae983cf1
c208289651 add sin float fixture (#4300)
2023-06-20 08:30:39 +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
435aa06229 Updated Rector to commit 41184e16830061a819fbdcaaac89a8312805e124
41184e1683 Skip divide in NumericReturnTypeFromStrictScalarReturnsRector (#4298)
2023-06-20 07:23:02 +00:00
Tomas Votruba
071632b237 Updated Rector to commit 0d9828f9d90ee0dd4b50f759c150575785cce6b8
0d9828f9d9 [automated] Apply Coding Standard (#4265)
2023-06-18 02:32:09 +00:00
Tomas Votruba
8ae00bd588 Updated Rector to commit a8339a34c179105fe8073266998abdc5479486dd
a8339a34c1 Use `FunctionLike` contract instead of union of function-like concrete implementations (#4241)
2023-06-16 14:04:59 +00:00
Tomas Votruba
73e6cf210e Updated Rector to commit 3d4a86c31511bda1ded00a70ed36c72849d19824
3d4a86c315 [ReadWrite] Remove parent lookup on ArrayDimFetchParentNodeReadAnalyzer (#4239)
2023-06-16 13:31:36 +00:00
Tomas Votruba
ca2ed9bbb4 Updated Rector to commit 3d4a86c31511bda1ded00a70ed36c72849d19824
3d4a86c315 [ReadWrite] Remove parent lookup on ArrayDimFetchParentNodeReadAnalyzer (#4239)
2023-06-16 10:32:41 +00:00
Tomas Votruba
af06891b34 Updated Rector to commit 6488506a36f117e947056eff9f27157a82bf102b
6488506a36 [DeadCode] Remove parent lookup on DeadReturnTagValueNodeAnalyzer (#4235)
2023-06-16 03:57:17 +00:00
Tomas Votruba
d793888f8a Updated Rector to commit 53c6c5fcaf92b3ff40b6f45e476ff981b9028e95
53c6c5fcaf Remove Kind from doc mapper, as used just once (#4234)
2023-06-16 03:34:15 +00:00
Tomas Votruba
708954a81f Updated Rector to commit 2694671fccfefc21daf1bd17353cd7d42b4af023
2694671fcc LocallyCalledStaticMethodToNonStaticRector with method args (#4233)
2023-06-14 15:32:20 +00:00
Tomas Votruba
cc9d836205 Updated Rector to commit 72f772294bc816daa7cba09fb512306fffda2ee3
72f772294b Use REMOVE_NODE constant from NodeTraverser (#4219)
2023-06-14 05:01:18 +00:00
Tomas Votruba
4c28e357ca Updated Rector to commit 20ec11e73d8998f9ad7533c8f179ee7be8e2abdf
20ec11e73d [Docblock] Move DocBlockUpdater service usage from AbstractRector to PhpDocTypeChanger (#4215)
2023-06-14 04:39:10 +00:00
Tomas Votruba
73448ff21c Updated Rector to commit 883608be8a7fcade8b0cc78d74b26f17b690c189
883608be8a Remove tests/Issue/Downgrade* (#4216)
2023-06-13 17:29:47 +00:00
Tomas Votruba
594af984b5 Updated Rector to commit 5431047ba10053a1204866e9d33b3061f39a1b7d
5431047ba1 Remove tests/IssuesIssueDowngrade* as moved to rector-downgrade-php (#4214)
2023-06-13 16:40:06 +00:00
Tomas Votruba
5712e3dd40 Updated Rector to commit b4eb417407360b419e71eaa7609209a1597441e2
b4eb417407 Remove ReturnArrayClassMethodToYieldRector, add to PHPUnit Rector (#4213)
2023-06-13 16:24:24 +00:00
Tomas Votruba
1890d4835a Updated Rector to commit 91cf7cc721c70ec8914c1bc4855a810bb85b640c
91cf7cc721 Remove CachedContainerBuilder (#4211)
2023-06-13 13:29:32 +00:00
Tomas Votruba
c7c077acb5 Updated Rector to commit d295fe5b4408ef1e3e3be152f3e04c53699cadb5
d295fe5b44 Increase kernel cache key (#4210)
2023-06-13 09:26:14 +00:00
Tomas Votruba
c1782af768 Updated Rector to commit 0a36378788fcf58a41deecab7fb9b3228f077264
0a36378788 [DeadCode] Remove parent lookup on ControllerClassMethodManipulator (#4204)
2023-06-12 20:11:25 +00:00
Tomas Votruba
65638434b2 Updated Rector to commit b56b0c2febafe7ab07b187faa9b315f810cac0ae
b56b0c2feb [TypeDeclaration] Remove findParentType() on SilentVoidResolver (#4203)
2023-06-12 19:14:15 +00:00
Tomas Votruba
7210e20035 Updated Rector to commit b56b0c2febafe7ab07b187faa9b315f810cac0ae
b56b0c2feb [TypeDeclaration] Remove findParentType() on SilentVoidResolver (#4203)
2023-06-12 19:05:59 +00:00
Tomas Votruba
e7a63a8730 Updated Rector to commit b56b0c2febafe7ab07b187faa9b315f810cac0ae
b56b0c2feb [TypeDeclaration] Remove findParentType() on SilentVoidResolver (#4203)
2023-06-12 18:55:06 +00:00
Tomas Votruba
887ce448ac Updated Rector to commit a86eb69c59af5dd1e3ea3b7ab994b017dcccd6b4
a86eb69c59 Move PreferThisOrSelfMethodCallRector to PHPUnit rector package, to handle exact cases (#4194)
2023-06-12 11:51:15 +00:00
Tomas Votruba
c3f48d13e3 Updated Rector to commit ca08d86e3900556b2f389e4d983489535c21fdd7
ca08d86e39 Make use of Class_, Interface_ (#4193)
2023-06-12 11:13:09 +00:00
Tomas Votruba
ff28aaca4c Updated Rector to commit 21f8014b30f4a4230f787ca1698a2c53d6d5f18a
21f8014b30 [DI] Autowire annotation to attribute mapper via tags (#4190)
2023-06-12 10:45:32 +00:00
Tomas Votruba
1b3ee4f289 Updated Rector to commit 7a61135453ff9fa595966f0265cb2a3c28c13656
7a61135453 [CodeQuality] Remove direct return STOP_TRAVERSAL on SetTypeToCastRector (#4187)
2023-06-12 10:13:36 +00:00
Tomas Votruba
57b6546504 Updated Rector to commit 4e02f78d6b8352fd24afc670f285453468742c3f
4e02f78d6b temporarily exclude autowire, to skip throws
2023-06-11 23:42:32 +00:00
Tomas Votruba
4ec7e4865b Updated Rector to commit a8922f7431c9c9188be501107ee7819e0130da4c
a8922f7431 skip temporarily match + throws downagrade in symfony/console, very unlikely to run
2023-06-11 23:26:00 +00:00
Tomas Votruba
503a6059f8 Updated Rector to commit a8922f7431c9c9188be501107ee7819e0130da4c
a8922f7431 skip temporarily match + throws downagrade in symfony/console, very unlikely to run
2023-06-11 23:01:39 +00:00
Tomas Votruba
3313a231b7 Updated Rector to commit bb609b28e327ca1fb7827b6bc548013d19a2cf4e
bb609b28e3 [Core] Always reset stopTraversal to false on next Rector visit (#4182)
2023-06-11 14:17:34 +00:00
Tomas Votruba
5db0609ffa Updated Rector to commit 3bc82de4d5b27b2852e6a1ecbc68607cf4d000ce
3bc82de4d5 Increase kernel cache key (#4159)
2023-06-10 11:32:05 +00:00
Tomas Votruba
fb2569f52c Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 13:02:17 +00:00
Tomas Votruba
5518ca1f6b Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 12:23:12 +00:00
Tomas Votruba
d95266b60b Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 12:03:39 +00:00
Tomas Votruba
68277cb660 Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 11:28:50 +00:00
Tomas Votruba
f790a093ec Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 11:00:38 +00:00
Tomas Votruba
ad74348451 Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 10:52:53 +00:00
Tomas Votruba
c0ebeabf68 Updated Rector to commit 2d13bc9773c3b7b91598312087c236c14b002d28
2d13bc9773 Remove NewArgToMethodCallRector as unused (#4130)
2023-06-08 23:27:12 +00:00
Tomas Votruba
f82e30a026 Updated Rector to commit ae874efa148e6d5a031503892a6307824b4d7003
ae874efa14 Remove SourceLocatorProviderInterface as unused (#4126)
2023-06-08 22:00:17 +00:00
Tomas Votruba
4f94034308 Updated Rector to commit d003424800ab2b06eae432679cda73ee959cbad1
d003424800 From magic array autowire to explicit autowire (#4122)
2023-06-08 20:31:22 +00:00
Tomas Votruba
f6e608f751 Updated Rector to commit 6c3eb864d7a543b9e6f0379959bb98de489ab853
6c3eb864d7 Remove MultipleClassFileToPsr4ClassesRector as only PSR4 rule, bit risky and better handled with PHPStan + remove adding/removing files logic, use printer instead (#4117)
2023-06-08 17:22:43 +00:00
Tomas Votruba
9e103260ec Updated Rector to commit 2f3e9be0ae108c75f9de8fbf2ea92f0393ad9839
2f3e9be0ae [DX] Test BetterNodeFinder with Laravel container (#4106)
2023-06-08 14:23:03 +00:00
Tomas Votruba
1a06fc6c7b Updated Rector to commit b0873f7667fe9e5c2b178ce7bc8ce8007c105168
b0873f7667 Remove ActionInjectionToConstructorInjectionRector as rather for demo purposes, not practical (#4113)
2023-06-08 14:20:09 +00:00
Tomas Votruba
1d6fa53888 Updated Rector to commit 7f73d653b9ceb059f9d05e010a7c6120f23c77ac
7f73d653b9 [Traverser] Use specific Stmt: Declare_ and Namespace_ for init namespace stmt_key index on StmtKeyNodeVisitor (#4111)
2023-06-08 02:08:17 +00:00
Tomas Votruba
a97ef30b94 Updated Rector to commit fe33aad6cbff85882e60ef2461e929d5b1957456
fe33aad6cb [Printer] Rename method decorateInlineHTMLOrNopAndUpdatePhpdocInfo() to moveCommentsFromAttributeObjectToCommentsAttribute() (#4110)
2023-06-07 16:12:13 +00:00
Tomas Votruba
1fdcfc8e63 Updated Rector to commit 3c9a2453294bed3e258935aad37d355c8251db4f
3c9a245329 Make SimplifyRegexPatternRector work without parent nodes + deprecate BetterNodeFinder and findParent* methods (#4105)
2023-06-07 12:49:26 +00:00
Tomas Votruba
da05109534 Updated Rector to commit b7760eb6fcfd4d809723e4dfd54ece8d437baff0
b7760eb6fc [Scoper] Try enable DowngradeArrayIsListRector (#4096)
2023-06-06 23:13:47 +00:00
Tomas Votruba
104c8b43d1 Updated Rector to commit b8b1155ffe068cfb0a1a702dfd00e21bf711c46d
b8b1155ffe try polyfill is_list
2023-06-06 22:03:07 +00:00
Tomas Votruba
515eba1ef3 Updated Rector to commit b8b1155ffe068cfb0a1a702dfd00e21bf711c46d
b8b1155ffe try polyfill is_list
2023-06-06 17:02:20 +00:00
Tomas Votruba
075297ce56 Updated Rector to commit 0af705fb570340cb0e4fbc0b9e897b09bd172f5c
0af705fb57 debug
2023-06-06 16:41:24 +00:00
Tomas Votruba
84532f58cf Updated Rector to commit b852d706e3c13bc862a91acac245b313db357450
b852d706e3 Remove AffectedFilesCount as unused (#4094)
2023-06-06 15:06:12 +00:00
Tomas Votruba
368e973125 Updated Rector to commit be31c8faec553f9247f3c0d810648ec22b91b827
be31c8faec Remove ChangeGlobalVariablesToPropertiesRector as the scope might change after the variable is defined, better handle with PHPStan (#4086)
2023-06-05 14:37:00 +00:00
Tomas Votruba
bc7911e5d1 Updated Rector to commit a61fbf265d2995453ad8d9f12b6bb00ff1937162
a61fbf265d Remove removeNode() from couple rules (#4083)
2023-06-05 13:42:47 +00:00
Tomas Votruba
917ce32d7a Updated Rector to commit ddcc807ffcdf24c49889125682d1bcb223387d09
ddcc807ffc Make use of REMOVE_NODE return constant in refator() method (#4075)
2023-06-05 09:32:57 +00:00
Tomas Votruba
7b17dd2d5b Updated Rector to commit 02b93319906ffa9842cbab8f80d58d8b5576cf43
02b9331990 [Traverser] Add BreakingRemovalGuardNodeVisitor to reduce parent attribute usage on BreakingRemovalGuard (#3978)
2023-06-04 10:46:22 +00:00
Tomas Votruba
26ee850893 Updated Rector to commit 6dd57a913efe6fd5eb03542300b93cb1c22fc4dc
6dd57a913e Merge autoImport() tests (#4050)
2023-06-02 13:09:14 +00:00
Tomas Votruba
1f621e91a4 Updated Rector to commit 88eed987cc361166359c158ffd22d264d165aa8b
88eed987cc Ensure check isFirstClassCallable() before node->getArgs() on CallLike (#4049)
2023-06-02 12:32:12 +00:00
Tomas Votruba
b0cbcaf37b Updated Rector to commit 5d6cff121b884ce17d6cf117e60b74dd67af75f2
5d6cff121b Move test to rector-doctrine (#4048)
2023-06-02 10:21:56 +00:00
Tomas Votruba
9eed15ece9 Updated Rector to commit 897cdda68d73ed5fcc1c768219207ff54c8459cb
897cdda68d Apply coding standard (#4047)
2023-06-02 10:03:55 +00:00
Tomas Votruba
94475b36c9 Updated Rector to commit 7cde4132f7705a0f941867d66c909abd114e758d
7cde4132f7 Revert [Core] No need reindex FileWithoutNamespace on beforeTraverse (#4043) (#4044)
2023-06-02 08:59:08 +00:00
Tomas Votruba
26d8422934 Updated Rector to commit 7cde4132f7705a0f941867d66c909abd114e758d
7cde4132f7 Revert [Core] No need reindex FileWithoutNamespace on beforeTraverse (#4043) (#4044)
2023-06-02 07:37:33 +00:00
Tomas Votruba
4798412baf Updated Rector to commit 90b1f9fdd37038b82df9c1b14fd2114b3075468c
90b1f9fdd3 [Core] No need reindex FileWithoutNamespace on beforeTraverse (#4043)
2023-06-02 03:58:22 +00:00
Tomas Votruba
2e072dd15a Updated Rector to commit cfccdd090b640d7b63592eca1744e0582db19830
cfccdd090b [CodingStyle] Skip first class callable on UnSpreadOperatorRector (#4041)
2023-06-01 23:56:12 +00:00
Tomas Votruba
8f92523b3a Updated Rector to commit 965b5f72045e3a94adf1eab83accafb52bfbe92a
965b5f7204 [CodeQuality] Exclude first class callable from IntvalToTypeCastRector (#7962) (#4040)
2023-06-01 22:33:20 +00:00
Tomas Votruba
ed61663929 Updated Rector to commit 1e4568bdae763335c904ecd3d03a79f1ac129d0f
1e4568bdae Avoid removing use with removeNode() in ClassRenamer (#4039)
2023-06-01 16:05:57 +00:00
Tomas Votruba
6bffa5fbeb Updated Rector to commit 1e4568bdae763335c904ecd3d03a79f1ac129d0f
1e4568bdae Avoid removing use with removeNode() in ClassRenamer (#4039)
2023-06-01 15:56:03 +00:00
Tomas Votruba
6ffdc0c6a4 Updated Rector to commit 89fc9dbd9c1b6e1feb35a777926a443db01b0824
89fc9dbd9c Remove unused BinaryOpTreeRootLocator (#4038)
2023-06-01 14:34:35 +00:00
Tomas Votruba
a4b4c3aab2 Updated Rector to commit bdc2fc99631f67eeb2d96e2cf0906279c2561c9a
bdc2fc9963 [NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
2023-06-01 09:22:42 +00:00
Tomas Votruba
9a2931cbe4 Updated Rector to commit bdc2fc99631f67eeb2d96e2cf0906279c2561c9a
bdc2fc9963 [NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
2023-06-01 08:56:46 +00:00
Tomas Votruba
c0ad822683 Updated Rector to commit 227186b39430fee40e5c6ba5ff7261700c9d5031
227186b394 [Performance] Reduce parent lookup on PropertyFetchAnalyzer (#4034)
2023-05-31 13:04:27 +00:00
Tomas Votruba
c8207cff85 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-31 08:33:32 +00:00
Tomas Votruba
f7d04bd361 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-31 02:38:09 +00:00
Tomas Votruba
089eca6986 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-31 00:18:13 +00:00
Tomas Votruba
3342a558a3 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-30 20:19:22 +00:00
Tomas Votruba
17e8e0f374 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-30 15:53:28 +00:00
Tomas Votruba
9335e75d7b Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-30 15:40:10 +00:00
Tomas Votruba
f9be2b1c61 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-30 15:24:14 +00:00
Tomas Votruba
afcc6c02eb Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-30 14:55:26 +00:00
Tomas Votruba
95843bd31e Updated Rector to commit 73c1ac45e78b2e8b091f7a0cbcc0b54b9b24bb42
73c1ac45e7 Make use of key to remove property (#4032)
2023-05-30 14:29:35 +00:00
Tomas Votruba
977bb7a99e Updated Rector to commit 46d2aacd80260f0d6ff7ed0454100be3ed279b63
46d2aacd80 [Core] Ensure define  before refactor() called to avoid changed during refactor (#4031)
2023-05-30 14:11:13 +00:00
Tomas Votruba
5e8e8dbc29 Updated Rector to commit 46d2aacd80260f0d6ff7ed0454100be3ed279b63
46d2aacd80 [Core] Ensure define  before refactor() called to avoid changed during refactor (#4031)
2023-05-30 13:37:00 +00:00
Tomas Votruba
fed7beb412 Updated Rector to commit 5bae1ebdcee327ac3dcf4a25175f9013af54ec3d
5bae1ebdce trigger CI
2023-05-30 10:33:01 +00:00
Tomas Votruba
1a69dcf241 Updated Rector to commit d413dc15e6cbe5ac10f5fe6fd06711fcb7267a0b
d413dc15e6 Remove unused method addNodesBeforeNode() (#4024)
2023-05-30 09:18:02 +00:00
Tomas Votruba
28d2a3ced0 Updated Rector to commit d413dc15e6cbe5ac10f5fe6fd06711fcb7267a0b
d413dc15e6 Remove unused method addNodesBeforeNode() (#4024)
2023-05-30 09:05:54 +00:00
Tomas Votruba
6f79fcfb1e Updated Rector to commit e2213f21762d74946a34197921aa905623493e8c
e2213f2176 Remove unused addNodeAfterNode(), return nodes instead (#4023)
2023-05-30 08:41:10 +00:00