Commit Graph

1323 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
73e6cf210e Updated Rector to commit 3d4a86c31511bda1ded00a70ed36c72849d19824
3d4a86c315 [ReadWrite] Remove parent lookup on ArrayDimFetchParentNodeReadAnalyzer (#4239)
2023-06-16 13:31:36 +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
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
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
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
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
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
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
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
Tomas Votruba
672d7d7dfe Updated Rector to commit e2213f21762d74946a34197921aa905623493e8c
e2213f2176 Remove unused addNodeAfterNode(), return nodes instead (#4023)
2023-05-30 08:16:08 +00:00
Tomas Votruba
305fa5edd6 Updated Rector to commit b97fe194b45a7915fd1509b9388315f49582cb2c
b97fe194b4 [Php80] Remove parent attribute usage on ClassPropertyAssignToConstructorPromotionRector (#4022)
2023-05-29 23:40:49 +00:00
Tomas Votruba
74fee33fad Updated Rector to commit 5979f30756eca7e8f2736514451d5c7bdfed50ce
5979f30756 Remove removeNode() from FuncGetArgsToVariadicParamRector (#4021)
2023-05-29 21:33:59 +00:00
Tomas Votruba
84d2957596 Updated Rector to commit 3dfe7f9c11dc0ea75ba73da6f4639c1718843dc2
3dfe7f9c11 [Test] Enable displayDetailsOnTestsThatTriggerWarnings to true in tests to show warning (#4020)
2023-05-29 14:21:02 +00:00
Tomas Votruba
9f963a664a Updated Rector to commit 3dfe7f9c11dc0ea75ba73da6f4639c1718843dc2
3dfe7f9c11 [Test] Enable displayDetailsOnTestsThatTriggerWarnings to true in tests to show warning (#4020)
2023-05-29 14:08:28 +00:00
Tomas Votruba
8d722f5b92 Updated Rector to commit 3dfe7f9c11dc0ea75ba73da6f4639c1718843dc2
3dfe7f9c11 [Test] Enable displayDetailsOnTestsThatTriggerWarnings to true in tests to show warning (#4020)
2023-05-29 14:02:39 +00:00
Tomas Votruba
4c71bd6171 Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 13:42:03 +00:00
Tomas Votruba
8925a6a4f0 Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 13:28:38 +00:00
Tomas Votruba
e4e5a9d57d Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 12:58:14 +00:00
Tomas Votruba
0610c13b0a Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 12:45:31 +00:00
Tomas Votruba
694cd80b82 Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 12:40:47 +00:00
Tomas Votruba
2f8ba99efb Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 12:32:37 +00:00
Tomas Votruba
c98c306aa8 Updated Rector to commit cd48bfcc4785fb0d2cf828240f8f71231b232c85
cd48bfcc47 Cleanup removeNodeFromStatements(), removeArg(), removeParam(), removeStmt() methods and remove nodes directly (#4012)
2023-05-29 08:39:56 +00:00
Tomas Votruba
b4e067384d Updated Rector to commit 7891fdab42c174d2443674004396aef362994d4a
7891fdab42 [ProcessAnalyzer] Remove parent attribute on RectifiedAnalyzer (#4010)
2023-05-29 00:14:54 +00:00
Tomas Votruba
45419321ce Updated Rector to commit 95d3dc93770718d2337a7addbfed021f6cad8072
95d3dc9377 [DeadCode] Remove parent lookup on RemoveUnusedPrivateMethodRector (#4005)
2023-05-28 21:02:39 +00:00
Tomas Votruba
aadd5bb215 Updated Rector to commit 3fb912c94432b75fb50a14071f584671a882970d
3fb912c944 Rebuild docs (#4002)
2023-05-28 20:41:33 +00:00
Tomas Votruba
80189225db Updated Rector to commit 4d4c73d5957cd03b26d4a7f6b6b3e209f4506cd3
4d4c73d595 [automated] Apply Coding Standard (#3998)
2023-05-28 14:14:36 +00:00
Tomas Votruba
c1d2a2d580 Updated Rector to commit 4d4c73d5957cd03b26d4a7f6b6b3e209f4506cd3
4d4c73d595 [automated] Apply Coding Standard (#3998)
2023-05-28 13:57:53 +00:00
Tomas Votruba
23ab3fd50e Updated Rector to commit fddbb6231342654d15bbaec2792f182881ef66fe
fddbb62313 [TypeDeclaration] Remove parent attribute on ConstructorAssignDetector (#3996)
2023-05-27 21:03:27 +00:00
Tomas Votruba
f8cd68d049 Updated Rector to commit 0f412e7961d9c00f47185bd8ed235db950f2d3eb
0f412e7961 handle nested ternary have last and start with () (#3981)
2023-05-27 03:12:54 +00:00
Tomas Votruba
c9d2c84bc5 Updated Rector to commit 385a9cb5f1235808c7226c2efccdc10fc6de6542
385a9cb5f1 [Php74] Skip parenthesize ternary if on ParenthesizeNestedTernaryRector (#3980)
2023-05-27 00:03:37 +00:00
Tomas Votruba
3267b9499d Updated Rector to commit 385a9cb5f1235808c7226c2efccdc10fc6de6542
385a9cb5f1 [Php74] Skip parenthesize ternary if on ParenthesizeNestedTernaryRector (#3980)
2023-05-26 23:56:10 +00:00
Tomas Votruba
0d04da1bab Updated Rector to commit 33d05d3b9ee7838d254edf58dbd05a355891b48b
33d05d3b9e Refactor RenameVariableToMatchMethodCallReturnTypeRector to StmtsAwareInterface (#3977)
2023-05-26 16:04:15 +00:00
Tomas Votruba
2a39baa0c1 Updated Rector to commit 179b5cba82257fd1d310301679a1913db458809e
179b5cba82 Make ChangeGlobalVariablesToPropertiesRector add properties directly, remove Nette inject methods (#3957)
2023-05-24 18:48:59 +00:00
Tomas Votruba
bd8dcc9cae Updated Rector to commit 33c04c5c90725b36c864cfc86c5491f8d6912396
33c04c5c90 [DeadCode] Remove next attribute on RemoveUnusedVariableAssignRector (#3917)
2023-05-21 22:39:40 +00:00
Tomas Votruba
cb0cb645f5 Updated Rector to commit e26c80b297515d924f61ed8518a42cdcbe666e19
e26c80b297 [Traverser] Clean up FileWithoutNamespace check on StmtKeyNodeVisitor.php (#3901)
2023-05-20 15:16:20 +00:00
Tomas Votruba
ae79c1dc04 Updated Rector to commit 83a4a60b4c48d017694f2a0867f821c33ff5b27c
83a4a60b4c Drop AttributeKey::SCOPE in MethodParameterTypeResolver (#3873)
2023-05-16 17:11:44 +00:00
Tomas Votruba
1c829c24c3 Updated Rector to commit 5d78e95c82dc59cd66919b703193d0978d01b902
5d78e95c82 Fix phpunit error on rector/rector:dev-main due to container cache (#3865)
2023-05-16 04:29:24 +00:00
Tomas Votruba
89439d883f Updated Rector to commit 95b1789a871adeb6b6555949d3cf32b0b4060613
95b1789a87 Drop AttributeKey::SCOPE in ArrayCallableMethodMatcher (#3835)
2023-05-15 08:51:25 +00:00
Tomas Votruba
1c529e1b8f Updated Rector to commit 6482c594e4b554a814165d11baeece9498868caa
6482c594e4 Update test expectations (#3837)
2023-05-14 09:35:45 +00:00
Tomas Votruba
900facbf32 Updated Rector to commit 6dea82deb1e64a47c0284a86b1b448dc8b1fc05f
6dea82deb1 Drop AttributeKey::SCOPE in Rector classes (#3791)
2023-05-13 16:50:14 +00:00
Tomas Votruba
af39f1cc41 Updated Rector to commit 56e13466c3ba3c23c0eb5e7e3af6908433c0c6af
56e13466c3 [CI] Enable zend.assertions=1 on CI (#3823)
2023-05-13 16:44:37 +00:00
Tomas Votruba
c0d9ece267 Updated Rector to commit 662986980adce40be299cc221b715fba883e86cd
662986980a Drop AttributeKey::SCOPE in Rector classes (#3792)
2023-05-11 08:30:47 +00:00
Tomas Votruba
8afa5f961e Updated Rector to commit 074b1781b3fa7c7e23470c57ab85c0bd5fe0bfd2
074b1781b3 Remove RemoveUnusedVariableAssignRector, as could be breaking code in order of excution and hard to do reliable (#3793)
2023-05-11 07:56:32 +00:00
Tomas Votruba
bf29cbeb9e Updated Rector to commit 376f6cbd4a51290c63a42d77ac9fc9a3a5d0ab67
376f6cbd4a De-duplicate isAnonymous check (#3782)
2023-05-09 19:13:23 +00:00
Tomas Votruba
e0ddc70719 Updated Rector to commit d9374ddfa6c8a1ae41c1ac271d102980c6eba8f5
d9374ddfa6 [Dep] Move phpstan-phpunit to require-dev (#3734)
2023-05-05 09:58:02 +00:00
Tomas Votruba
68933a635e Updated Rector to commit 67ce52f0a8d6fff37ca569deba67c5635684dde6
67ce52f0a8 [PHPStan] Fix phpstan notice protected element usage (#3730)
2023-05-04 13:18:16 +00:00
Tomas Votruba
ad0c32ebbb Updated Rector to commit 05cc9af356d08f264c0faabd6a22149c1c06da89
05cc9af356 [CodingStyle] Skip concat on first arg on ConsistentImplodeRector (#3702)
2023-05-02 07:09:01 +00:00
Tomas Votruba
4f456a1654 Updated Rector to commit 5c1be93b80c3f7bfd8bd158ba0a55501a7acaefc
5c1be93b80 PHP 8.2 is supported (#3717)
2023-05-01 11:37:03 +00:00
Tomas Votruba
65abab80de Updated Rector to commit 5c1be93b80c3f7bfd8bd158ba0a55501a7acaefc
5c1be93b80 PHP 8.2 is supported (#3717)
2023-05-01 01:36:32 +00:00
Tomas Votruba
bc397e417b Updated Rector to commit c00475c746d1cff33dafb21e8d51815a0b711efc
c00475c746 Update phpdoc-parser to ^1.20.3 (#3691)
2023-04-27 11:55:52 +00:00
Tomas Votruba
f00ddc261c Updated Rector to commit 14cc7d49406c55acd1ce7e83c7cddd23b9fd12a2
14cc7d4940 [TypeDeclaration] Allow multiple declare on DeclareStrictTypesRector (#3628)
2023-04-18 11:12:39 +00:00
Tomas Votruba
a5fb0da98c Updated Rector to commit 8605fb95942c6433ba6c741d75e6fcdb65e92a49
8605fb9594 Apply strict declare (#3625)
2023-04-17 16:23:36 +00:00
Tomas Votruba
f924c3de30 Updated Rector to commit 0dfc92f16f7d3d21a21ae5e6f6abb21467fb48da
0dfc92f16f Add declare strict_types rule, finally 🥳 (#3619
2023-04-17 15:47:09 +00:00
Tomas Votruba
6e25b4629b Updated Rector to commit eb34dee89488a8869ae5b726b03c16fe2979f7f5
eb34dee894 [automated] Re-Generate Nodes/Rectors Documentation (#3617)
2023-04-16 08:39:44 +00:00
Tomas Votruba
8754b18496 Updated Rector to commit eb34dee89488a8869ae5b726b03c16fe2979f7f5
eb34dee894 [automated] Re-Generate Nodes/Rectors Documentation (#3617)
2023-04-16 08:10:58 +00:00
Tomas Votruba
b35ad51c2c Updated Rector to commit eb34dee89488a8869ae5b726b03c16fe2979f7f5
eb34dee894 [automated] Re-Generate Nodes/Rectors Documentation (#3617)
2023-04-16 07:57:18 +00:00
Tomas Votruba
679f8a6710 Updated Rector to commit 0389ec89d79713b46f280cc6f028783c1d4e48b8
0389ec89d7 Improve ArraySpreadInsteadOfArrayMergeRector (#3568) (#3589)
2023-04-08 16:24:17 +00:00
Tomas Votruba
3ff4433fbb Updated Rector to commit 073f2d62a5beb49e270b2eab2433b60adb974cb6
073f2d62a5 Improve ArraySpreadInsteadOfArrayMergeRector (#3568)
2023-04-07 08:37:53 +00:00
Tomas Votruba
5a5da62b5c Updated Rector to commit a36a4d9fcb244d5d49a45255d9581a16410dff7a
a36a4d9fcb Remove unused imports (#3567)
2023-04-06 09:24:11 +00:00
Tomas Votruba
288d74ea5d Updated Rector to commit be24410a00da07e1aeb4eba8083d0e06f19868a9
be24410a00  [PostRector] Skip remove unused used at @see for Generic tag  (#3562)
2023-04-05 00:15:15 +00:00
Tomas Votruba
123448aa91 Updated Rector to commit 3cbf7104d0b81ba1b930ce9a4cd3456e1c082b43
3cbf7104d0 [CodeQuality] Skip empty cases on SwitchTrueToIfRector (#3556)
2023-04-03 08:47:41 +00:00
Tomas Votruba
9038a0d99c Updated Rector to commit 1a91d04c5256e451c744eeb848aaa0182dd227c5
1a91d04c52 [CodeQuality] Add cast scalar support on ReturnTypeFromStrictScalarRector (#3544)
2023-04-01 10:14:17 +00:00
Tomas Votruba
ebdd5e73b4 Updated Rector to commit 34ff3246d3d5f040ca66f30a1eb883923962aecd
34ff3246d3 [CodingStyle] Remove parent attribute usage on RemoveFinalFromConstRector (#3536)
2023-03-30 09:04:49 +00:00
Tomas Votruba
bee65d65f2 Updated Rector to commit 8ff7747eab74154d32f76c9db4443762567e6dda
8ff7747eab RemoveNonExistingVarAnnotationRector: Allow return annotations (#3534)
2023-03-29 01:53:56 +00:00
Tomas Votruba
f4984ebd62 Rector 0.15.23 2023-03-22 15:22:45 +00:00
Tomas Votruba
b5afb126a3 Updated Rector to commit 5e29a35bb60f92bece6fede8080645e7ba7fc421
5e29a35bb6 Performance: Reduce isObjectType calls (#3502)
2023-03-22 14:20:22 +00:00
Tomas Votruba
73a02c4fb1 Updated Rector to commit e1dd98dc51c214a743fe1785fd264d2ea27efd72
e1dd98dc51 [DowngradePhp73][DowngradePhp74] Fix infinite loop on DowngradeNullCoalescingOperatorRector+DowngradePhp73JsonConstRector (#3484)
2023-03-17 12:44:08 +00:00
Tomas Votruba
6ac3776e07 Updated Rector to commit 107914ea0b9152a1651f25478a0785db4e96f5f5
107914ea0b [CodingStyle] Skip var ArrayDimFetch on SplitDoubleAssignRector (#3481)
2023-03-16 10:27:27 +00:00
Tomas Votruba
bee2d189ab Updated Rector to commit c240c69f45c29685eeace5ad0737ef049dff5211
c240c69f45 [PostRector] Allow unused alias removal from Use_ on UnusedImportRemovingPostRector (#3477)
2023-03-14 10:21:20 +00:00
Tomas Votruba
bd50266270 Updated Rector to commit 9d33ac92be2ac793d06d2da7f13a2008544d8d30
9d33ac92be Fix downgrade vendor/tracy .phtml file (#3469)
2023-03-09 14:26:00 +00:00
Tomas Votruba
3cdd9d3ecb Updated Rector to commit b3da981d01f2caa1534033e208a6131c9e61b9c3
b3da981d01 [Renaming] Keep unused import unless configured ->removeUnusedImports() on RenameClassRector on no namespace (#3460)
2023-03-06 20:21:39 +00:00
Tomas Votruba
9a50d02173 Updated Rector to commit d8dae934146cb5b99c6bd9eba340aa1863dce08c
d8dae93414 styling
2023-03-06 11:34:27 +00:00
Tomas Votruba
bc4d62886b Updated Rector to commit b2e90e8df6609979f068858c5912aba7e2d1ede3
b2e90e8df6 [DeadCode] Skip assign inside if cond on RemoveAlwaysTrueIfConditionRector (#3447)
2023-03-04 08:51:42 +00:00
Tomas Votruba
9d9213d70c Updated Rector to commit 658e48f31fcb26a0e56740a49a994dbab3c1e6b5
658e48f31f Handle ->getDefaultValueExpression() return null (#3446)
2023-03-03 10:07:09 +00:00
Tomas Votruba
f2707dea96 Updated Rector to commit c9a621de856eac0be037169c3c07c1b279b3cc9f
c9a621de85 [Privatization] Remove ReplaceStringWithClassConstantRector as rather dynamic and can lead to unexpected results (#3443)
2023-03-03 03:15:36 +00:00
Tomas Votruba
7d0f151a40 Updated Rector to commit a2cd7283fbf2d6b2904016c51e3f4a545caa0256
a2cd7283fb Typo fix comment php 7.3 compat on rector workflow (#3432)
2023-03-01 13:00:30 +00:00
Tomas Votruba
139ecb760e Updated Rector to commit 3c34abb42a46a7e1f49dbef49e72dc49850a5dd2
3c34abb42a Skip not natively typed property in AddParamTypeFromPropertyTypeRector (#3421)
2023-02-27 21:26:51 +00:00
Tomas Votruba
547b750176 Updated Rector to commit 61348a86a5a9f113e0bd7d40324b3a0eec6fcd7d
61348a86a5 [e2e][core] Do not print on execute without --dry-run when no change (#3407)
2023-02-23 13:52:00 +00:00
Tomas Votruba
cf3b24e388 Updated Rector to commit f9f4217a6d0cf0a13f17af52a4c4f52e246fbe5b
f9f4217a6d [e2e] [printer] Fix short open tag mixed php+html cause surplus <?php  (#3395)
2023-02-21 11:29:31 +00:00
Tomas Votruba
2a475d5b03 Updated Rector to commit 9c6f41e6c0b943912ca1fd2b6a289106b556efbe
9c6f41e6c0 Fix external packages bleeding edge includes (#3389)
2023-02-17 19:53:09 +00:00
Tomas Votruba
def6b091b1 Updated Rector to commit 5db390cb7b67d3537acc34d3eabb04de1ef4b35a
5db390cb7b [Php81] Handle null defined in variable first on NullToStrictStringFuncCallArgRector (#3385)
2023-02-16 08:42:29 +00:00
Tomas Votruba
826539a991 Rector 0.15.16 2023-02-14 22:22:09 +00:00
Tomas Votruba
9805e05484 Rector 0.15.15 2023-02-14 21:45:03 +00:00
Tomas Votruba
fc230fdbc6 Updated Rector to commit dffddb244ffe016e94446f00a1ac61daac900ca6
dffddb244f Fix grammar in user-facing exception (#3379)
2023-02-14 14:21:08 +00:00
Tomas Votruba
90ca96064c Updated Rector to commit 56e1633c826c009e643873ca8461ea45d0fff217
56e1633c82 [TypeMapper] Use Identifier instead of Name on ObjectWithoutClassType (#3377)
2023-02-14 11:52:01 +00:00
Tomas Votruba
0888a196e1 Updated Rector to commit dbaf0da38ac23091d39d4df71749da474e8df8ac
dbaf0da38a [TypeMapper] Use Identifier instead of Name on non-object types (#3375)
2023-02-13 16:16:52 +00:00
Tomas Votruba
e946e57476 Updated Rector to commit dbaf0da38ac23091d39d4df71749da474e8df8ac
dbaf0da38a [TypeMapper] Use Identifier instead of Name on non-object types (#3375)
2023-02-13 14:43:04 +00:00
Tomas Votruba
535ff0b0ef Updated Rector to commit 91ddd680c78eacc11006126398d64c4b97d38694
91ddd680c7 [TypeDeclaration] Remove unused intersection docblock on nullable intersection on TypedPropertyFromAssignsRector (#3373)
2023-02-13 01:08:43 +00:00
Tomas Votruba
baa729956a Updated Rector to commit 2acb78be7361011f47c301344d8bb8ef4aa0e33d
2acb78be73 [Php55] Handle crash on direct $ without double quote backreference on PregReplaceEModifierRector (#3369)
2023-02-11 12:25:19 +00:00
Tomas Votruba
3483839cce Updated Rector to commit 2acb78be7361011f47c301344d8bb8ef4aa0e33d
2acb78be73 [Php55] Handle crash on direct $ without double quote backreference on PregReplaceEModifierRector (#3369)
2023-02-11 11:34:35 +00:00
Tomas Votruba
9e70c63b46 Updated Rector to commit 2acb78be7361011f47c301344d8bb8ef4aa0e33d
2acb78be73 [Php55] Handle crash on direct $ without double quote backreference on PregReplaceEModifierRector (#3369)
2023-02-10 11:47:52 +00:00
Tomas Votruba
dd993a84a8 Updated Rector to commit beb6e9127c74b5844dc6165cd60cba9c7136a411
beb6e9127c Skip namespaced use no backslash on removeUnusedImports() (#3366)
2023-02-08 22:45:28 +00:00
Tomas Votruba
182c2e0346 Updated Rector to commit d762bcedae5f4b8472dd70532566755b83701e88
d762bcedae Apply remove unused imports on the rest of RenameClassRector test fixtures (#3364)
2023-02-08 16:03:21 +00:00
Tomas Votruba
9463a3bf8f Updated Rector to commit b9fef0f123d379125f7d946c49959c292feea723
b9fef0f123 Add unused import remover to cleanup use imports after changes (#3358)
2023-02-08 15:30:12 +00:00
Tomas Votruba
99c36383bb Updated Rector to commit 638a0ad9723a505b4908ed6b6534027bfd4dc5f2
638a0ad972 Remove unused RectorServiceConfigurator, use RectorConfig instead (#3363)
2023-02-08 14:55:14 +00:00
Tomas Votruba
f0b34d4760 Updated Rector to commit 5fc8c1a0539ba0f4ff29ed90f29633d4414e3ff6
5fc8c1a053 Replace ParametersAcceptorSelector::selectSingle() with ParametersAcceptorSelectorVariantsWrapper::select() when possible (#3361)
2023-02-08 10:25:24 +00:00
Tomas Votruba
0a33500839 Updated Rector to commit 651e283c439ef593c6609ccc2623e11142544f4f
651e283c43 The php-parser 5.0 is far away from release, no need to include it for now (#3355)
2023-02-07 17:02:42 +00:00
Tomas Votruba
b971f67811 Updated Rector to commit 51fcdc2639267a875c3d5c1a985800104e984ead
51fcdc2639 [Cache] Replace Strings::webalize() with sha1_file() from resolved path on ChangedFilesDetector (#3356)
2023-02-07 16:56:38 +00:00
Tomas Votruba
76b2c64b5f Updated Rector to commit e68c8d23cbbdb9dbfef66133af6bb4f1857015ad
e68c8d23cb Fix CallableTypeParameterNode and IdentifierTypeParameterNode crash (#3353)
2023-02-07 12:41:14 +00:00
Tomas Votruba
f397ad92ed Updated Rector to commit e68c8d23cbbdb9dbfef66133af6bb4f1857015ad
e68c8d23cb Fix CallableTypeParameterNode and IdentifierTypeParameterNode crash (#3353)
2023-02-07 12:32:23 +00:00
Tomas Votruba
05df336f8e Rector 0.15.13 2023-02-07 01:46:29 +00:00
Tomas Votruba
5cc4e62142 Updated Rector to commit 74bb7a0a7153e3b4423dd816da23c5de55875fc2
74bb7a0a71 Remove deprecated TYPE_DECLARATION_SET (#3352)
2023-02-07 00:42:51 +00:00
Tomas Votruba
fc81ed9173 Updated Rector to commit 75d1dca2ef328d91cff2b642e79f1c442696d0a1
75d1dca2ef Don't get type from PropertyFetch for not natively typed properties (#3327)
2023-02-06 18:49:21 +00:00
Tomas Votruba
8266b2e01e Updated Rector to commit 2db6fc62f43a895e8ea3a7d1fa98c03dee299c92
2db6fc62f4 Fix duplicate fixture class take 3 (#3348)
2023-02-06 16:21:54 +00:00