Commit Graph

8384 Commits

Author SHA1 Message Date
Tomas Votruba
08913427ee Updated Rector to commit 0d9b38d62ebb6f9f1264240c384ca1918c0c45a2
0d9b38d62e DX: Validate paths in RectorConfig->paths() (#5065)
2023-09-24 09:18:15 +00:00
Tomas Votruba
0ea0221716 Updated Rector to commit 061eea0c0aca9f6f15ad35c82d5a9cb5323f3919
061eea0c0a [automated] Apply Coding Standard (#5074)
2023-09-24 00:28:19 +00:00
Tomas Votruba
365373f6ba Updated Rector to commit 59e25d914e4689e707f148d95c76025dc0b01136
59e25d914e [Performance] Remove regex check on open tag spaced check on FileProcessor (#5073)
2023-09-23 18:56:28 +00:00
Tomas Votruba
4b7d5cbe32 Updated Rector to commit 8bfaf450145e25e27e33e0ba2ead4c7348c6aa43
8bfaf45014  [Php80] Mirror switch comment to match to ChangeSwitchToMatchRector  (#5072)
2023-09-23 13:19:03 +00:00
Tomas Votruba
fa675a27fa Updated Rector to commit defd57b99b2f442199c6d4c63357e786d514253b
defd57b99b Move betterNodeFinder,valueResolver,phpDocInfoFactory dependencies from AbstractRector into rules (#5071)
2023-09-23 12:16:30 +00:00
Tomas Votruba
0a1f02d765 Updated Rector to commit 9b319efffa0bb091b0a4cbccffff3b4ed657fb72
9b319efffa [DX] Show warning on AbstractRector::__get() when pull deprecated property from AbstractRector (#5069)
2023-09-23 10:43:41 +00:00
Tomas Votruba
42360f35ac Updated Rector to commit 9abbcb11eef3e62534ab116c5cbcd1e9d58c01f6
9abbcb11ee Fix fixture file names (#5067)
2023-09-22 20:47:52 +00:00
Tomas Votruba
b8d67b2a4f Updated Rector to commit d9d1fd27214af2c55612bfb852bc01b10663d1d6
d9d1fd2721 Check fixtures with PHPStan (#5026)
2023-09-22 15:30:54 +00:00
Tomas Votruba
e39c97513e Updated Rector to commit ecc0a2889157f7da9de1adee1a3f3f581844d2e2
ecc0a28891 fix UT
2023-09-22 12:13:15 +00:00
Tomas Votruba
4f42274ab7 Updated Rector to commit 85a407a1b75939448a0ee6d539ebe86538252e52
85a407a1b7 Deprecate BinarySwitchToIfElseRector as opinionated to allow more suitable match() refactoring (#5064)
2023-09-22 09:56:10 +00:00
Tomas Votruba
f6beffcb30 Updated Rector to commit 40d127ee553bda3f486546f721a72698830d5b89
40d127ee55 [TypeDeclaration] Test native-type ArrayDimFetch on numeric keys (#5063)
2023-09-21 19:41:14 +00:00
Tomas Votruba
5b032cf2ce Updated Rector to commit c3d2ccfd2e5e40901b152df6b8d0a4275de1f23e
c3d2ccfd2e [NodeTypeResolver] Handle optional array shape on native function like with ArrayDimFetch (#5062)
2023-09-21 17:22:54 +00:00
Tomas Votruba
06467e73f0 Updated Rector to commit 36f0b4ad9751892be63b57ccd95ecc75404c8cee
36f0b4ad97 Make RemoveEmptyClassMethodRector skip deprecated class method, as used for BC (#5061)
2023-09-21 15:47:17 +00:00
Tomas Votruba
1372be8587 Updated Rector to commit 84916ed4ada651a1a8d3afa2d83473d536fd3030
84916ed4ad [TypeDeclaration] Skip ArrayDimFetch for return and param types (#5059)
2023-09-21 13:39:21 +00:00
Tomas Votruba
d97b49ad5b Updated Rector to commit 9f88b630a9999eb596a3f18cbd00965f0033796e
9f88b630a9 [TypeDeclaration] Skip ArrayDimFetch by return array doc on AddMethodCallBasedStrictParamTypeRector (#5058)
2023-09-21 13:34:54 +00:00
Tomas Votruba
4a3e045983 Updated Rector to commit 69055b5aede907500e2fc102c0d8d4747e20df38
69055b5aed [CodingStyle][EarlyReturn] Fix infinite if else on BinarySwitchToIfElseRector+RemoveAlwaysElseRector (#5057)
2023-09-21 12:16:27 +00:00
Tomas Votruba
82fb004302 Updated Rector to commit ad96b1f8c56f4b0f7abd04b049ffbdb6d4e1d0e2
ad96b1f8c5 [NodeTypeResolver] pull getType() on ArrayDimFetch when not mixed type from its variable native definition (#5056)
2023-09-21 11:31:13 +00:00
Tomas Votruba
159eb49f8e Updated Rector to commit 884a47e2b3a1d0f1508f83715c4d18efe00766de
884a47e2b3 [Dep] Remove abandoned phpstan/phpstan-php-parser on require-dev (#5054)
2023-09-20 18:33:19 +00:00
Tomas Votruba
a991908b36 Updated Rector to commit 9c18b86edadc4f9e538d7065a62ba386ec14b6ad
9c18b86eda cleanup
2023-09-20 16:18:13 +00:00
Tomas Votruba
4b8fc3fb05 Updated Rector to commit e698133cad1a85f2384a6cf450d66c54df1876a2
e698133cad [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5053)
2023-09-20 12:55:35 +00:00
Tomas Votruba
3827f75ecd Updated Rector to commit 23d429233d37af0d743b4d4dc622828c704d2d2f
23d429233d [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5052)
2023-09-20 12:53:23 +00:00
Tomas Votruba
b2b3a0f5cc Updated Rector to commit 33fa6262970128e964fc4099d88d9a7369828e1a
33fa626297 [DX] Make PhpDocInfoFactory explicitly required in Rector rule constructor, if needed (#5051)
2023-09-20 12:41:26 +00:00
Tomas Votruba
3a35226590 Updated Rector to commit 5ee831f533cf97bc985b381cfd067122e2a479d2
5ee831f533 [TypeDeclaration] Add return static property support on ReturnTypeFromStrictTypedPropertyRector (#5050)
2023-09-19 13:48:46 +00:00
Tomas Votruba
db78ff1331 Updated Rector to commit 76611f69af76327be04538df7b8c568600ac58c0
76611f69af Deprecate TypedPropertyFromStrictConstructorReadonlyClassRector as based on docblock and public elements; use private elements and property promotion instead (#5049)
2023-09-19 13:45:02 +00:00
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
Tomas Votruba
0acf99c06a Updated Rector to commit 7b4858b689e23bac39c47ddbf06df4842f453936
7b4858b689 [Performance] [NodeNameResolver] Move loop REGEX_WILDCARD_CHARS on last resort after $resolvedName, $desiredName compare to avoid unnecesary loop when possible (#4996)
2023-09-11 15:30:38 +00:00
Tomas Votruba
4f2f57fa55 Updated Rector to commit 398b6503cd12778c3c0e32b6d4d096452e998ed6
398b6503cd NodeNameResolver: Throw exception in BC breaking path (#4980)
2023-09-11 15:26:30 +00:00
Tomas Votruba
abed52d2c1 Updated Rector to commit edadb26ab4a156985027b8f685cdeecf4ea4b098
edadb26ab4 [Transform] Improve performance of AddAllowDynamicPropertiesAttributeRector (#4995)
2023-09-11 15:18:16 +00:00
Tomas Votruba
02ce33183a Updated Rector to commit f733c32f6c44c06faeba9ad5c46a62b8eee11748
f733c32f6c [Transform] Refactor AddAllowDynamicPropertiesAttributeRector with verify both fnmatch and is string name (#4993)
2023-09-11 15:00:52 +00:00
Tomas Votruba
67ef720476 Updated Rector to commit 780ef4010d45be3e89844dec073ce2078a10f96f
780ef4010d Deprecated PhpDocInfo::markAsChanged() to ensure doc block is changed directly in the Rector rule (#4987)
2023-09-11 14:54:44 +00:00
Tomas Votruba
8b577a6b5e Updated Rector to commit 8b8a0d1a5daa1064860c446bdd1f8a26ab06c20d
8b8a0d1a5d Prevent unnecessary calls to spl_object_id() (#4992)
2023-09-11 14:30:03 +00:00
Tomas Votruba
8a7560aff0 Updated Rector to commit b26175631cdad7feac444fac351120541ef3fa03
b26175631c Fix typo in error message (#4989)
2023-09-11 14:11:01 +00:00
Tomas Votruba
927d670ef2 Updated Rector to commit 27d4c55bebe8706a74273d8c2379f59b75543c0e
27d4c55beb [Transform] Check str_contains * before fnmatch() early on AddAllowDynamicPropertiesAttributeRector (#4991)
2023-09-11 13:47:00 +00:00
Tomas Votruba
be951e04e1 Updated Rector to commit 878f381d30ddb07c68dfbe828e9cd6e2b77b6c31
878f381d30 [Php55] Check str_contains * before fnmatch() early on StringClassNameToClassConstantRector (#4990)
2023-09-11 13:37:38 +00:00
Tomas Votruba
93e75a5197 Updated Rector to commit bfb759084621dfe23766ebfb43db47fb71ed5512
bfb7590846 [CodingStyle] Use str_starts_with() on isName($node, 'test*') on DataProviderArrayItemsNewlinedRector (#4988)
2023-09-11 13:33:44 +00:00
Tomas Votruba
549bed6da9 Updated Rector to commit b3639f72d73d9471ea8a843f93eb2ca61cd54a56
b3639f72d7 Update docblock only when changed, directly in rector rule (#4986)
2023-09-11 13:16:45 +00:00
Tomas Votruba
0a6aef3c00 Updated Rector to commit c9c3d78d3c5e583b541d06e5827f4f019adc3e40
c9c3d78d3c Remove ununnecesary markAsChanged() in PhpDocTypeChanger (#4984)
2023-09-11 10:41:08 +00:00
Tomas Votruba
4c20b79d3c Updated Rector to commit ae3608b3d6464b63a041dd5e779c7b4e8f4cedb6
ae3608b3d6 Remove ununnecesary markAsChanged() in PhpDocTypeChanger, print docblock in explicit way when changed (#4983)
2023-09-11 09:47:14 +00:00
Tomas Votruba
282e5517d7 Updated Rector to commit ae3608b3d6464b63a041dd5e779c7b4e8f4cedb6
ae3608b3d6 Remove ununnecesary markAsChanged() in PhpDocTypeChanger, print docblock in explicit way when changed (#4983)
2023-09-11 09:08:21 +00:00
Tomas Votruba
ec41ac44ea Updated Rector to commit 2e6fcdea7e3945a06d2cc229a92567ea52ce9d6d
2e6fcdea7e Remove CurrentRectorProvider and  used for docblock changes report, return bool value and node directly in the rector rule instead (#4982)
2023-09-11 07:55:34 +00:00
Tomas Votruba
59ce553896 Updated Rector to commit 0bb2398438d57d393d7be0d3f7fc2d237cf51e0a
0bb2398438 Make BetterPhpDocParser parse node directly (#4981)
2023-09-11 07:45:38 +00:00
Tomas Votruba
553b67b890 Updated Rector to commit 57ec646b63b0c7804df44fd67990b41d83d56c40
57ec646b63 Make PhpDocINfo::removeByType() return bool to inform about changed node (#4979)
2023-09-11 07:37:02 +00:00
Tomas Votruba
4cbb15f972 Updated Rector to commit 1593d006138230202e20bd209da375ca1e171876
1593d00613 [Internals] Decouple output from AbstractRector, narrow debugging output to file path (#4976)
2023-09-10 20:27:13 +00:00
Tomas Votruba
6c92c9ea3e Updated Rector to commit 3fcbb533c2d4da174cbfcad1e5d5cfe354dfd884
3fcbb533c2 [Internals] Merge PhpFileProcessor to FileProcessor (#4977)
2023-09-10 20:21:47 +00:00
Tomas Votruba
4b84a2b441 Updated Rector to commit 0c5ad104aee04d680816bbed6224470c7acfb895
0c5ad104ae [DX] Merge WorkerRunner to WorkerCommand, to make context closer (#4972)
2023-09-10 19:16:46 +00:00
Tomas Votruba
1a37c5b7e2 Updated Rector to commit e4eec89c47fb767dbadb65662c12e2e3b6650cd5
e4eec89c47 [Performance][Php55] Remove regex replace e on RegexMatcher (#4974)
2023-09-10 19:01:55 +00:00
Tomas Votruba
e9556eff4d Updated Rector to commit 3942c1336b9650e7013094e6ae7118675ea04685
3942c1336b Use link to getrector.com/documentation for create_own_rule.md on build scoped (#4973)
2023-09-10 18:55:54 +00:00
Tomas Votruba
aaa2d927d5 Updated Rector to commit cda957718f1eb9d1629bc27ed8b060c6f41ce033
cda957718f [Performance][Printer] Reduce regex check use( no space on BetterStandardPrinter (#4971)
2023-09-10 18:48:21 +00:00
Tomas Votruba
44ac4c0b00 Updated Rector to commit b5c8f9a8930520277828986608fda0b75ef5381a
b5c8f9a893 use strlen() directly, as enough for string check (#4969)
2023-09-10 14:40:14 +00:00
Tomas Votruba
1e7c1e02b0 Updated Rector to commit ead7a25b38797531d9e6a755492200d59b05b1ae
ead7a25b38 Remove regex and fnmatch again on NodeNameResolver (#4968)
2023-09-10 13:41:40 +00:00
Tomas Votruba
6f00e2bba6 Updated Rector to commit 76cf20f8d4e2bb2a6c01f70e707e58d34c4360f4
76cf20f8d4 Fix fixture typo (#4967)
2023-09-10 13:27:45 +00:00
Tomas Votruba
5995088c4e Updated Rector to commit ef6c8bcc96bcb35a832ca0e798d580735c58f9ef
ef6c8bcc96 [NodeNameResolver] Check regex start delimiter and contains * on NodeNameResolver to use fnmatch() (#4964)
2023-09-10 13:01:10 +00:00
Tomas Votruba
0208918c02 Updated Rector to commit 071730611619e0b6eb79d18af29480341d4a0361
0717306116 Implement a max jobs per worker budget (#4965)
2023-09-10 12:29:23 +00:00
Tomas Votruba
93a246d47b Updated Rector to commit 038f8092eaeeaaf044dbd5685d89bc7636143bbc
038f8092ea [Performance][BetterPhpDocPaser] Reduce regex usage on start docblock check on PhpDocInfoPrinter (#4966)
2023-09-10 12:10:32 +00:00
Tomas Votruba
c3de7a9b9b Updated Rector to commit 9f29bf8434e78a86efe97a08ef3e84c8db2f4a94
9f29bf8434 [Testing] Remove #[RunInSeparateProcess] in FileHashComputerTest (#4963)
2023-09-10 06:07:12 +00:00
Tomas Votruba
561662bcb2 Updated Rector to commit 335cc6fe7b141951a7cc3cc0cf4eaaf3711edf96
335cc6fe7b [BetterPhpDocParser] Reduce regex on opening docblock check on PhpDocInfoPrinter (#4962)
2023-09-10 04:56:06 +00:00
Tomas Votruba
6c9ddbbc05 Updated Rector to commit 57772d141822690d98070403e486e6c43c73f2cd
57772d1418 Fix infinite loop test InfiniteLoopTest (#4960)
2023-09-10 04:27:52 +00:00
Tomas Votruba
d3ab4963d2 Updated Rector to commit 09c227eb0e67b0b51ab3c3faafbc312edc81720b
09c227eb0e [Performance][FileProcessor] Only check space before <?php on FileWithoutNamespace (#4959)
2023-09-10 04:08:45 +00:00
Tomas Votruba
ec8c97b1b0 Updated Rector to commit e335cffdcff3e271bb1d0f352a6f6623f6e4ed2c
e335cffdcf [PhpAttribute] Reduce regex start with ^@ORM at PhpNestedAttributeGroupFactory (#4958)
2023-09-10 03:51:21 +00:00
Tomas Votruba
5b0f55fa4b Updated Rector to commit 7433ffeb07507632659635152b35af66320d1e07
7433ffeb07 [Printer] Reduce regex for end with \n detection on BetterStandardPrinter (#4957)
2023-09-10 01:02:05 +00:00
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
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
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
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
c5dca33b93 Updated Rector to commit 5919201e137b5ed041eebdf891ff2bada22fddb1
5919201e13 StrictArrayParamDimFetchRector: Skip objects (#4907)
2023-09-04 10:32:52 +00:00
Tomas Votruba
bbc92f1719 Updated Rector to commit 824bb97770867b1584fa7c2398d0d59b7cd4f36e
824bb97770 [TypeDeclaration] Skip mixing native + docblock union assign on TypedPropertyFromAssignsRector (#4905)
2023-09-04 07:41:42 +00:00
Tomas Votruba
575c34ce23 Updated Rector to commit fcf0bc4f04873d34b4854234b9fdf608140e6ae6
fcf0bc4f04 [Caching] Remove "Symfony" reference at error message at FileHashComputer (#4906)
2023-09-04 07:27:29 +00:00
Tomas Votruba
454b838af8 Updated Rector to commit 75717921e8661b5fc6f0ebbffe2e35bd86146202
75717921e8 MyCLabs enum equals + keeping methods  (#4645)
2023-09-04 07:26:59 +00:00
Tomas Votruba
d2b56b94e4 Updated Rector to commit dca3e9d6fcef2c5386efacc425d16c6b48a29ebc
dca3e9d6fc Add test case for caching $rectorConfig->rules() changed (#4903)
2023-09-04 00:16:27 +00:00
Tomas Votruba
dc24af83f9 Updated Rector to commit e203bb4807bbd53e3c4ac3428e78be36f3e18c7d
e203bb4807 [Caching] Add VersionResolver::PACKAGE_VERSION to FileHashComputer::compute() so cache cleared on composer update got new version (#4904)
2023-09-03 22:40:55 +00:00
Tomas Votruba
e4a21c854e Updated Rector to commit 56b0d65f9d3dd7c85055f18208b6f4a4859c4cc6
56b0d65f9d Fix Rector invalidation in case of changes sets or rules (#4902)
2023-09-03 17:34:03 +00:00
Tomas Votruba
672d981dee Updated Rector to commit 955a0acffad2cf81100d9643955ebd3ebc700c4e
955a0acffa cs
2023-09-03 16:44:43 +00:00
Tomas Votruba
d72f4cf839 Updated Rector to commit 04c528e639778905387757ca3f7db6a3e48ac92f
04c528e639 Skip identical to false in SimplifyBoolIdenticalTrueRector, as exact comparison is stronger than negated expression (#4901)
2023-09-03 16:38:10 +00:00
Tomas Votruba
2415d543b0 Updated Rector to commit ca22ab5d024543bc804ec4f52b410aec42901f39
ca22ab5d02 Rename constant REFRESHABLE_NODES to NON_REFRESHABLE_NODES (#4900)
2023-09-03 11:26:42 +00:00
Tomas Votruba
28c16a1c00 Updated Rector to commit d5f399eee5709932b579d41e3799c3097bbc101f
d5f399eee5 [DeadCode] Remove @return void on return self on RemoveUselessReturnTagRector (#4894)
2023-09-02 15:59:59 +00:00
Tomas Votruba
fc46b4d878 Updated Rector to commit 3243e0efc1b7cab4f4c3f08cb73f16750018bad4
3243e0efc1 Add number support to concat EncapsedStringsToSprintfRector (#4898)
2023-09-02 15:54:43 +00:00
Tomas Votruba
ed2db39d3d Updated Rector to commit 412d0bd50130f82d8f5388060301a7e1debf50ad
412d0bd501 Add single value concat support to EncapsedStringsToSprintfRector (#4897)
2023-09-02 15:36:16 +00:00
Tomas Votruba
96ad637f7f Updated Rector to commit 521b6f82ddae9626ad767efdd36c3ad56d9f285a
521b6f82dd Trigger Rectify (#4896)
2023-09-02 06:01:48 +00:00
Tomas Votruba
8d1ec7b809 Updated Rector to commit 6d7cd13194264e8792a643d4ce88928f7ccc874b
6d7cd13194 Simplify isMatchingUnionType() (#4895)
2023-09-01 18:58:23 +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
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
3d97937140 Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
7078b51a7c [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890)
2023-08-31 16:33:28 +00:00
Tomas Votruba
62fe44207e Updated Rector to commit 56c84ba714b135a36e7e95fdf53f406b1411461e
56c84ba714 [TypeDeclaration] Do not add default value when assigned in __construct() on TypedPropertyFromStrictGetterMethodReturnTypeRector (#4886)
2023-08-31 11:38:41 +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
25e5fba435 Updated Rector to commit cf69407e2ff3402abb8a939d79f326f59121b2b4
cf69407e2f Fix missing default string in TypedPropertyFromStrictGetterMethodReturnTypeRector (#4885)
2023-08-31 08:41:20 +00:00
Tomas Votruba
92fc179e0d Updated Rector to commit 5f52c69ae04c708be50552b165104b4a919a3ff0
5f52c69ae0 [e2e] $rectorConfig->skip() should not skip inside different path over config (#4882)
2023-08-30 11:40:52 +00:00
Tomas Votruba
5c920d9487 Updated Rector to commit 8b07c8e7de96a3b304b5409f1ef3415a513fee91
8b07c8e7de Add test for merge ruleWithConfiguration() after sets on $isBound usage (#4881)
2023-08-29 18:08:49 +00:00
Tomas Votruba
97f92edab1 Updated Rector to commit 6424bae725296eb72307e5f4902715ea41dad3ba
6424bae725 [TypeDeclaration] Using ClassMethodReturnTypeOverrideGuard on ReturnTypeFromStrictParamRector (#4878)
2023-08-29 16:52:48 +00:00
Tomas Votruba
fc984ac23b Updated Rector to commit ea2252a374c5ce46f6a19f93649aef43634ff997
ea2252a374 [Config] Remove $isBound usage as cause empty configuration on RectorConfig (#4880)
2023-08-29 16:39:24 +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
9e31017a92 Updated Rector to commit 7841dc582440c815796e703cf3cf9b3f17f80285
7841dc5824 Clean up usused filePath instance check on ApplicationFileProcessor (#4877)
2023-08-29 07:20:21 +00:00
Tomas Votruba
ee72ef5426 Rector 0.18.1 2023-08-28 18:01:58 +00:00
Tomas Votruba
cd424deff6 Updated Rector to commit 5d0dd480a6f4d9ec46c7639c20f9e6345f7aa92d
5d0dd480a6 skip Removing category from outside any set rule
2023-08-28 17:54:38 +00:00
Tomas Votruba
73a1ef4a72 Updated Rector to commit d8d31debc51ab5df1d30655846bb0fbd9f76039b
d8d31debc5 [Performance] Use more performance spl_object_id() (#4876)
2023-08-28 17:41:52 +00:00
Tomas Votruba
de9ddf6e5d Updated Rector to commit c03fd2ad2625f1a0cf6a02d9875078b7114381ad
c03fd2ad26 [Performance] Avoid spl_object_hash() when has origNode attribute on AbstractRector::leaveNode() (#4875)
2023-08-28 14:25:05 +00:00
Tomas Votruba
dd562a4b59 Updated Rector to commit 9e8ed6c33f39aa9d7d859fb39b6f2d0344cdea0d
9e8ed6c33f Remove SwapFuncCallArgumentsRector as keeps swaping to infinity, use custom rule instead (#4874)
2023-08-28 12:45:54 +00:00
Tomas Votruba
1b7113d724 Updated Rector to commit 2f38105001867c15fb1b2001767b37566428719f
2f38105001 fix cs
2023-08-28 12:02:21 +00:00
Tomas Votruba
e17db30c80 Updated Rector to commit eac3d467a9ff5ce778bb79b214c39487a6f928f4
eac3d467a9 [ProcessAnalyzer] Remove unnecessary hasAttribute(origNode) on RectifiedAnalyzer (#4873)
2023-08-28 06:24:32 +00:00
Tomas Votruba
dcd7f106fc Updated Rector to commit 7fc7034ddd58ff23d19bd2ed956ab93fdacfd153
7fc7034ddd Add additional comment for future reference on RectifiedAnalyzer on above node directly use DONT_TRAVERSE_CHILDREN, only on current rule (#4872)
2023-08-28 05:47:55 +00:00
Tomas Votruba
4844c51a8d Updated Rector to commit 00e267682a1faf3f8eab4208271f508b813ce4d3
00e267682a Clean up double set attribute on AbstractRector (#4871)
2023-08-28 05:43:22 +00:00
Tomas Votruba
025bdb2a5f Updated Rector to commit 9be0ac335782f52be36535eb29f30df87bee42c2
9be0ac3357 [Performance] No need to traverseNodesWithCallable() when only single node types on decorateCurrentAndChildren (#4870)
2023-08-28 05:35:05 +00:00
Tomas Votruba
edd0b488c3 Updated Rector to commit 684a317c5116bf60d43080ad62af7ae73c221894
684a317c51 [Php55][Renaming] Handle rename string on combination StringClassNameToClassConstantRector+RenameStringRector (#4869)
2023-08-28 05:28:50 +00:00
Tomas Votruba
08c1a94075 Updated Rector to commit 1c56aa9bdad38af386edd67f45405d641da37ed5
1c56aa9bda [ProcessAnalyzer] Remove phpstan_cache_printer tweak check on RectifiedAnalyzer (#4868)
2023-08-28 04:06:37 +00:00
Tomas Votruba
6e87ca12f5 Updated Rector to commit 87344c79fd4d367462cf7cb9cc0953f30b3cf684
87344c79fd Clean up compare null on $toBeRemovedNodeHash on AbtractRector (#4867)
2023-08-27 17:05:13 +00:00
Tomas Votruba
476b7f9e08 Updated Rector to commit c435754bd2447a4048742a1c1f7a7df8a4cdd51b
c435754bd2 clean up docblock on $nodesToReturn property on AbstractRector (#4866)
2023-08-27 17:00:25 +00:00
Tomas Votruba
b1fc9b0f15 Updated Rector to commit 7e4a920a8aeab9d49bed2625ac160d4bac4eb932
7e4a920a8a [Performance] Only save nodesToReturn[$objectHash] on return array of nodes on AbstractRector (#4865)
2023-08-27 15:31:02 +00:00
Tomas Votruba
2048db3e08 Updated Rector to commit 3f5ff9ec439f0b6b5a4c8a02748aac8b19ac17a4
3f5ff9ec43 Revert "Better approach leaveNode() check Stmt to non Stmt handling on AbstractRector (#4863)" (#4864)
2023-08-27 15:05:22 +00:00
Tomas Votruba
89f1ce8f10 Updated Rector to commit 4e75e84f92608d7bd8db99d13a1494da6e424090
4e75e84f92 Add test for change Stmt to different Stmt (#4862)
2023-08-27 14:19:02 +00:00
Tomas Votruba
421b970b76 Updated Rector to commit 3199e0a00c19bbdbd4ac59f10b4368657b70cfd1
3199e0a00c [ProcessAnalyzer] Skip process when origNode class is not equal with target node class (#4861)
2023-08-27 13:26:22 +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
e44653703c Updated Rector to commit 55bde86033d704228a71c83b6b4d597d8bc6d350
55bde86033 [Performance] Reduce possible re-create Scope on ExprScopeFromStmtNodeVisitor (#4853)
2023-08-25 16:57:25 +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
e6eb064594 Updated Rector to commit 9a07a7b35cc3ad4d0f1fcd60db728109d6196541
9a07a7b35c [DX] Display rule count in list-rules (#4848)
2023-08-24 17:27:26 +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
2142e5018e Updated Rector to commit 3c34942dc98015298c9aa3fdb0369190937021d8
3c34942dc9 Revert "Revert "use NewOptimizedDirectorySourceLocator"" (#4846)
2023-08-24 16:53:49 +00:00
Tomas Votruba
562d3d830d Updated Rector to commit dce10846395c476ad300274c266545153a5fd7ad
dce1084639 Temporary pin to phpstan 1.10.30 (#4847)
2023-08-24 16:25:15 +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
44c00ca135 Updated Rector to commit 75f2cbcae34c7c50fee8d4c3860d9a70e45438bd
75f2cbcae3 [PHPStan] Avoid removing bleeding edge from phar include, let user handle own phpstan configuration (#4840)
2023-08-23 15:35:55 +00:00
Tomas Votruba
3e344a5749 Updated Rector to commit 5de9824db5006d0e6d9e9e60a2a1c439ff7adb6e
5de9824db5 [Performance][Php80] Avoid print on Expr when possible on AddParamBasedOnParentClassMethodRector (#4839)
2023-08-23 13:42:14 +00:00
Tomas Votruba
20bb3755f5 Updated Rector to commit 15ddec30da5ca9996fa56949e35ec9a190c72bf3
15ddec30da [Php73][Php80] Handle empty long array syntax default value on SensitiveConstantNameRector+AddParamBasedOnParentClassMethodRector (#4837)
2023-08-23 13:24:46 +00:00
Tomas Votruba
f3e1fd5fad Updated Rector to commit ce87fc223b14aed6cef72ac79e00f4bee6afbbbb
ce87fc223b [Config] Add merging of rules configuration, call configure() just once (#4838)
2023-08-23 13:20:40 +00:00
Tomas Votruba
ef0d7bee6c Updated Rector to commit 4b34887e678f90e4d9a8b4838333091465c28dc7
4b34887e67 [Php80] Handle crash parent default empty array/string param on AddParamBasedOnParentClassMethodRector (#4833)
2023-08-23 11:33:01 +00:00
Tomas Votruba
4878abddc8 Updated Rector to commit 4163578c36fff9b049f1a3da51570fc5f62e3794
4163578c36 Bump dev dependencies (#4836)
2023-08-23 11:09:41 +00:00
Tomas Votruba
7de965b307 Updated Rector to commit d89512aeba51d9def86012ef84ee66e1062e1c4f
d89512aeba [Config] Handle $rectorConfig->import() with wildcards * config (#4832)
2023-08-23 10:58:01 +00:00
Tomas Votruba
b388569c60 Updated Rector to commit 2864cbe80ab411dde3bafa28f99883c0878969f7
2864cbe80a Remove deprecated FileProcessorInterface (#4835)
2023-08-23 10:40:53 +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
994dcc7c44 Updated Rector to commit 37be2c2268a7251c4d422e7c6a607d8931459731
37be2c2268 [PostRector] strtolower() early on UseNodesToAddCollector (#4830)
2023-08-21 15:15:26 +00:00
Tomas Votruba
429b44fab4 Updated Rector to commit cdccb5199ddc160fb7945879cf1403f1c7289770
cdccb5199d [AutoImport] Handle case insensitive name collide on auto import (#4829)
2023-08-21 15:08:37 +00:00
Tomas Votruba
31a33d3c1b Updated Rector to commit 79d806c87a7b3df9ec8acc611178dd3cdd8c8d28
79d806c87a [BetterPhpDocParser] Run PhpDocNodeTraverser->traverse() once take 2 (#4828)
2023-08-21 13:57:21 +00:00
Tomas Votruba
5d038060f5 Updated Rector to commit c5fab3a83132e3408eba419e8269b94124c53495
c5fab3a831 [CI] Narrow tests to single job, as now takes 20 s 🚀 (#4827)
2023-08-21 13:39:02 +00:00
Tomas Votruba
fbd33e5f98 Updated Rector to commit 45aababfbcf23f7ab3765376d6f04a3aee113e8a
45aababfbc [TypeDeclaration] Add new array replaced with array on ReturnTypeFromStrictNewArrayRector (#4825)
2023-08-21 09:37:33 +00:00
Tomas Votruba
a3856d782f Updated Rector to commit 4a869b9b104dc81adef4441025787c0c3411d4d6
4a869b9b10 bump PHPUnit printer to optional (#4826)
2023-08-21 09:28:35 +00:00
Tomas Votruba
def86c6e48 Updated Rector to commit 45aababfbcf23f7ab3765376d6f04a3aee113e8a
45aababfbc [TypeDeclaration] Add new array replaced with array on ReturnTypeFromStrictNewArrayRector (#4825)
2023-08-21 09:28:31 +00:00
Tomas Votruba
2704731a87 Updated Rector to commit fa6bad20abb4f5b8fd2bee31439171628a353658
fa6bad20ab [DX] Add optional testdox/pest like output to get exact test metrics per unit test fixture (#4821)
2023-08-21 07:12:04 +00:00
Tomas Votruba
cfc8e32b1a Updated Rector to commit bf4cfa566386963da42447dbad93c5d6a94b5b93
bf4cfa5663 [PHPUnit] Fix extreemely slow PHPUnit run on data providers with objects (#4823)
2023-08-20 17:46:04 +00:00
Tomas Votruba
55f14a766b Updated Rector to commit bdad8bd4a5e4cdbcd65bdf942119750e0c7be1a8
bdad8bd4a5 [Experiment] Try running doc node traverser just once (#4822)
2023-08-20 11:20:02 +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
69a95d55f9 Updated Rector to commit cdc70aa3a5063c82760080bc4474c2fb36db1b3b
cdc70aa3a5 [automated] Apply Coding Standard (#4816)
2023-08-20 00:26:59 +00:00
Tomas Votruba
fdac720de2 Updated Rector to commit 87c677e7c304845c18ce1ccfb135aefab85b3bf4
87c677e7c3 [DX] Add ExprScopeFromStmtNodeVisitor, move logic deep Expr from ScopeAnalyzer to it (#4815)
2023-08-19 15:00:46 +00:00
Tomas Votruba
60feccd21a Updated Rector to commit 0477f5bf115172a4abf3f5ec1cef9613d31ba21c
0477f5bf11 [DX] Remove PHPStanNodeScopeResolver::processNodesWithDependentFiles() method (#4814)
2023-08-19 14:25:13 +00:00
Tomas Votruba
ca844057bc Updated Rector to commit dc489abc6e5c7ef4de847bd9a9bcae0bd67a75a2
dc489abc6e fix missed cleanup
2023-08-18 12:48:45 +00:00
Tomas Votruba
518a2bb0b1 Updated Rector to commit 3a15da7e8418045eea79697271a91a0d1ddf035f
3a15da7e84 typo
2023-08-18 12:43:06 +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
8d42e37dfd Updated Rector to commit 00f736f054372cca311469fec02b46edd5159b9a
00f736f054 Fix RenamePropertyToMatchTypeRector to skip Laravel collections and avoid accident rename (#4811)
2023-08-18 09:06:56 +00:00
Tomas Votruba
7ad16ccd68 Updated Rector to commit 5363a676265cbe868f4ecc6bde8c6a99b213d028
5363a67626 AddReturnTypeDeclarationBasedOnParentClassMethodRector: don't trust phpdoc types (#4810)
2023-08-17 15:17:47 +00:00
Tomas Votruba
df751a94e8 Updated Rector to commit 8d74e1c8c249ba279dfaaf714d8b43aa41b55a7c
8d74e1c8c2 Skip PHPDoc return type in AddReturnTypeDeclarationBasedOnParentClassMethodRector (#4809)
2023-08-17 15:01:26 +00:00
Tomas Votruba
30fbb286cf Updated Rector to commit b7d8787a257e94da73348cace71d2384bcc97930
b7d8787a25 remove fixture
2023-08-17 13:40:54 +00:00
Tomas Votruba
758ada29b5 Rector 0.18.0 2023-08-17 12:53:22 +00:00
Tomas Votruba
b8fef75121 Updated Rector to commit dc580ae1bb540eed78d915db46168b39c1469b42
dc580ae1bb Fix skip() Rector class, make container forget it comleteely (#4807)
2023-08-17 11:14:54 +00:00
Tomas Votruba
a2d4674549 Updated Rector to commit 9e19ff6b2fb081799d74a9ef6a4c068c2e7a5a01
9e19ff6b2f cs
2023-08-17 10:16:38 +00:00
Tomas Votruba
314c192af3 Updated Rector to commit bbd2e81b171f50d05ef73d63518cb1a31fdd7cd5
bbd2e81b17 Merge many Skipper tests to one, cleanup phpstan errors (#4806)
2023-08-17 10:13:30 +00:00
Tomas Votruba
64b92c8654 Rector 0.17.14 2023-08-17 09:45:26 +00:00
Tomas Votruba
266669789d Updated Rector to commit a85997a277c3227652eb9b2a6571fd01d183a5a7
a85997a277 Faster AddParamBasedOnParentClassMethodRector (#4805)
2023-08-17 09:06:25 +00:00
Tomas Votruba
7e217a5d21 Updated Rector to commit 2604a47c32dd8606349a1724122977c8b2fa6bf9
2604a47c32 Faster AddReturnTypeDeclarationBasedOnParentClassMethodRector (#4804)
2023-08-17 09:03:10 +00:00