Pierre du Plessis
7db7d4e037
Don't skip add \
prefix for function when auto import name enabled ( #5280 )
2021-01-22 09:24:16 +00:00
Tomas Votruba
1d92bb71cc
[PHP 8.0] Add method call support ( #5281 )
...
* [PHP 8.0] Add skip external one
* add method call support
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
0.9.13
2021-01-22 10:16:00 +01:00
Tomas Votruba
3e96fab69f
[PHP 8.0] Add new support to RequireOptionalParamResolver ( #5279 )
2021-01-22 01:41:09 +00:00
Jarek Jakubowski
f866e25b1f
Fix match without return ( #5237 )
2021-01-22 01:20:13 +01:00
Tomas Votruba
e90a430bcf
[PHP 8.0] Add OptionalParametersAfterRequiredRector ( #5277 )
2021-01-22 00:17:43 +00:00
Tomas Votruba
f7fc1ea144
skip presenter on control parent/name remover ( #5278 )
2021-01-22 01:15:05 +01:00
Tomas Votruba
8b6b1a81e8
misc ( #5276 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-21 21:58:26 +01:00
vladyslavstartsev
b7977e5c74
[DoctrineCodeQuality] replace ASC
|DESC
strings with constants ( #5271 )
...
* [DoctrineCodeQuality] replace `ASC`|`DESC` strings with constants
* move class definitions to a string
2021-01-21 18:42:03 +01:00
Abdul Malik Ikhsan
d300cc0464
[Symfony4] Skip ConsoleExecuteReturnIntRector on cast int return ( #5275 )
...
* Add failing test fixture for ConsoleExecuteReturnIntRector
# Failing Test for ConsoleExecuteReturnIntRector
Based on https://getrector.org/demo/2ce24767-1f3c-4f0c-b74f-bbea4b441678
* skip duplicated code
* Close #5272 Fixes #5273
* fixture
* ensure parent is return for Int_ cast skip
* ensure parent is return for Int_ cast skip
Co-authored-by: vladyslavstartsev <17382248+vladyslavstartsev@users.noreply.github.com>
2021-01-21 18:41:06 +01:00
Abdul Malik Ikhsan
bf94f4c420
[Performance] Handle PreslashSimpleFunctionRector on Option::AUTO_IMPORT_NAMES => true ( #5268 )
...
Co-authored-by: Pierre <pierre@pcservice.co.za>
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-21 14:06:03 +01:00
Tomas Votruba
87494ce3a6
Print only changed docblocks 🎉 🎉 🎉 ( #5251 )
0.9.12
2021-01-20 16:17:59 +00:00
Tomas Votruba
85e7f7fa2c
Make remove parent/name only on component, skip form ( #5266 )
2021-01-20 15:57:49 +00:00
Tomas Votruba
7d001c13b0
Move FlipTypeControlToUseExclusiveTypeRector from type declaration to code-quality-strict, as it might be opinionated and aim at higher level programming ( #5265 )
2021-01-20 15:24:57 +00:00
Michal Lulco
c6ab3bf015
Added missing symfony/process to composer.json ( #5264 )
2021-01-20 15:12:17 +01:00
Jan Lohage
8d6f8369f1
NodeFactory: Allow passing a Cast node to createArrayItems ( #5263 )
...
Allow passing a Cast node to createArrayItems
2021-01-20 15:12:00 +01:00
TomasVotruba
6dd74ffb89
remove unused sniff
0.9.11
2021-01-20 15:05:20 +01:00
Tomas Votruba
f4eb05998b
extend Nette 3.1 set ( #5261 )
2021-01-20 13:08:23 +00:00
Abdul Malik Ikhsan
c2c5228199
[TypeDeclaration] Improve FlipTypeControlToUseExclusiveTypeRector : add Nullable support for Assign expr ( #5254 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-20 11:41:35 +00:00
Abdul Malik Ikhsan
d5fc2cb8f5
[DeadCode] Skip RemoveUnusedPublicMethodRector on __construct ( #5258 )
...
* Add failing test fixture for RemoveUnusedPublicMethodRector
# Failing Test for RemoveUnusedPublicMethodRector
Based on https://getrector.org/demo/48213d30-8e42-4f9f-885b-30906a78970f
#5256
* Close #5257 Fixes #5256
Co-authored-by: Jan Lohage <j2L4e@users.noreply.github.com>
2021-01-20 12:19:11 +01:00
Michal Lulco
f386ccd8ce
Upgrade to Nette 3.1 ( #5195 )
2021-01-20 12:17:16 +01:00
Tomas Votruba
5e882a711c
Drop php doc info visitor ( #5250 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-20 00:36:35 +01:00
Tomas Votruba
34168ff9d8
various cherry picks ( #5248 )
2021-01-19 23:29:52 +00:00
Tomas Votruba
05356b393a
Getting rid of attribute ( #5246 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-19 22:32:28 +01:00
Tomas Votruba
81eeb2771b
Various cherry-pick ( #5243 )
...
* [Transform] Add VariableMethodCallToServiceCallRector
* use direct phpdocinfo
* cleanup
* narrow DoctrinePropertyAnalyzer
* misc
2021-01-19 20:39:57 +00:00
Tomas Votruba
4b7f6f4a72
use PhpDocTagRemoer as a service ( #5242 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-19 19:45:30 +00:00
Tomas Votruba
66d0b61a9d
[Comments] Decouple new package ( #5239 )
...
* [Comments] Decopule new package
* fix RemoveNonExistingVarAnnotationRector
* decopule PropertyFetchFinder
* misc
* fix fixed printer
* fix import
* remove dead code
* fix comparing nodes with tokens instead of identical compare
* remove complexity
* decouple IndentCharacterDetector
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-19 19:11:10 +00:00
Tomas Votruba
133322cc65
cherry pick ( #5238 )
...
* misc
* decopule DocBlockManipulator misc
* make use static instnaceof
* add markAsChanged() to PhpDocInfo
* decopule DocBlockTagReplacer
* change static annotation naming to service
* misc
2021-01-19 15:03:26 +00:00
Jarek Jakubowski
477ccbb2ba
Fix parsing JoinTable without table name explicitly set ( #5236 )
2021-01-19 15:46:38 +01:00
Abdul Malik Ikhsan
6b196a96ea
[TypeDeclaration] Register FlipTypeControlToUseExclusiveTypeRector to type-declaration set ( #5223 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-01-19 12:24:48 +01:00
Abdul Malik Ikhsan
14def70268
[PHPStan] Clean up duplicate PHPStan config ( #5232 )
...
* [PHPStan] Clean up PHPstan config
* phpstan
* phpstan
2021-01-19 12:19:20 +01:00
Tomas Votruba
bbe758ab60
phpdoc info refactor part 4 ( #5231 )
...
* remove useless docblocks
* misc
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-19 01:15:32 +00:00
Tomas Votruba
ad9448018c
[PhpDocInfo Decouple] Use php doc info from factories, not from attribute ( #5229 )
...
* use single method to create docs
* use phpDocInfoFactory instead of getAttribte php doc info in Rectors
* move callig to phpDocInfoFactory
* misc
2021-01-18 21:45:13 +00:00
Tomas Votruba
b9bc05aa44
[PhpDocInfo Decopule] Refactor PhpDocTypeChanger outside the value object ( #5226 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-18 20:06:02 +00:00
Tomas Votruba
147f86c62d
add FalseBooleanType and UnionType false support ( #5228 )
...
* add FalseBooleanType
* fix boolean union types
* fix nullable union type on old versoin
* decouple BoolUnionTypeAnalyzer
* [ci-review] Rector Rectify
* decopule
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-18 19:23:10 +00:00
Abdul Malik Ikhsan
2e911431e9
[PHPStan] Fix duplicate report PreventDuplicateClassMethodRule ( #5225 )
...
* [PHPStan] Fix duplicate report PreventDuplicateClassMethodRule
* reg
2021-01-18 17:46:10 +01:00
Tomas Votruba
a7550337f0
Add promoted property in PHP 8.0, when adding a ctor dependency ( #5222 )
...
* add PHP 8.0 test
* Add promoted property adding in constructor injection on PHP 8
* update tests to use propert promotion
* fix promoted property adding
* decopule Doctrine registry to manager
* shorter naming
* fix parent ctor completion
* nette promotion fixes
* fixes
* fix property inject
* misc
* misc
2021-01-18 13:09:48 +00:00
Abdul Malik Ikhsan
3c2f4eae47
[TypeDeclaration] Add FlipTypeControlToUseExclusiveTypeRector ( #5214 )
...
* [TypeDeclaration] Fixes #5137 [WIP] Add FlipTypeControlToUseExclusiveTypeRector
* adding test
* checking types
* define instanceof
* define instanceof
* refactor use Identical node
* functional
* phpstan
* rectify
* BooleanNot
* phpstan
* skip not null compare
* skip no assign
* skip no var tag
* skip multi types
* skip assign different var
* test interface type
* skip not null doc
* skip array
* skip no doc
* skip not union
* cs fix
* cs fix
* fix example
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
* remove doc as well
* cs
* cs
* cs
* phpstan
* clean up
* use instanceof IdentifierTypeNode check
* failing fixture skip string type
* Revert "use instanceof IdentifierTypeNode check"
This reverts commit aa046dff740b621e881d27e3a51e3a3a3c73a59c.
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-01-18 13:22:26 +01:00
Tomas Votruba
e8ec95fe85
skip anything but variable ( #5221 )
2021-01-18 11:47:39 +01:00
Tomas Votruba
7b72a07894
[Transform] Add NewToConstructorInjectionRector ( #5220 )
...
* [Transorm] Add NewToConstructorInjectionRector
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-18 10:44:07 +00:00
Tomas Votruba
5105fd0355
[Composer] Remove forgotten validation ( #5219 )
...
* [Composer] Remove forgotten validation
* skip duplicated method
2021-01-18 10:07:57 +00:00
Tomas Votruba
4d6d2cd440
[PHP 8.0] Remove union types doc if useless ( #5217 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-18 02:56:12 +01:00
Tomas Votruba
cfbe014d67
[PHP 7.3] Fix stirng retype on intersections ( #5216 )
...
* [PHP 7.3] Fix stirng retype on intersections
* remove unneeded command layer for showing not enough args
* make sure there is application
* misc
2021-01-17 23:39:13 +00:00
TomasVotruba
120e857606
[PHP 8.0] Drop FalseableCountToZeroRector, not used anymore
2021-01-17 22:36:37 +01:00
TomasVotruba
5f975f48f6
[DeadCode] Skip unused class constant in case of api on class
0.9.10
2021-01-17 20:30:11 +01:00
TomasVotruba
e5226b87da
cleanup commented code
2021-01-17 16:50:28 +01:00
Tomas Votruba
ea1f7bd758
Lower class complexity ( #5208 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-17 15:43:47 +00:00
Tomas Votruba
0a3dc08d61
drop Sonarcube ( #5215 )
2021-01-17 15:32:01 +00:00
github-actions[bot]
d93900b56a
[automated] Re-Generate Nodes/Rectors Documentation ( #5211 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-17 14:32:41 +01:00
github-actions[bot]
8d00d33505
[automated] Re-Generate CHANGELOG.md ( #5212 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-17 14:32:31 +01:00
Abdul Malik Ikhsan
a071ae7dff
[CodeCoverage] Fixes weekly code coverage by move COVERALLS_REPO_TOKEN on run ( #5213 )
2021-01-17 14:31:55 +01:00