10717 Commits

Author SHA1 Message Date
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
Tomas Votruba
d6adfda699 drop compiler from gitattributes 2020-11-27 20:55:39 +00:00
Tomas Votruba
499d452f99
Various improvements (#4717) 2020-11-27 21:39:42 +01:00
Tomas Votruba
377c734975
drop old compiler (#4716) 2020-11-27 17:54:14 +01:00
Markus Staab
ae0d38e1f0
added failing ChangeIfElseValueAssignToEarlyReturnRector test, regarding lost comments (#4698) 2020-11-27 17:38:07 +01:00
Markus Staab
04abc7af5c
create LostCommentBeforeElseIf failing test (#4697) 2020-11-27 17:33:16 +01:00
Tomas Votruba
0eb6e29176
drop MinimalVersionChecker, is checked by composer itself (#4715)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-27 17:32:38 +01:00
Tomas Votruba
947b9383ee
Decouple DowngradeSetList (#4714) 2020-11-27 17:14:41 +01:00
Markus Staab
972e0457cb
ChangeAndIfToEarlyReturnRector: added a failing testcase for continue-in-foreach (#4696)
* added a failing testcase

* initial try to fix 4693

* fix existing if_in_foreach test with wrong expected result

* Restore if_in_foreach.php.inc

* adusted wrong test expectation of if_in_foreach.php

* use betterNodeFinder->findFirstParentInstanceOf

* fix test expectation in if_in_foreach fixture

* fixed method name which was misleading

* fix variable name

* adjust impl

* Restore if_in_foreach.php.inc

* rm unused use

* fix impl
2020-11-27 16:10:48 +00:00
Markus Staab
548ab7176d
make sure we don't get a diff in which every line is different (#4713) 2020-11-27 17:08:49 +01:00
Markus Staab
fe47bc2cc7
ChangeAndIfToEarlyReturnRector: fix test expectation in if_in_foreach fixture (#4711)
* fix test expectation in if_in_foreach fixture

* fixed method name which was misleading

* fix variable name

* adjust impl
2020-11-27 13:59:56 +00:00
Tomas Votruba
f718d90cd2
remove extra space after declare, if there already is one (#4710) 2020-11-27 12:39:01 +00:00
Tomas Votruba
9150af563a
make use symplify/php-doc-parser (#4703)
* make use Symplify/PhpDocParser

* report line

* remove monorepo-builder, not needed anymore

* use php action 2

* fixup! use php action 2
2020-11-27 12:23:25 +00:00
Tomas Votruba
51ab276d57
[Downgrade PHP 7.1] feature/downgrade iterable pseudo type (#4706)
* [Downgrade PHP 7.1] iterable pseudo-type

* fix PHP version type

* cleanup

* static fixes

Co-authored-by: Norbert Orzechowicz <norbert@orzechowicz.pl>
2020-11-27 12:00:56 +00:00
Markus Staab
74a17fde01
ArrayThisCallToThisMethodCallRector: use betterNodeFinder->findFirstParentInstanceOf() (#4707) 2020-11-27 11:43:53 +00:00
Tomas Votruba
080e5cbe00
use symplify/skipper (#4689) 2020-11-26 23:09:21 +01:00
Tomas Votruba
054baf96d1
[DX] Remove buggy --only option to complete --set removal; use PHP config with reliable autocomplete (#4701) 2020-11-26 17:04:11 +00:00
Tomas Votruba
0963b8dca7
Drop --set forgotten leftover (#4700)
* Drop --set forgotten leftover

* remove package not split anymore
2020-11-26 16:55:33 +00:00
Tomas Votruba
0993088cda
[SymfonyPhpConfig] Use Symplify package instead + simplify set validation (#4694)
* [SymfonyPhpConfig] Use Symplify package instead

* [SymfonyPhpConfig] Drop forgotten custom-jobs Rectors

* [CI] simplify set validation

* from inline functions to Static class

* cleanup

* decouple rector.php to allow static analysis and coding standards
2020-11-26 16:44:27 +00:00
Abdul Malik Ikhsan
69d317f31c
[NetteCodeQuality] Register SubstrMinusToStringEndsWithRector to nette-code-quality config set (#4695) 2020-11-26 16:37:25 +01:00
github-actions[bot]
8c28495f44
[automated] Re-Generate CHANGELOG.md (#4668)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-11-26 13:43:17 +01:00
Abdul Malik Ikhsan
35d8693187
[NetteUtilsCodeQuality] Fixes #4686 Add SubstrMinusToStringEndsWithRector (#4687)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-26 13:33:51 +01:00
Tomas Votruba
4c9b816537 fix symplfy/vendor-patches name 2020-11-26 11:32:31 +00:00
Tomas Votruba
78d8cdc155 do not spam output with added files 2020-11-25 22:50:37 +00:00
Tomas Votruba
2577e66a3b move last migrify package to symplify 2020-11-25 22:40:44 +00:00
Tomas Votruba
0456cc088c
[Docs] Improve rule doc generator to generat rules_overview with categories (#4688)
* numbers

* update ECS config to Symplify 9

* regenerate rules with categorize

* [CI] disable automated rebase, as not working propperly

* update misc
2020-11-25 21:34:34 +00:00
Tomas Votruba
e8553cd647 [CI] Add monorepo validate [closes #4628] 2020-11-25 16:42:46 +00:00
github-actions[bot]
46388345b1
[automated] Re-Generate Nodes/Rectors Documentation (#4685)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-11-25 01:42:23 +01:00
Tomas Votruba
8e7c4bfc96 [CI] do not push to forks 2020-11-24 21:30:17 +00:00
HDVinnie
3fc5163f01
update: drop migrify/php-config-printer for symplify/php-config-printer (#4684)
* update: composer.json

- Package migrify/php-config-printer is abandoned. Using symplify/php-config-printer instead.

* update: migrify to symplify

* update: composer.json

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-11-24 16:14:21 +00:00
Abdul Malik Ikhsan
a38debb672
[DX] Fixes #4205 Change phpversion from string to php constant int type (#4679)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-24 16:32:49 +01:00
github-actions[bot]
64ab0a65b4
[automated] Re-Generate Nodes/Rectors Documentation (#4682)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-11-24 01:49:19 +01:00
Tomas Votruba
250e851123
skip spaced or html tagged (#4681)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-24 01:38:05 +01:00
Abdul Malik Ikhsan
1c9cfafdda
[Solid] Fixes #4677 Skip MoveVariableDeclarationNearReferenceRector on multiple usage in Switch -> cases (#4678) 2020-11-23 22:23:44 +01:00
Tomas Votruba
da6d703687
Improve Blade class renames (#4676)
* [Console] Use single point of command naming

* use blade in process command

* filter out blade templates from PHP files

* make test process blade as non php file

* add failing test

* remove duplicated tests

* rename php to php.inc suffix to make it skip to CI tools

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-23 19:16:48 +00:00
Tomas Votruba
6eb7ad40a1
use explicit in service definitions (#4674) 2020-11-23 14:10:13 +00:00