10197 Commits

Author SHA1 Message Date
Tomas Votruba
245000a0ce
[DeadCode] Improve unused private property detection (#4430)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-16 21:29:29 +02:00
Abdul Malik Ikhsan
aa16532ea3
add $parameters->set(Option::ENABLE_CACHE, true) to readme config (#4427) 2020-10-16 09:45:26 +02:00
Leonardo Losoviz
8ba46c51e4
[Downgrade PHP7.3] Remove unneeded params from list(), and even remove list() (#4392)
* Remove unneeded params from `list` and even `list`

* Fixed cs

* Re-ordered private methods

* Fixed rector-ci

* Fixed cs

* Fixed phpstan error

* Use typehint, not docblock

* Fixed phpstan cognitive complexity error

* Fixed rector-ci

* Improved code sample

* Fixed code sample

* Extracted code into function

* Reduced complexity

* Reduced complexity

* Reduced  complexity

* Added comment

* Renamed function

* Documented code

* Moved code into function

* Fixed cs

* Fixed rector-ci
2020-10-16 00:44:29 +02:00
Leonardo Losoviz
139823a3a2
[Downgrade PHP 7.4] Support iterable pseudo-type when downgrading the array spread (#4404)
* Support iterable pseudo-type

* Renamed function

* Fixed cs
2020-10-16 00:25:34 +02:00
Tomas Votruba
b7e3dad887
add doctrine embedded php doc node (#4424)
* Add a tag value node for Doctrine Embedded tags

* fix getter name

Co-authored-by: Matthias Noback <matthiasnoback@gmail.com>
2020-10-15 20:48:23 +00:00
Tomas Votruba
16031da4b7
[DeadCode] Fix binary different nesting in RemoveOverriddenValuesRector (#4422)
* decopule NodeByTypeAndPositionCollector

* decouple VariableUseFinder
0.8.28
2020-10-15 20:23:25 +00:00
Pol Dellaiera
09dc6cef9a
Issue #4413: Do not refactor iterator_to_array. (#4415)
* Issue #4413: Do not refactor iterator_to_array.

Signed-off-by: Pol Dellaiera <pol.dellaiera@protonmail.com>

* Issue #4413: Update tests based on review feedback.

* Issue #4413: Fix CS.
2020-10-15 17:55:38 +02:00
Tomas Votruba
5e3e857242
[DeadCode] Make RemoveUnusedPrivateConstantRector skip enum (#4420) 0.8.27 2020-10-15 16:06:42 +02:00
Tomas Votruba
b2c9e3b127
[DeadCode] Make RemoveUnusedPrivateConstantRector skip enum (#4419) 2020-10-15 13:04:58 +00:00
TomasVotruba
0fd311cb16 fix indent 0.8.26 2020-10-15 14:16:31 +02:00
Tomas Votruba
c84690baa6
[DeadCode] Various improvements (#4417) 2020-10-15 14:15:01 +02:00
Tomas Votruba
a9f737bcaf
decouple CommentRemover (#4412) 0.8.25 2020-10-15 11:50:15 +02:00
Leonardo Losoviz
6f1590efcd
Downgrade Rector to PHP 7.1 - Use same signature for prettyPrintFile as in PrettyPrinterAbstract (#4408)
* Use same signature as in PrettyPrinterAbstract

* Pass array of $nodes to `printNodesToFilePath`

* Use array for $nodes in `printToFile`

* Removed stale logic, fixed phpstan
2020-10-15 09:35:50 +00:00
Tomas Votruba
151a83a733
[DeadCode] Remove php-doc from remove params (#4411)
* [DeadCode] Remove unused param doc too

* [DeadCode] Remove php-doc from remove parmas

* [rector] [DeadCode] Remove php-doc from remove parmas

* [cs] [DeadCode] Remove php-doc from remove parmas

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-14 23:20:02 +00:00
TomasVotruba
8380222a50 composer: add split shortcut 2020-10-14 22:32:01 +02:00
Tomas Votruba
e085f52f86
[DeadCode] Improve parent and current type comparison on RemoveDelegatingParentCallRector (#4409)
* decouple CurrentAndParentClassMethodComparator

* fix param reflections

* [rector] fix param reflections

* [cs] fix param reflections

* composer: bump assert

* [rector] composer: bump assert

* [cs] composer: bump assert

* static fixes

Co-authored-by: rector-bot <tomas@getrector.org>
0.8.24
2020-10-14 17:14:55 +00:00
TomasVotruba
15600516af composer: bump symplify to 8.3.35 with stan fix 2020-10-14 18:37:41 +02:00
Abdul Malik Ikhsan
eb1f9c5e32
reactivate coverage report (#4405) 2020-10-14 18:07:59 +02:00
Tomas Votruba
8af70b5ac0
[Defluent] Refactoring to multiple rules (#4400)
* [Defluent] Refactoring to multiple rules

* [Defluent] Decouple defluent-only set, it deserved to have own domain

* cleanup

* [rector] cleanup

* [cs] cleanup

* fixup! cleanup

* static fixes

Co-authored-by: rector-bot <tomas@getrector.org>
0.8.23
2020-10-14 04:24:29 +00:00
Igor
d017e5417e
[SOLID] Change if && to early return (process nested ifs) (#4395)
* [SOLID] Change if && to early return (process nested ifs)

* Skip if with void return

* Skip if parent if has void return

* [rector] Skip if parent if has void return

* [cs] Skip if parent if has void return

Co-authored-by: rector-bot <tomas@getrector.org>
0.8.22
2020-10-13 20:30:14 +02:00
TomasVotruba
59e1413b82 fix cs 2020-10-12 22:10:41 +02:00
TomasVotruba
81ac932ca5 remove duplicated services 0.8.21 2020-10-12 21:46:19 +02:00
TomasVotruba
202631d198 add missing services 2020-10-12 21:44:10 +02:00
Tomas Votruba
cb991af9c6
hotfix mysql connection resolving (#4399) 0.8.20 2020-10-12 21:06:24 +02:00
Tomas Votruba
a31837679d
[PHP 7.4] Add null on conditional type of property type (#4394)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-12 16:34:28 +02:00
TomasVotruba
50f75c9325 travis: simplify script 2020-10-11 16:33:33 +02:00
TomasVotruba
cbbd9e131d travis: set PHP Version to split 2020-10-11 16:33:11 +02:00
Tomas Votruba
01514ab9a8
[SimplePhpDocParser] Add README + getParam*() helper methods (#4393) 0.8.19 2020-10-11 16:17:43 +02:00
Tomas Votruba
a4b4b474cb
[SimplePhpDocParser] Init (#4391) 2020-10-11 12:40:45 +02:00
Igor
874baec836
[SOLID] Change if && to early return (more than two conditions) (#4390)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-11 11:43:51 +02:00
TomasVotruba
40db4ee347 static fixes 2020-10-11 00:55:28 +02:00
TomasVotruba
4e25eda078 [SymfonyPHPConfig] Add README 0.8.18 2020-10-11 00:09:54 +02:00
TomasVotruba
2635f174c9 bump symplify 8.3.33 2020-10-10 23:53:39 +02:00
TomasVotruba
c05e43defa add colors 2020-10-10 23:23:24 +02:00
TomasVotruba
d5c0991d77 travis: enable split 2020-10-10 19:57:21 +02:00
Tomas Votruba
4a76cdaa82
[SymfonyPHPConfig] Add monorepo split for value objects function (#4153)
* add monorepo split for symfony-php-config

* [SOLID] Prevent replacing referenced parametes with inlined constnat value

* make Symfon 5.0- compatible

* add support for reference skip in constructor

* [rector] add support for reference skip in constructor

* [cs] add support for reference skip in constructor

* improve misisng rule feedback

* underscore

* Fix ChangeReadOnlyVariableWithDefaultValueToConstantRector for new

* add clear-cache to all commands

* colors

* [rector] colors

* [cs] colors

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-10 17:42:43 +00:00
Igor
35537dba84
[SOLID] Change if && to early return (#4344)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-10 18:27:13 +02:00
Viktor Szépe
0cbf0e5cbf
Fix syntax error in ExceptionCorrector message (#4389) 2020-10-10 17:37:42 +02:00
Leonardo Losoviz
0b54ff3d97
[Downgrade PHP 7.4] Array spread - don't use ternary for arrays, or PHPStan complains (#4380) 2020-10-10 09:18:57 +02:00
Tomas Votruba
ebd3760a86
[docs] add README link to web service (#4383) 2020-10-09 22:37:36 +02:00
TomasVotruba
40d9894bab kodiak: add automerge 2020-10-09 22:06:45 +02:00
TomasVotruba
7a7b3badb7 cs 2020-10-09 22:05:23 +02:00
Tomas Votruba
3808d1b941
[Nette 3.0] Set update (#4381) 2020-10-09 22:01:37 +02:00
Tomas Votruba
65fe80a682
[Generic] Add skip for ArgumentAdderRector (#4382) 2020-10-09 22:00:45 +02:00
Tomas Votruba
e47a806300
Remove AbstractFileSystemRector and move to AbstractRector (#4378) 2020-10-09 21:51:09 +02:00
Leonardo Losoviz
e4a9d2bdcf
[Downgrade PHP 7.4] Added downgrade array spread rule to set (#4379) 0.8.17 2020-10-09 12:49:16 +02:00
Tomas Votruba
7d56318046
[Legacy] From file system Rector to classic Rector (#4373)
Co-authored-by: rector-bot <tomas@getrector.org>
0.8.16
2020-10-09 10:11:22 +02:00
Leonardo Losoviz
c7910a8fa7
Downgrade php74 array spread (#4375) 2020-10-09 09:54:28 +02:00
Abdul Malik Ikhsan
bb486fa070
Fixes config/set link in readme (#4374) 2020-10-09 09:52:33 +02:00
Tomas Votruba
5cb49a2d5a
[PSR-4] Move from FileSystemRector to FileWithoutNamespace node (#4372) 2020-10-08 23:28:24 +02:00