11321 Commits

Author SHA1 Message Date
Tomas Votruba
da535f7809
[PHP 5.5] Make StringClassNameToClassConstantRector as part of constants (#5634) 2021-02-20 21:53:11 +01:00
Tomas Votruba
0e5a777b00
simplify input configs (#5632)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-20 19:48:04 +00:00
Abdul Malik Ikhsan
9f4353c2af
[Coverage] Delete weekly coverage generation (#5631)
* [Coverage] Delete weekly coverage generation

* remove coverage badge
2021-02-20 17:41:38 +00:00
Abdul Malik Ikhsan
3cb9fc28b3
[Coverage] Add --testdox to phpunit command on weekly code coveage generation (#5630) 2021-02-20 14:38:40 +00:00
addshore
26cc82a223
[TypeDeclaration] Fix array type issue in PHPUnitDataProviderParamTypeInferer (#5615) 2021-02-20 12:21:56 +01:00
Tomas Votruba
0f9ac6f1e2
[CodingStyle] Improve constant array type (#5626)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-20 00:14:58 +00:00
Tomas Votruba
362ebbea46
[TypeDeclaration] Add ReturnTypeFromReturnNewRector (#5624)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-19 12:01:23 +00:00
Abdul Malik Ikhsan
0b17b91637
[Renaming] Skip RenameMethodRector on interface wildcard used (#5622)
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-02-19 10:28:45 +01:00
Tomas Votruba
652459ad3b
merge composer_validate (#5620) 2021-02-19 01:36:48 +01:00
Tomas Votruba
1ea1f5852b
[DeadCode] Remove RemoveUnusedClassesRector and RemoveUselessJustForSakeInterfaceRector, too unreliable (#5618) 2021-02-19 01:13:43 +01:00
Tomas Votruba
6e37d9af4e
[CodeQuality] Fix printing of fixed throws statement (#5616)
Co-authored-by: Stanislav Janů <info@lweb.cz>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 23:34:51 +01:00
Tomas Votruba
19810c2b9a
move FunctionToStaticMethodRector to Transform (#5613) 2021-02-18 21:35:10 +00:00
Tomas Votruba
cfd0b526d2
[Legacy] Drop RemoveIncludeRector (#5614) 2021-02-18 21:28:56 +00:00
Tomas Votruba
4ac321eda6
[Legacy] Drop AddTopIncludeRector, very narrow use case for generic users; better implemented externally (#5610) 2021-02-18 21:57:06 +01:00
Tomas Votruba
9f5bc8fa16
use ->getNativeType() to get native types (#5601) 2021-02-18 21:34:07 +01:00
Ruud Kamphuis
5e5abd336d
[TypedPropertyFromStrictConstructorRector] Keep var tag when it defines iterable type (#5611) 2021-02-18 21:33:38 +01:00
Abdul Malik Ikhsan
4416807562
[EarlyReturn] Register PreparedValueToEarlyReturnRector to early-return config set (#5606)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 17:01:55 +01:00
Tomas Votruba
ddfeae3391
drop --match-git-diff, not reliable for dependencies; use enable_cache instead (#5609)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 15:55:31 +00:00
Abdul Malik Ikhsan
19459b80fb
[EarlyReturn] Add PreparedValueToEarlyReturnRector (#5603)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 14:55:53 +01:00
Abdul Malik Ikhsan
bcc6c5f326
[DeadCode] Register RemoveDeadLoopRector to dead-code config set (#5605) 2021-02-18 14:50:36 +01:00
Matthias Pigulla
3fb87fd193
Tweak build-rector-scoped.sh so it "works on my machine"(TM) (#5602) 2021-02-18 14:18:52 +01:00
Abdul Malik Ikhsan
fd6f48c576
[DeadCode] Add RemoveDeadLoopRector (#5600)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 14:18:34 +01:00
Tomas Votruba
c609697f14
[TypeDeclarationStrict] Add AddMethodCallBasedStrictParamTypeRector (#5580) 2021-02-17 16:40:29 +01:00
Ruud Kamphuis
a75fee8395
[RemoveFuncCallArgRector] Use getName instead of isName to fix closure call (#5591)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-02-17 15:17:16 +01:00
Ruud Kamphuis
73bdede5ec
Pass string to FullyQualified instead of ::class (#5597)
Fixes #5596
2021-02-17 14:56:13 +01:00
Ruud Kamphuis
1561e108c0
Readme > Explain print_node (#5595) 2021-02-17 18:48:35 +07:00
Matthias Pigulla
242c6371d3
Specify an explicit Composer version (#5589)
... to not rely on a possibly outdated local image.
2021-02-17 12:12:53 +01:00
Tomas Votruba
1d0feb11ee
[CodeQuality] Skip typed property on isset rule (#5592)
Co-authored-by: vladyslavstartsev <17382248+vladyslavstartsev@users.noreply.github.com>
2021-02-17 10:51:32 +00:00
Abdul Malik Ikhsan
8e9b7b39fe
[NodeCollector] Apply NodeRepository::collect() on Name node (#5585)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-17 11:29:39 +01:00
Abdul Malik Ikhsan
cb9fd31016
[Renaming] Skip RenameMethodRector when target method is __invoke with private/protected modifier (#5586) 2021-02-17 09:21:50 +01:00
Abdul Malik Ikhsan
9e731713b6
[Naming] Fixes #5587 Skip RenameParamToMatchTypeRector when used in ClassMethod stmts (#5588) 2021-02-17 08:09:31 +01:00
Abdul Malik Ikhsan
8e915ebe9b
[DeadCode] Register RemoveEmptyAbstractClassRector to dead-code config set (#5583) 2021-02-16 21:16:21 +01:00
Abdul Malik Ikhsan
4fc4e7f52e
[CodeQuality] Improve InlineIfToExplicitIfRector : Allow AssignOp as well (#5582) 2021-02-16 20:16:37 +01:00
Abdul Malik Ikhsan
7475c7f025
[DeadCode] Add RemoveEmptyAbstractClassRector (#5558)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-16 20:15:45 +01:00
Abdul Malik Ikhsan
06906a0659
[CodeQuality] Improve InlineIfToExplicitIfRector : allow change BooleanOr to explicit if as well (#5579) 2021-02-16 19:36:50 +01:00
Abdul Malik Ikhsan
648bea9305
[Bin] Using file_exists() for check PHPStan stub ReflectionUnionType and Attribute exists (#5581) 2021-02-17 01:23:12 +07:00
TomasVotruba
3cbc3ef94b cs 2021-02-16 17:27:07 +01:00
TomasVotruba
904a4af497 drop arrow function from stmts type completion 2021-02-16 17:27:02 +01:00
Tomas Votruba
651573a58f
[TypeDeclaration] Add ReturnTypeFromStrictTypedCallRector (#5573) 2021-02-16 16:12:37 +00:00
addshore
a3f3b0e7d2
[DeadCode] Fix RemoveUnreachableStatementRector issue with global function declarations (#5575) 2021-02-16 17:03:52 +01:00
Abdul Malik Ikhsan
5921571647
[Bin] Add PHPStan Stub ReflectionUnionType and Attribute to bin/rector (#5569) 2021-02-16 16:57:16 +01:00
Ruud Kamphuis
8d58a6dd87
Fix merging of multiple calls to configure in sets (#5523) 2021-02-16 09:00:06 +01:00
Jan Mikeš
e9a16265ea
Prepared xdebug Docker image with instructions (#5544) 2021-02-16 08:52:34 +01:00
Abdul Malik Ikhsan
59e1063b50
[EearlyReturn] Improve ReturnAfterToEarlyOnBreakRector: skip when parent assign is not Expression (#5568)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-16 01:24:08 +01:00
TomasVotruba
c25c67887e more spaces 0.9.29 2021-02-15 22:40:45 +01:00
TomasVotruba
c5ae6b5a8f misc 2021-02-15 22:40:33 +01:00
TomasVotruba
8dfb338479 less spaces 2021-02-15 22:40:28 +01:00
Tomas Votruba
f03cfa767a
[Output] Drop checkstyle to avoid manual fixes in PRs (#5566) 2021-02-15 21:27:07 +00:00
TomasVotruba
662fa900c5 Merge branch 'higher-phpstan' 2021-02-15 22:16:16 +01:00
TomasVotruba
56b9e721e4 try to fix downgrade script with missing ReflectionUnionType 2021-02-15 22:16:05 +01:00