10287 Commits

Author SHA1 Message Date
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
Leonardo Losoviz
effa4d34d8
[Downgrade PHP 7.3] List reference assignment (#4371)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-08 16:04:18 +02:00
Jan Mikeš
d8760fa63d
Improved rector in docker autoloading (#4368)
* Changed docker working directory to project and running rector from path

* Fixed path of Docker entrypoint for rector

* Improve Docker docs in readme

* [rector] Improve Docker docs in readme

* [cs] Improve Docker docs in readme

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-07 14:34:20 +00:00
Tomas Votruba
8134a847fe
cs fixes (#4369) 2020-10-07 16:20:53 +02:00
TomasVotruba
44d6bc1195 update yaml params to php params 2020-10-07 15:41:19 +02:00
TomasVotruba
5475b5bc78 [DX] Improve autoload paths parameter name 2020-10-07 15:38:12 +02:00
Anto
c4cedab725
Do not transform callable|null into typed property (#4367) 2020-10-07 11:23:26 +02:00
Tomas Votruba
dcad6b8862
[docs] How to add Rector rule test (#4364)
* [docs] How to add Rector rule test

* improvements

* gramarly

* Update docs/how_to_add_test_for_rector_rule.md

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
2020-10-06 18:23:24 +02:00
Leonardo Losoviz
84c03bcbdc
[Downgrade PHP 7.4] Numeric Literal Separator Rector (#4361) 2020-10-06 11:55:43 +02:00
Leonardo Losoviz
bac865b437
Downgrade PHP7.4 strip_tags array arg (#4357)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-06 08:56:41 +02:00
Tomas Votruba
a8f55f339f
[DX] Update dump nodes to not-use symfony style (#4356)
* [DX] Update dump nodes to not-use symfony style

* [rector] [DX] Update dump nodes to not-use symfony style

* [cs] [DX] Update dump nodes to not-use symfony style

Co-authored-by: rector-bot <tomas@getrector.org>
0.8.15
2020-10-05 09:29:07 +00:00