Commit Graph

4617 Commits

Author SHA1 Message Date
Tomas Votruba
09bdee3938 Updated Rector to commit 765e849e612553708296dd501375b49784ad1ca8
765e849e61 Narrow rule complexity, add custom PHPStan to check whole rule complexity tree and spot architecture flaws (#5025)
2023-09-19 13:41:47 +00:00
Tomas Votruba
76a717ee63 Updated Rector to commit e8718df6389c07916c967ae8650e3905a98550b9
e8718df638 typo
2023-09-19 12:25:24 +00:00
Tomas Votruba
4ea05c5a5f Updated Rector to commit e530fc1e1a98faa22509115e79de5e5f2997208d
e530fc1e1a Introducing Collectors - final step 🥳  - processing collected data + test case (#4970)
2023-09-19 11:53:28 +00:00
Tomas Votruba
5ea7f9b378 Updated Rector to commit de462cf186c7bdaa8f5ed278fec681232c1f34ae
de462cf186 tidy fixture
2023-09-19 10:41:44 +00:00
Tomas Votruba
00f0a02e41 Updated Rector to commit 3ffd995dd526de72ae1c325ff225bf50624d07c5
3ffd995dd5 [DeadCode] RemoveDeadZeroAndOneOperationRector should not remove Constants (#4910)
2023-09-19 10:39:33 +00:00
Tomas Votruba
0d8832a7b0 Updated Rector to commit 95e11476da887e03190937eaa73284c698cc9a6e
95e11476da [VendorLocker] Remove unneeded hasClassMethodExprReturn() method on ClassMethodReturnTypeOverrideGuard::shouldSkipClassMethod() (#5047)
2023-09-19 09:52:30 +00:00
Tomas Votruba
e31de99f8d Updated Rector to commit 535ef5909272fe83d43f5bcf997d74222ac25cdc
535ef59092 Revert "[Performance][NodeTypeResolver] Remove $mutatingScope->enterCatchType() usage on PHPStanNodeScopeResolver (#5045)" (#5046)
2023-09-19 08:55:15 +00:00
Tomas Votruba
6020150b01 Updated Rector to commit 1fe0f127b4ba8e82fef1529bf1b29c1e607a9adf
1fe0f127b4 Cleanup phpstan errors (#5044)
2023-09-19 07:28:19 +00:00
Tomas Votruba
e43f2a6386 Updated Rector to commit a3d2fcda640abe4af03822e415c5fbe757c2f88c
a3d2fcda64 [NodeTypeResolver] Use Scope->getType() on ArrayDimFetch on NodeTypeResolver::getNativeType() (#5037)
2023-09-18 22:07:04 +00:00
Tomas Votruba
d7b6d352e5 Updated Rector to commit 308178a058b057813283852029a7b2aaa026568a
308178a058 Adding collectors - step 3 (#5043)
2023-09-18 17:12:03 +00:00
Tomas Votruba
931ab640df Updated Rector to commit e084356a6aa394a37db6ee1ef153cf8c860a1db5
e084356a6a Adding collectors - step 2 (#5042)
2023-09-18 16:39:38 +00:00
Tomas Votruba
fbe9c07e7a Updated Rector to commit 7e55eaa7bf99a42b8bbd4c1b9b25ee2f7f1a7ab6
7e55eaa7bf Bump to newer phpstan-extensions (#5041)
2023-09-18 08:34:10 +00:00
Tomas Votruba
252f281a42 Updated Rector to commit d10b3b1080ed82a48e7506cf025a5449c904441a
d10b3b1080 Use realpath() as string on MissingInSetCommand (#5040)
2023-09-18 06:23:40 +00:00
Tomas Votruba
65c9e5396a Updated Rector to commit 2cf8d837421963a540d2cf6e3b42702b1a8ae09e
2cf8d83742 [TypeDeclaration] Handle fallback from param same type object on ReturnTypeFromReturnNewRector (#5039)
2023-09-18 06:15:34 +00:00
Tomas Votruba
8e037982d6 Updated Rector to commit c956f862094345e72533d83e629938437bf29a43
c956f86209 fix(ArrayKeyFirstLastRector): Skip exection when pointer is changed (#5038)
2023-09-17 13:19:31 +00:00
Tomas Votruba
dc61ee1240 Updated Rector to commit 8ba3d90ba430782c8e9bba135411260df802df3e
8ba3d90ba4 EmptyOnNullableObjectToInstanceOfRector: skip phpdoc (#5034)
2023-09-17 07:02:22 +00:00
Tomas Votruba
2a1bb45c83 Updated Rector to commit b26d507d873f7e8ba8f87be261d321341431ac80
b26d507d87 Run composer docs weekly (#5035)
2023-09-17 06:58:27 +00:00
Tomas Votruba
98b7592a30 Updated Rector to commit f40ec62cb8ac7001658e25d4928dc028fa4d9e55
f40ec62cb8 BinaryOpNullableToInstanceofRector: test phpdoc ignorance (#5033)
2023-09-17 06:57:56 +00:00
Tomas Votruba
77cbaa7c42 Updated Rector to commit 8f8074f6d30e657621bf6ead352d062d228274ed
8f8074f6d3 SimplifyIfNullableReturnRector: fix example (#5032)
2023-09-17 06:44:25 +00:00
Tomas Votruba
3939ac0648 Updated Rector to commit 173399b8894b7bfe802662064a8814e5560c3328
173399b889 [Performance][Testing] Use str_contains instead of regex in FixtureSplitter (#5030)
2023-09-17 05:03:54 +00:00
Tomas Votruba
6942fe920b Updated Rector to commit 780c5afe7b1623fe23e6c198665f692275fe798e
780c5afe7b [automated] Apply Coding Standard (#5031)
2023-09-17 00:30:04 +00:00
Tomas Votruba
279e6b242e Updated Rector to commit 0acf4bd13469aff2ad461317d026234840aa8091
0acf4bd134 Simplify UseIdenticalOverEqualWithSameTypeRector (#5029)
2023-09-16 11:56:33 +00:00
Tomas Votruba
01c783a2bf Updated Rector to commit c8ff683305a228aa2bfbe2c11eccc7a712c5db94
c8ff683305 Remove inline-@var use (#5028)
2023-09-16 11:45:20 +00:00
Tomas Votruba
c33ef2a625 Updated Rector to commit e6d5d3620448b27bce7d080c9832558e2f6cdf38
e6d5d36204 [CodeQuality]: Skip PHPDoc (#5027)
2023-09-16 08:08:56 +00:00
Tomas Votruba
e66812ed4d Updated Rector to commit 0678674828c37813873d3bd4612c86d0a405948c
0678674828 [AutoImport] Fix conflict current namespace auto import (#5024)
2023-09-15 12:53:52 +00:00
Tomas Votruba
810ae4c396 Updated Rector to commit f6063588c0107450e51333934308f71434722f68
f6063588c0 [DX] Lower current node dependency - pass it directly to doc node parsing (#5023)
2023-09-15 11:53:42 +00:00
Tomas Votruba
224235c3f7 Updated Rector to commit 307b9d6c470480b8dea2bee8bcf6fbcc352bbf79
307b9d6c47 Add note on using pwsh on Windows with parallel mode (#5022)
2023-09-15 07:10:20 +00:00
Tomas Votruba
42d1e7d15e Updated Rector to commit 21e3128746a05e4ff78b27e338412f98a1cbe39f
21e3128746 Run tests on macos (#5019)
2023-09-14 18:49:49 +00:00
Tomas Votruba
7c6e836295 Updated Rector to commit 7b7b4fb61bc2a7088823e7cfabf8a29b4fec516c
7b7b4fb61b Fix TypedPropertyFromStrictConstructor* order (#5021)
2023-09-14 17:21:03 +00:00
Tomas Votruba
d8dbb74079 Updated Rector to commit 5b423425e584112ae7a02a6e7236c667cd5aedd0
5b423425e5 TypedPropertyFromStrictConstructorRector: Skip phpdoc types (#5020)
2023-09-14 17:09:03 +00:00
Tomas Votruba
8ca231f47a Updated Rector to commit 2b177e80e2630c97653aa9d57ac87acbc1433524
2b177e80e2 add fixture to validate
2023-09-14 12:21:59 +00:00
Tomas Votruba
4f47fbf001 Updated Rector to commit ba0291fec8e4ade7fc9692f6308172654f2b67da
ba0291fec8 Typo fix (#5017)
2023-09-14 11:48:17 +00:00
Tomas Votruba
7b7327844c Updated Rector to commit d188b67d8620ffba4c2488cdaab20853ba804f14
d188b67d86 Fix unit test on macOS for testing spaced root project on WorkerCommandLineFactoryTest (#5016)
2023-09-14 08:30:58 +00:00
Tomas Votruba
5f78db9416 Updated Rector to commit 0e869b9b70c1871d5c212c3b2fdaf388955747ce
0e869b9b70 [Parallel] Handle Spaced root project main script on parallel process (#4813)
2023-09-14 08:19:41 +00:00
Tomas Votruba
cdaa25cb85 Updated Rector to commit 23840739198816814b463df4a9510bb8f4f5fbda
2384073919 [VendorLockResolver] Reduce repetitive getName() on ClassMethodParamVendorLockResolver (#5015)
2023-09-13 19:48:27 +00:00
Tomas Votruba
1543cccc56 Updated Rector to commit 299d02c41ec1a0850c5a5449e27f9cf9fd44b5e5
299d02c41e [Performance][BetterPhpDocParser] Move create new PhpDocNodeTraverser() to __construct() on PhpDocNodeMapper (#5014)
2023-09-13 19:21:21 +00:00
Tomas Votruba
26b96f86b2 Updated Rector to commit 74df7741a7d0798888d2d9a3bf1020746b80ad8e
74df7741a7 [PostRector] Fix unused import not removed on empty generic class name exists (#5012)
2023-09-13 12:31:43 +00:00
Tomas Votruba
a0e75643ae Updated Rector to commit 935b2b47f5a8581117674f30ab1a725caa301494
935b2b47f5 [Config] Move content of private method importFile() to import() method (#5011)
2023-09-13 08:17:50 +00:00
Tomas Votruba
5272a66ce1 Updated Rector to commit 01c0ea9420b424bf1484c99dbb1185a0cd1c3e61
01c0ea9420 [Config] Remove asterisk support in import() for file, use explicit paths instead (#5010)
2023-09-12 23:04:24 +00:00
Tomas Votruba
4d86ccbb88 Updated Rector to commit 848c2ad9415b0e536b7864872f895f64104ecb50
848c2ad941 Improve Use_ const types in docblocks (#5005)
2023-09-12 20:17:09 +00:00
Tomas Votruba
57dc6f91d6 Updated Rector to commit 7e2bc1414f8567c55934a32d856e8d92a6e31d0f
7e2bc1414f [DeadCode] Ensure $hasChanged not replaced on next iteration when it assigned to true on RemoveUnusedPrivateMethodParameterRector (#5009)
2023-09-12 19:06:50 +00:00
Tomas Votruba
0309d949e5 Updated Rector to commit 09baf7dd0ce61eba0944f98977834f18665f3e9f
09baf7dd0c NodeNameResolver: faster isNames() (#5004)
2023-09-12 12:38:13 +00:00
Tomas Votruba
088accd46c Updated Rector to commit aeba96a811638e3954028b70d8163c43a8866fa8
aeba96a811 Refactor use import resolving (#4998)
2023-09-12 12:38:05 +00:00
Tomas Votruba
0d6604344e Updated Rector to commit cbc632c1eda3f2b9aba3fba07b0f1b45cc58caec
cbc632c1ed RenameFunctionRector: prevent repeated isName() calls (#5003)
2023-09-12 11:58:35 +00:00
Tomas Votruba
f8df0467fb Updated Rector to commit ef003b2458043b677bdd72522439bd80afb44a2c
ef003b2458 refactor: add support for Custom Skip Voters (#5002)
2023-09-12 08:13:37 +00:00
Tomas Votruba
ac9f7b5076 Updated Rector to commit ffa43a11e01a594d3aaafe4eb5f09f4394e90019
ffa43a11e0 [PhpParser] Fix crash read jetbrains/phpstorm-stubs included in phpstan.phar on PHP 8.0 and PHP 7.4 (#5001)
2023-09-12 07:47:25 +00:00
Tomas Votruba
3c6c1c03f8 Updated Rector to commit a2f70054a7d976acd2c73b06789095b998829be6
a2f70054a7 [DocBlock] Update docblock contents right in the rule (#4999)
2023-09-11 21:30:42 +00:00
Tomas Votruba
35a66f9d23 Updated Rector to commit 596bbc98a25903c525914b4d16ea5f9c76b500fb
596bbc98a2 [tests] Replace wildcard e2e test with unit one (#5000)
2023-09-11 18:33:42 +00:00
Tomas Votruba
9a39b26232 Updated Rector to commit 9e7367ca9296ca986a31abd8bb7d6b3a6b5ef0d8
9e7367ca92 Trigger Rectify (#4997)
2023-09-11 16:07:43 +00:00
Tomas Votruba
df6678519f Updated Rector to commit ed0be502e5d74171d59e67874f089f69429a01b0
ed0be502e5 UseImportsTraverser: don't deep traverse (#4994)
2023-09-11 15:55:07 +00:00