Commit Graph

4977 Commits

Author SHA1 Message Date
Tomas Votruba
f73bcd4ef8 Updated Rector to commit c97e4ffb0534d388b5f51508491916f54d3f342a
c97e4ffb05 [Naming] Remove matchesStringName() check completely from NodeNameResolver, including endsWith() method - use getName() and compare directly instead (#4954)
2023-09-09 22:49:40 +00:00
Tomas Votruba
5ab2aa34fb Updated Rector to commit 416e52ad9e2164bc7d8e11518e3c0165862cb1b3
416e52ad9e fix typo (#4956)
2023-09-09 18:21:23 +00:00
Tomas Votruba
6adcb19ec9 Updated Rector to commit 474b3a222684b9c343ba6b43ea5bd39b78fbef2a
474b3a2226 Faster name resolving (#4955)
2023-09-09 18:18:18 +00:00
Tomas Votruba
81d65055b2 Updated Rector to commit 2d5d72f3ba66a63acb991107ba763e147c9840f4
2d5d72f3ba [Naming] Introduce startsWith() to acompany endsWith() naming check (#4953)
2023-09-09 14:19:44 +00:00
Tomas Votruba
3f02794da2 Updated Rector to commit 27078e79628cb14866b69dc6b8c2181fbec1d4c6
27078e7962 [DX] Add FileProcessResult + kick of collectors (#4947)
2023-09-09 14:15:49 +00:00
Tomas Votruba
7540a5e283 Updated Rector to commit 9a322af593a3ed9de20a535f613ed25e12ecc823
9a322af593 BC: Separated regex matching in NodeNameResolver->isName() (#4951)
2023-09-09 14:08:25 +00:00
Tomas Votruba
c77e927087 Updated Rector to commit b82ad4ca58ebb42307093858a1c3dd60ecee13aa
b82ad4ca58 [DX] Move PostFileProcessor to FileProcessor, as always should run together (#4952)
2023-09-09 13:58:57 +00:00
Tomas Votruba
e185753ce7 Updated Rector to commit ee6e3e0940eff60bb198b95899668d8222d551ec
ee6e3e0940 Reduce excessive regex use (#4950)
2023-09-09 11:46:14 +00:00
Tomas Votruba
5102d25a1e Updated Rector to commit 672df31993b36396c3987bf6082f6218ba5cd26c
672df31993 Remove UnSpreadOperatorRector as not clear value and spread used on purpose (#4949)
2023-09-09 11:18:54 +00:00
Tomas Votruba
b687f1d77e Updated Rector to commit 048effdf44726307b24df0d9abcb27e7d5be7d3f
048effdf44 Remove mixed doctype for tokens (#4944)
2023-09-09 11:10:25 +00:00
Tomas Votruba
d7411e1be0 Updated Rector to commit 2da3246fdfae7387ac7fa0ea7ab6b4cada58b9bf
2da3246fdf Cleanup PHPStan errors, fix json data contract doc types (#4948)
2023-09-09 11:02:01 +00:00
Tomas Votruba
8e8434e575 Updated Rector to commit b8485c6c17c6e1f128a33eaf6b63dfc605d77db3
b8485c6c17 Fix Rector extension config loading (#4946)
2023-09-09 10:50:11 +00:00
Tomas Votruba
2c9f64e0d6 Updated Rector to commit 41870cb493cbae9725b8fdb682d53d9deaa33eae
41870cb493 Add comment for macOS empty string on WorkerCommandLineFactoryTest (#4945)
2023-09-09 10:38:56 +00:00
Tomas Votruba
148de73048 Updated Rector to commit 0a1835fc27574e78525dc508ef24b08e42ca6a47
0a1835fc27 [Testing] Fix running unit test on macOS (#4941)
2023-09-09 07:31:31 +00:00
Tomas Votruba
3c1b438cf8 Updated Rector to commit 18df85eafe0bc57e8be41d1051ca46c19c581cef
18df85eafe [Testing] Ensure immediate remove file after dump() to sys_get_temp_dir()  after FixtureTempFileDumper::dump() usage (#4940)
2023-09-08 17:35:25 +00:00
Tomas Votruba
d05c52724c Updated Rector to commit a0be8b892d92d5bbbc64713dc8469904a15fe6b0
a0be8b892d [DX] Cleanup type resolvers (#4939)
2023-09-08 14:06:44 +00:00
Tomas Votruba
e844be2688 Updated Rector to commit feffd813a316ea0d9f1e0dd6ba45b90b88ae72c3
feffd813a3 [DX] Hide default symfony commands, show only rector ones (#4938)
2023-09-08 13:46:57 +00:00
Tomas Votruba
df5f31835a Updated Rector to commit 099994eb803ebf550ae77bbd5ebcac1263d6571a
099994eb80 [DI] introduce boot() method to avoid hacking beforeResolving() closures (#4937)
2023-09-08 10:19:50 +00:00
Tomas Votruba
fedb3edc8a Updated Rector to commit e4f1f1bab4d008108bf537ba3877dc2c4e64fa25
e4f1f1bab4 [NodeTypeResolver] Handle isObjectType() on new $class dynamic variable should return false compare to Object FQCN (#4936)
2023-09-07 18:43:32 +00:00
Tomas Votruba
4180102b55 Updated Rector to commit e4f1f1bab4d008108bf537ba3877dc2c4e64fa25
e4f1f1bab4 [NodeTypeResolver] Handle isObjectType() on new $class dynamic variable should return false compare to Object FQCN (#4936)
2023-09-07 18:37:52 +00:00
Tomas Votruba
06e012f8b4 Updated Rector to commit 2be5a4d4928468b981079704bd0946764a6a1ec3
2be5a4d492 Simplify AlwaysStrictScalarExprAnalyzer (#4935)
2023-09-07 13:52:32 +00:00
Tomas Votruba
306ecbf7e3 Updated Rector to commit 2be5a4d4928468b981079704bd0946764a6a1ec3
2be5a4d492 Simplify AlwaysStrictScalarExprAnalyzer (#4935)
2023-09-07 13:28:29 +00:00
Tomas Votruba
d295eb5d0d Updated Rector to commit 2be5a4d4928468b981079704bd0946764a6a1ec3
2be5a4d492 Simplify AlwaysStrictScalarExprAnalyzer (#4935)
2023-09-07 13:14:55 +00:00
Tomas Votruba
e7578a4299 Updated Rector to commit 2be5a4d4928468b981079704bd0946764a6a1ec3
2be5a4d492 Simplify AlwaysStrictScalarExprAnalyzer (#4935)
2023-09-07 13:09:24 +00:00
Tomas Votruba
4ae2dfa94e Updated Rector to commit 2be5a4d4928468b981079704bd0946764a6a1ec3
2be5a4d492 Simplify AlwaysStrictScalarExprAnalyzer (#4935)
2023-09-07 12:50:04 +00:00
Tomas Votruba
e30fbabf27 Updated Rector to commit b47adb55f7f7940987078fbe77f5222577a429b4
b47adb55f7 [TypeDeclaration] Add non native function return support on ReturnTypeFromStrictScalarReturnExprRector (#4934)
2023-09-07 11:28:19 +00:00
Tomas Votruba
88f0aaa761 Updated Rector to commit a2c34e0afe8ddd68c2c609c710636ddd3243ae91
a2c34e0afe [TypeDeclaration] Add test fixture return docblock on init method call assign as skipped on ReturnTypeFromStrictNewArrayRector (#4933)
2023-09-07 10:37:04 +00:00
Tomas Votruba
030adf9f7d Updated Rector to commit eebc3ce703e0d57794c1dd1823457b272e02403d
eebc3ce703 [TypeDeclaration] Ensure ArrayType on ReturnTypeFromStrictNewArrayRector::shouldAddReturnArrayDocType() (#4932)
2023-09-07 04:43:51 +00:00
Tomas Votruba
549a072c08 Updated Rector to commit fa28385f9b46b0119073fb4209762fce23f8c09a
fa28385f9b Refactor BetterNodeFinder::findFirstInFunctionLikeScoped() to work with SilentVoidResolver (#4931)
2023-09-07 04:03:06 +00:00
Tomas Votruba
94613faf8f Updated Rector to commit 54799fc3d3a341643d050d06ecf72b467c8d37e8
54799fc3d3 [TypeDeclaration] Skip return after return closure on AddVoidReturnTypeWhereNoReturnRector (#4930)
2023-09-07 02:10:00 +00:00
Tomas Votruba
087ff4d5eb Updated Rector to commit e47f63176a7913ff040bfbce75a260a4ec47ceab
e47f63176a [TypeDeclaration] Add init assign method call support on ReturnTypeFromStrictNewArrayRector (#4929)
2023-09-07 01:50:05 +00:00
Tomas Votruba
73ca9074e0 Updated Rector to commit 2a697f79ecd82e4b59091f59927d8b9315113c18
2a697f79ec [TypeDeclaration] Add fallback return direct array support on ReturnTypeFromStrictNewArrayRector (#4928)
2023-09-06 19:40:05 +00:00
Tomas Votruba
e6e6042119 Updated Rector to commit 10eb09f02d825d01caf92e2c45c73dddf6aa3430
10eb09f02d [cleanup] Remove deprecated NonPhpRectorInterface, PseudoNamespaceToNamespaceRector and mysql to mysqli sets (#4927)
2023-09-06 16:03:21 +00:00
Tomas Votruba
55c7e63a09 Updated Rector to commit d3719c2e953f3be1b5b1e0a2eb7ba992b65a8e6d
d3719c2e95 [TypeDeclaration] Place ReturnTypeFromStrictFluentReturnRector before ReturnTypeFromReturnNewRector (#4926)
2023-09-06 14:55:50 +00:00
Tomas Votruba
f36a223be4 Updated Rector to commit aee42009d91dfdca128760fc4b37e09e101db23f
aee42009d9 AddVoidReturnTypeWhereNoReturnRector: fix never type handling (#4918)
2023-09-06 13:12:52 +00:00
Tomas Votruba
51c70b1a6e Updated Rector to commit eca01b375a62cca2d79ee5a1a7fff1795f3cba11
eca01b375a Trigger Rectify (#4924)
2023-09-06 12:41:35 +00:00
Tomas Votruba
7866e76540 Updated Rector to commit 15e924988caf800caffddf1906da948138daf44b
15e924988c Faster SilentVoidResolver (#4923)
2023-09-06 12:33:43 +00:00
Tomas Votruba
01bdd5bff5 Updated Rector to commit c17181453c5493f1ef2e43206759f12d715c18df
c17181453c [TypeDeclaration] Add append in loop support on ReturnTypeFromStrictNewArrayRector (#4922)
2023-09-06 12:12:53 +00:00
Tomas Votruba
df5f248c87 Updated Rector to commit 233209ade90b075fa18665470163f1128e546472
233209ade9 ReturnTypeFromStrictScalarReturnExprRector : Simplify testcase (#4921)
2023-09-06 12:06:59 +00:00
Tomas Votruba
3cee45fd42 Updated Rector to commit 0d2cdf0c48e4c0608ff4189e176c66aee92c820c
0d2cdf0c48 [TypeDeclaration] Use $type->isScalar()->yes() on AlwaysStrictScalarExprAnalyzer (#4920)
2023-09-06 11:44:15 +00:00
Tomas Votruba
752381df77 Updated Rector to commit c4ea636dcfb0a87f7fa7a7214e80ed98dac2444d
c4ea636dcf [TypeDeclaration] Add return empty string defined support on ReturnTypeFromStrictScalarReturnExprRector (#4919)
2023-09-06 11:35:48 +00:00
Tomas Votruba
8606564b50 Rector 0.18.2 2023-09-06 08:50:38 +00:00
Tomas Votruba
a4c5e31829 Updated Rector to commit 0abb641afd13ce5e3b9de47cbc099bd2c81ff765
0abb641afd cs
2023-09-05 19:58:08 +00:00
Tomas Votruba
2bbdfcfe3b Updated Rector to commit a21a3f17578cb8e13505ffe0e797ecfd12e86c4f
a21a3f1757 [Cleanup] Remove TypeToCallReflectionResolver as not needed anymore (#4917)
2023-09-05 19:57:28 +00:00
Tomas Votruba
4c7551da27 Updated Rector to commit aa7282195caab5889ee067ca3fb5eda62f26ed1b
aa7282195c [TypeDeclaration] Add return static object support on ReturnTypeFromStrictFluentReturnRector (#4916)
2023-09-05 17:03:27 +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
2ae279bf07 Updated Rector to commit 093bcb63a19db3fcdab8264897c584212d755463
093bcb63a1 [CodeQuality] Add NumberCompareToMaxFuncCallRector (#4914)
2023-09-05 13:21:31 +00:00
Tomas Votruba
f4213d1e8b Updated Rector to commit 8c5cfafd4429765fecd1f3db9546cdb9abef080f
8c5cfafd44 FamilyRelationsAnalyzer: final classes can't have children (#4913)
2023-09-05 11:44:54 +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