Tomas Votruba
2c46d4fc4d
[DX] Drop YamlFileFormatter as Rector does not process YAML ( #2376 )
2022-05-27 17:33:40 +02:00
Tomas Votruba
a7e6b685e9
[DX] Remove XmlFileFormatter, as Rector does not handle it ( #2375 )
2022-05-27 15:26:22 +00:00
Abdul Malik Ikhsan
64f93c848d
Try fix stub ReflectionUnionType not found in CI php 7.2 (take 2) ( #2374 )
2022-05-27 15:02:23 +00:00
Tomas Votruba
a9dd89b1cc
[DX] Remove CommandNaming magic, check rector class exists in RectorConfig ( #2372 )
2022-05-27 16:58:29 +02:00
Abdul Malik Ikhsan
03da98750a
Try fix stub ReflectionUnionType not found in CI php 7.2 ( #2373 )
2022-05-27 14:48:27 +00:00
Tomas Votruba
45eef47f27
[DX] Various config merge, improve RectorConfig methods ( #2371 )
2022-05-27 15:30:05 +02:00
Abdul Malik Ikhsan
a2d6da8b4e
Back to php-scoper 0.14 with scoping from php 8.0 ( #2370 )
2022-05-27 11:45:03 +00:00
Abdul Malik Ikhsan
0fd045cf35
Try php-scoper 0.17.2 ( #2369 )
2022-05-27 13:30:48 +02:00
Abdul Malik Ikhsan
1249d947f4
Try php-scoper 0.17 ( #2368 )
2022-05-27 11:16:02 +00:00
Tomas Votruba
7adde5807c
[DX] Move configure to direct call in RectorConfig ( #2367 )
2022-05-27 10:52:46 +00:00
Tomas Votruba
213b14d715
use Symfony 6.0 contracts
2022-05-27 12:52:26 +02:00
Tomas Votruba
d2456936e9
clear phpstan.neon
2022-05-27 12:42:31 +02:00
Abdul Malik Ikhsan
bfff1df4dd
[PhpDocInfo] Fixes Partial value update got duplicated on DoctrineAnnotationTagValueNode change ( #1862 )
...
* [PhpDocInfo] Fixing Partial value update got duplicated on PhpDocInfo change
* Fixed 🎉
* Fixed 🎉
* clean up
* Fixed 🎉
* [ci-review] Rector Rectify
* rollback mirror check
* check end equals to length identifier and silent value
* check SpacelessPhpDocTagNode
* tweak
* more fixtures
* back
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* back
* back
* debug reprint
* back
* fix ?
* try
* try
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* add failing fixture
* debug
* another approach
Co-authored-by: GitHub Action <action@github.com>
2022-05-27 17:41:18 +07:00
Tomas Votruba
e690cd059c
restore downgrade configs
2022-05-27 12:33:12 +02:00
Tomas Votruba
e61411e03c
use Symfony 6.0 stable
2022-05-27 12:29:13 +02:00
Tomas Votruba
8ab69fed33
[downgrade] try downgrading all with parallel
2022-05-27 11:59:02 +02:00
Alexander Schranz
99840deb9d
Update the branch alias for dev-main ( #2365 )
2022-05-27 08:44:07 +00:00
Tomas Votruba
f5a06553ce
[CodeQuality] Add InlineIsAInstanceOfRector ( #2364 )
2022-05-27 00:01:06 +02:00
Abdul Malik Ikhsan
3da22b0231
[Php81] Skip ArrayDimFetch from ArrayObject in Assign var on ReadOnlyPropertyRector ( #2363 )
...
* [Php81] Skip ArrayDimFetch from ArrayObject in Assign var on ReadOnlyPropertyRector
* Fixed 🎉
* eol
2022-05-26 09:13:59 +02:00
Tomas Votruba
66dbb1e307
Allow to rename method if in interface ( #2362 )
...
* add test fixture
* allow rename method in interface
2022-05-25 21:35:18 +00:00
Abdul Malik Ikhsan
5d0138dcef
Fixture class name fix ( #2360 )
2022-05-25 07:35:48 +00:00
Abdul Malik Ikhsan
9c6b3d708c
[TypeDeclaration] Skip curly {@inheritdoc} on AddArrayReturnDocTypeRector ( #2359 )
2022-05-25 09:26:56 +02:00
Abdul Malik Ikhsan
4c53b206a4
[Php80] Do not remove array<mixed> inside Union type on UnionTypesRector ( #2358 )
...
* [Php80] Do not remove array<mixed> inside Union type on UnionTypesRector
* Fixed 🎉
* also allow mixed[]
* clean up
* clean up
2022-05-25 08:52:50 +02:00
Abdul Malik Ikhsan
e1ecbe90fc
[DeadCode] Handle RemoveDoubleAssignRector+RemoveUnusedVariableAssignRector ( #2355 )
...
* [DeadCode] Handle RemoveDoubleAssignRector+RemoveUnusedVariableAssignRector
* [ci-review] Rector Rectify
* debug
* back
* Fixed 🎉
* cs
* final touch: comment back
Co-authored-by: GitHub Action <action@github.com>
2022-05-24 22:50:15 +02:00
Abdul Malik Ikhsan
8efa7151e6
[FamilyTree] Use parent->hasNativeMethod() on ClassChildAnalyzer->resolveParentClassMethods() ( #2357 )
2022-05-24 22:49:28 +02:00
Abdul Malik Ikhsan
dc9189280f
[PHPStan] Update to PHPStan ^1.7.0 ( #2354 )
...
* [PHPStan] Update to PHPStan ^1.7.0
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* already 1.7.1
* skip pull from PHPStan PhpPropertyReflection
* rename fixture
* debug
* Fixed 🎉
* keep mysqli object use case
Co-authored-by: GitHub Action <action@github.com>
2022-05-24 19:55:12 +07:00
Abdul Malik Ikhsan
a14bd26655
[Core] Handle Previous Stmt not Stmt on UnreachableStmtAnalyzer ( #2353 )
...
* [Core] Handle Previous Stmt not Stmt on UnreachableStmtAnalyzer
* phpstan
2022-05-24 08:59:18 +00:00
Abdul Malik Ikhsan
f25715b7b3
[Php73] Skip Encapsed on StringifyStrNeedlesRector + Temporary Pin PHPStan 1.6.9 ( #2352 )
...
* [Php73] Skip Encapsed on StringifyStrNeedlesRector
* phpstan
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* Fixed 🎉
* eol
* update requirement to PHPStan 1.7.0
* temporary pin to 1.6.9
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: GitHub Action <action@github.com>
2022-05-24 15:29:10 +07:00
Abdul Malik Ikhsan
1691157a64
[Core] Use PropertyFetchAnalyzer::isFilledViaMethodCallInConstructStmts() in ConstructorAssignDetector::isPropertyAssigned() ( #2351 )
...
* [Core] Use PropertyFetchAnalyzer::isFilledViaMethodCallInConstructStmts() in ConstructorAssignDetector::isPropertyAssigned()
* more
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* add test for self static
* more tests
* phpstan
* [ci-review] Rector Rectify
* StaticPropertyFetch detection fix
* final touch: clean up: donot create object when not needed
* final touch: clean up
* final touch: clean up
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: GitHub Action <action@github.com>
2022-05-23 21:06:50 +07:00
Abdul Malik Ikhsan
f134b6183e
[Php71] Ensure return $node only when catch of TryCatch removed on MultiExceptionCatchRector ( #2350 )
...
* [Php71] Ensure return $node only when catch of TryCatch removed on MultiExceptionCatchRector
* [Php71] Ensure return $node only when catch of TryCatch removed on MultiExceptionCatchRector
2022-05-23 03:43:42 +00:00
Abdul Malik Ikhsan
3fe07aa6a1
[Experiment][Naming] Keep GroupUse Stmt on UseImportsResolver::resolveForNode() ( #2349 )
...
Co-authored-by: GitHub Action <action@github.com>
2022-05-22 22:57:59 +02:00
Abdul Malik Ikhsan
f8c204adba
[Naming] Handle Grouped use import on UseImportsResolver ( #2348 )
...
Co-authored-by: Dominik Ritter <dritter03@googlemail.com>
Co-authored-by: GitHub Action <action@github.com>
2022-05-22 19:34:31 +02:00
Abdul Malik Ikhsan
a9c6d9bd06
[Core][DeadCode] Remove ClassMethodManipulator->isPropertyPromotion() ( #2346 )
2022-05-22 18:59:41 +02:00
Abdul Malik Ikhsan
8fbc6582f9
[Core][Naming] Move collecting param names method to FunctionLikeManipulator ( #2347 )
...
* [Core][Naming] Move collecting param names method to FunctionLikeManipulator
* use getParams() as interface
* [ci-review] Rector Rectify
Co-authored-by: GitHub Action <action@github.com>
2022-05-22 18:53:13 +02:00
Abdul Malik Ikhsan
68906c7e17
[DeadCode] Skip used in compact() on RemoveUnusedConstructorParamRector ( #2345 )
...
* [DeadCode] Skip used in compact() on RemoveUnusedConstructorParamRector
* Fixed 🎉
* phpstan
* phpstan
* [ci-review] Rector Rectify
Co-authored-by: GitHub Action <action@github.com>
2022-05-22 13:42:14 +02:00
Tomas Votruba
20731aedd2
add RectorConfigProvider::getSymfonyContainerXml()
2022-05-22 09:42:53 +02:00
Ruud Kamphuis
a59e9cece6
Fix return type of FileInfoParser::parseFileInfoToNodesAndDecorate ( #2344 )
...
It returns `PhpParser\Node\Stmt[]` instead of `PhpParser\Node[]`.
2022-05-22 14:17:58 +07:00
Tomas Votruba
08a35afeb1
remove symfony routes json paramter as unused
2022-05-22 09:12:04 +02:00
Tomas Votruba
adb6e68c2a
[automated] Re-Generate Nodes/Rectors Documentation ( #2343 )
...
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
2022-05-22 00:30:58 +00:00
Abdul Malik Ikhsan
fef1a03955
[DeadCode] Skip used in Closure use on RemoveUnusedConstructorParamRector ( #2341 )
2022-05-21 18:24:10 +02:00
Tomas Votruba
b4120a8850
[DX] Use direct method on node, instead of token position ( #2340 )
2022-05-21 08:43:58 +00:00
Tomas Votruba
fcadc67328
add symfony php config option to allow loading route factory ( #2339 )
2022-05-21 08:42:08 +00:00
Abdul Malik Ikhsan
36fd8fa619
[NodeTypeResolver] Remove DummyTraitClass check as the class no longer exists ( #2338 )
2022-05-20 19:59:01 +02:00
Abdul Malik Ikhsan
f0a1b688f3
[DowngradePhp80] Apply PHPStan 1.7.x-dev compatible for PhpParameterReflection ( #2336 )
2022-05-20 12:16:54 +02:00
Abdul Malik Ikhsan
1a56ec1736
[Php80] Handle default in previous not used in next switch ( #2335 )
...
* [Php80] Handle default in previous not used in next switch
* debug
* Fixed 🎉
* Fixed 🎉
2022-05-20 01:07:00 +07:00
Abdul Malik Ikhsan
3f0a0b7259
[Php80] Skip no default return fluent on ChangeSwitchToMatchRector ( #2334 )
2022-05-19 18:23:22 +02:00
Abdul Malik Ikhsan
f90acd4c3a
[DowngradePhp80] Handle inside Closure on DowngradeMatchToSwitchRector ( #2333 )
...
* [DowngradePhp80] Handle inside Closure on DowngradeMatchToSwitchRector
* Fixed 🎉
* CI tweak
* updated tests
* check parent structure
* verify original node
* clean up
* rollback
* run all tests with paratest
2022-05-19 21:25:28 +07:00
Abdul Malik Ikhsan
30a53bfd93
[DowngradePhp80] Add in arrow function in return support on DowngradeMatchToSwitchRector ( #2331 )
...
* [DowngradePhp80] Add in arrow function in return support on DowngradeMatchToSwitchRector
* Fixed 🎉
* [ci-review] Rector Rectify
* final touch: variable naming
* final touch: variable naming
* final touch: variable naming
* final touch: comment for future
* final touch: comment for future
* Fixed 🎉
* Fixed 🎉
* phpstan
* [ci-review] Rector Rectify
* fix test
Co-authored-by: GitHub Action <action@github.com>
2022-05-19 08:52:59 +02:00
Abdul Malik Ikhsan
36af81f0dd
[DowngradePhp80] Handle match inside ArrowFunction on DowngradeMatchToSwitchRector ( #2330 )
...
Co-authored-by: GitHub Action <action@github.com>
2022-05-18 17:19:35 +02:00
Abdul Malik Ikhsan
0704ba0af4
[Core] Remove clean comment on NodeComparator::isNodeEqual() ( #2329 )
2022-05-18 14:59:40 +02:00