10652 Commits

Author SHA1 Message Date
Abdul Malik Ikhsan
87af56c3fa
[DX] Fixes #4777 Update ConfiguredCodeSample to CodeSample for no configuration in Rector class (#4778) 2020-12-04 15:05:06 +01:00
Abdul Malik Ikhsan
d3a6a1db28
[Downgrade PHP 8.0] Add DowngradeClassOnObjectToGetClassRector (#4772) 2020-12-04 15:00:52 +01:00
Abdul Malik Ikhsan
cfdbbddfc4
[DX] Fixes #3675 Report running rule without configuration (#4771)
* [DX] Fixes #3675 Report running rule without configuration

* disable empty configuration check on test

* cs fix

* clean up

* phpstan
2020-12-04 13:02:37 +01:00
Abdul Malik Ikhsan
0308cfd63b
[PHPstan] Fixes #4731 Skip RemoveNonExistingVarAnnotationRector on comment in next line of @var (#4775) 2020-12-04 12:31:49 +01:00
Leonardo Losoviz
5257f3ae3e
Downgrade PHP 7.4 contravariant argument type (#4770)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-12-04 12:30:37 +01:00
Leonardo Losoviz
1bb4e06fd8
Downgrade PHP 7.4 Covariant return types - Handle also interfaces (#4774) 2020-12-04 12:28:32 +01:00
github-actions[bot]
9a52045475
[automated] Re-Generate Nodes/Rectors Documentation (#4767)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-04 01:51:32 +01:00
github-actions[bot]
e85f0b158d
[automated] Apply Coding Standard (#4768)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-04 01:49:50 +01:00
Tomas Votruba
09f17a7b64
[Downgrade] [PHP 8.0] Add DowngradePropertyPromotionToConstructorPropertyAssignRector (#4762)
* [Downgrade] [PHP 8.0] Add DowngradePropertyPromotionToConstructorPropertyAssignRector

* fix parent

* various fixes for PHP 8.0 tests

* [ci-review] Rector Rectify

* Update rules/downgrade-php80/tests/Rector/Class_/DowngradePropertyPromotionToConstructorPropertyAssignRector/DowngradePropertyPromotionToConstructorPropertyAssignRectorTest.php

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-03 13:27:24 +00:00
Michal Lulco
1f5876ed28
Added some missing Nette 3.0 tasks (#4764) 2020-12-03 13:27:12 +00:00
Tomas Votruba
ca5399b249
[Downgrade] Fix file matching for ChangePhpVersionInPlatformCheckRector (#4763) 2020-12-03 12:27:00 +00:00
github-actions[bot]
1dc13433a5
[automated] Re-Generate Nodes/Rectors Documentation (#4759)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-03 09:32:04 +01:00
Leonardo Losoviz
4bf25404e1
Added rule to set (#4758) 2020-12-03 09:31:13 +01:00
Abdul Malik Ikhsan
0e421247e8
[Solid] Skip ChangeAndIfToEarlyReturnRector on nested if in loop (#4757)
* ChangeAndIfToEarlyReturnRector: added failing test

* fix test warning

* rename test

* rename test

* try to fix the issue

* Update skip_nested_if_in_loop.inc

* rename fixture

* rename fixture

* extracted loop-types into constant

* fix

* refactor

* take Else_/ElseIf_ into account

* Update ChangeAndIfToEarlyReturnRector.php

* [Solid] Skip ChangeAndIfToEarlyReturnRector on nested if in loop, Closes #4728

* [ci-review] Rector Rectify

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: Markus Staab <markus.staab@redaxo.de>
Co-authored-by: Markus Staab <maggus.staab@googlemail.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-03 09:20:59 +01:00
Leonardo Losoviz
36ed4ee6a2
Downgrade PHP 7.4 covariant return type (#4755)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-02 18:47:51 +01:00
Tomas Votruba
0b9c72ea9a
[PHP 8.0] Fix property removal in property promotion, if they have doctrine annotations (#4752)
* [PHP 8.0] Keep doctrine proeprty with annotations on property promotion

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-02 14:26:14 +00:00
Michal Lulco
7fb280a739
Fix CallTypeAnalyzer when methodName is null (#4753)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-12-02 15:14:22 +01:00
Krystian Marcisz
2eba542760
Fix UnusedForeachValueToArrayKeysRector on objects (#4750) 2020-12-02 14:09:35 +01:00
Abdul Malik Ikhsan
7dc7763585
[DeadCode] Fixes #4663 Handle RemoveEmptyMethodCallRector on parent is Assign (#4746) 2020-12-02 12:44:56 +01:00
Tomas Votruba
42dae6a86a
[DeadCode] Fix RemoveDeadConstructorRector (#4751)
* [DeadCode] Fix RemoveDeadConstructorRector

* [DeadCode] Fix RemoveUnusedParameterRector in property promotion
2020-12-02 10:38:59 +00:00
Tomas Votruba
132062acf3
[DeadCode] Fix dead method in property promotion (#4749)
* [DeadCode] Fix dead method in property promotion

* bump workflows PHP version to 7.2, to respect symplify bump

* allow non-existing attributes in tests
2020-12-02 10:15:39 +00:00
Leonardo Losoviz
b481189294
Fixed the import for class Closure (#4747) 2020-12-02 10:12:21 +01:00
TomasVotruba
c741a09560 do not add stubs to final project to prevent PHPStorm bugging 2020-12-02 09:57:32 +01:00
github-actions[bot]
481aa0d700
[automated] Re-Generate Nodes/Rectors Documentation (#4745)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-02 09:52:34 +01:00
TomasVotruba
07f1a4d156 filter out non-existing attribute classes 2020-12-02 02:02:46 +01:00
TomasVotruba
f7a092138d fix bundle path 2020-12-01 23:30:16 +01:00
TomasVotruba
a722a5b2a6 update bundle path 2020-12-01 23:20:13 +01:00
TomasVotruba
0f8893bbc2 fix symfony-php-config location 2020-12-01 23:03:47 +01:00
Markus Staab
38c0ebda75
remove double ** glob to speedup bootstrapping (#4743) 2020-12-01 22:46:05 +01:00
Tomas Votruba
f38dc68649
[Naming] Skip union type to resolve param name (#4742) 2020-12-01 15:57:41 +01:00
TomasVotruba
275ef81062 fix missing deafault replace empty string 2020-12-01 15:00:00 +01:00
Tomas Votruba
2030badc19
[PHP 8.0] Add nette utils strings replace, static fixes (#4741)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-01 14:52:24 +01:00
github-actions[bot]
bb69160bd8
[automated] Re-Generate Nodes/Rectors Documentation (#4739)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-01 14:40:16 +01:00
Tomas Votruba
267989bb05
[Docs] Add docblock docs (#4740)
* skip getUser() as the method is final

* drop comment along with removed node, as in other removed nodes

* [docs] add doc block docs
2020-12-01 01:09:50 +00:00
Markus Staab
a46571b610
README: mention the rd debugging helper function (#4737) 2020-11-30 16:41:24 +00:00
Abdul Malik Ikhsan
d0cb30f9ed
[DX] Fixes #4724 Filename too long, rename ChangeQuerySetParametersMethodParameterFromArrayToArrayCollectionRector to ChangeSetParametersArrayToArrayCollectionRector (#4729) 2020-11-30 11:11:11 +01:00
Abdul Malik Ikhsan
4087029cb9
[BetterStandardPrinter] Fixes #4691 Donot convert string literal comment (#4727)
* [BetterStandardPrinter] Fixes #4691 Donot change convert string literal comment

* handle spacing

* [ci-review] Rector Rectify

* fix conflict

* [ci-review] Rector Rectify

* try --debug

* Trigger notification

* phpstan

* phpstan

Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-30 09:51:11 +00:00
TomasVotruba
0b3f6446f3 remove duplicated rule in phpstan.neon 2020-11-29 19:00:26 +01:00
TomasVotruba
eb8f032d22 sorting 2020-11-29 18:59:16 +01:00
Tomas Votruba
3d721e8ca8
drop symfony\process for single call (#4735) 2020-11-29 18:47:29 +01:00
Tomas Votruba
79f3611dc9
remove ci-detector, make no-progress-bar api compatible with other CI tools (#4734) 2020-11-29 18:37:13 +01:00
Jan Mikeš
99b601e5a3
Fix permissions on /tmp in Docker (#4730)
Fixes #4568
2020-11-29 11:14:55 +01:00
github-actions[bot]
c55a99ebd3
[automated] Re-Generate CHANGELOG.md (#4732)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-11-29 11:14:40 +01:00
Markus Staab
976c5ba4c5
Readme: make „pick from sets“ more prominent (#4733) 2020-11-29 11:13:33 +01:00
github-actions[bot]
d82ddcc4ba
[automated] Re-Generate Nodes/Rectors Documentation (#4722)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-11-28 19:06:05 +01:00
Markus Staab
e5b411d9cd
Add issue labels to issue templates (#4719) 2020-11-28 19:05:57 +01:00
Tomas Votruba
d962e3f6b0
[Downgrade] Add composer platform check (#4721) 2020-11-28 00:16:19 +01:00
Tomas Votruba
dade40765a
trait refactoring (#4718)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-27 22:29:40 +01:00
Tomas Votruba
5c66890e46 simplify autoload in bin/rector.php 2020-11-27 21:00:10 +00:00
Tomas Votruba
5ea25b23de cleanpu gitignore 2020-11-27 20:56:16 +00:00