99 Commits

Author SHA1 Message Date
Tomas Votruba
89eee6ea29 Updated Rector to commit 5b74ac7ae62b7fc1a7c094eb052b5f3a822f9852
5b74ac7ae6 [PhpDocInfoPrinter] fix running tests on windows (#98)
2021-05-24 16:18:32 +00:00
Tomas Votruba
8ef1dfb7af Updated Rector to commit ed8191fb64939954cb7352265ca5a09b809fca44
ed8191fb64 [Docs] Fixes rector_rules_overview.md docs link in each rules (#92)
2021-05-23 09:33:26 +00:00
Tomas Votruba
90a746a8cf Updated Rector to commit 617c04a9be1cef77fb23805109a9023fbc09b59d
617c04a9be [TypeDeclaration] Separated inferred and no types (#90)
2021-05-22 20:37:33 +00:00
Tomas Votruba
3689a516db Updated Rector to commit db00e23b5e487443b74e612069af9e9a178e45f1
db00e23b5e [PHP 8.0] Downgrade  (#85)
2021-05-21 16:44:29 +00:00
Tomas Votruba
91a82e9ca5 Updated Rector to commit b5c00cbf1ca13a2cdfa040d78a97b098c6b5b3cf
b5c00cbf1c [BUGFIX] Respect indent_size for tabs (#81)
2021-05-20 14:35:36 +00:00
Tomas Votruba
1fc5dba0b1 Updated Rector to commit 7a712ba445b2cb2ae13d07b89ff354ef52b2df1f
e2bd8de348 resolve version on release 7a712ba445 date time
2021-05-19 00:12:47 +00:00
Tomas Votruba
270eaef34d Rector 0.11.5 2021-05-18 13:45:09 +00:00
Tomas Votruba
568d9ef7f5 Updated Rector to commit 92358f779952cca81bfd73fe3228e00135d6919b
92358f7799 [DeadCode] Fix remove dead stmt Rector (#65)
2021-05-17 23:45:44 +00:00
Tomas Votruba
9987c84c58 Rector 0.11.3 2021-05-17 07:55:27 +00:00
Tomas Votruba
10b65060a2 Updated Rector to commit cefe13feab65ddabdce51fc21d7d1effd5896287
cefe13feab fix rector rules overview dump location (#49)
2021-05-16 08:19:51 +00:00
Tomas Votruba
80c6cbecea Updated Rector to commit fa8e59708b7c6c2916f5afeefef80ba90346152f
fa8e59708b Use local version resolver (#36)
2021-05-15 01:39:19 +00:00
Tomas Votruba
146dc7d680 Updated Rector to commit f2c0023dad9a6a955c0af1553148adedc7bdb011
f2c0023dad [PHP 8.1] Add MyClabs enum to native ENUM (#30)
2021-05-14 09:53:43 +00:00
Tomas Votruba
693ce44ea9 Updated Rector to commit 9305fdf4f4708e2687a55d44d3aa663a1fd8cb5c
9305fdf4f4 typo
2021-05-13 00:24:58 +00:00
Tomas Votruba
758a350d87 Updated Rector to commit 6af13d7b76234edf43dbb0b4c533912cec19f971 2021-05-12 13:15:45 +00:00
Tomas Votruba
436fcb7505 Updated Rector to commit 0684911cdf88b424d6e2a9ba0689f0e35e94ebd6
0684911cdf [PHP 8.0] Promoted property fixes (#8)
2021-05-11 10:40:34 +00:00
Tomas Votruba
cdc3b7adef Updated Rector to commit f451b0b8e1e6761ec7f50809745d44d01caba66d
f451b0b8e1 [PHP 8.0] Bump to promoted properties (#4)
2021-05-10 23:39:21 +00:00
Tomas Votruba
7d36c3b0b9 Updated Rector to commit a80cf5292d6df5e83b7d17c78630506e361bede9
a80cf5292d revert to working scoper 0.14
2021-05-10 22:23:08 +00:00
Tomas Votruba
363a910cf7 Updated Rector to commit a7db1ad94df4879885b9106773d2f8335cb40e49
a7db1ad94d use scoper 0.15
2021-05-10 22:10:16 +00:00
Tomas Votruba
345a89a7e2 Updated Rector to commit a657258f317da1f6fd42069bf3b09198d3cfd635
a657258f31 cleanup CHANGELOG, is part of GitHub releases now (#2)
2021-05-10 00:23:30 +00:00
Tomas Votruba
d56e7982d0 Updated Rector to commit dedd4b55fe3e03cae9bd5ac822cfdccd8deb3fb6
dedd4b55fe make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00
TomasVotruba
0481b2c9b9 add changelog link 2021-05-08 23:36:55 +02:00
TomasVotruba
5fa7ec524a naming 2021-05-08 21:52:37 +02:00
TomasVotruba
270016ce23 skip type without PHP declaration 2021-05-08 21:20:03 +02:00
TomasVotruba
05f53cefda fix path to vendor 2021-05-08 20:06:00 +02:00
Tomas Votruba
9efcda0536
[Downgrade Php 7.0] Add other scalar type recast (#6393) 2021-05-08 19:41:03 +02:00
TomasVotruba
e7ea2f625d fix way too early return 2021-05-08 15:59:17 +02:00
Tomas Votruba
5784f734f8
[DowngradePhp70] Add DowngradeGeneratedScalarTypesRector (#6392) 2021-05-08 15:14:35 +02:00
Tomas Votruba
d7a5324e6b
skip empty methods, e.g. interface or abstract method (#6391) 2021-05-08 11:40:51 +00:00
Tomas Votruba
7a33e856fd
[Downgrade PHP 7.0] Add string retype on object (#6390) 2021-05-08 10:55:30 +00:00
Tomas Votruba
dc0bcdbcd8
downgrade types opt-in (#6388) 2021-05-08 02:07:18 +02:00
TomasVotruba
af559edbe9 add changelog link 2021-05-08 01:36:24 +02:00
TomasVotruba
94bd7c822b rename DowngradeTypeDeclarationRector to DowngradeScalarTypeDeclarationRector 2021-05-08 01:34:29 +02:00
Tomas Votruba
b5b312bdc0
[Downgrade PHP 7.0] Fix coalesce with expr (#6387) 2021-05-07 22:40:29 +00:00
Tomas Votruba
189df35831
[Downgrade 7.0] Number classes, simplify (#6386) 2021-05-07 21:58:06 +00:00
Tomas Votruba
3cdbd48a79
[DowngradePhp70] Add class out of trait (#6385) 2021-05-07 22:45:51 +02:00
Tomas Votruba
550d147808
[DowngradePhp70] Add anonymous class out of trait (#6384) 2021-05-07 20:43:36 +00:00
Tomas Votruba
327f5fc126
[DowngradePhp70] Add SplitGroupedUseImportsRector + allow to return list of stmt[] in refactor() (#6364)
* rename SeparateMultiUseImportsRector to SeparateMultiUseImportsRector

* [PHP 7.0] Add SplitGroupedUseImportsRector

* allow to return multiple nodes to avoid addStmts() and removeNode() combo

* dot not FQN namespace and use improts
2021-05-06 01:44:08 +02:00
Abdul Malik Ikhsan
bbba5304ad
[DowngradePhp70] Add DowngradeSessionStartArrayOptionsRector (#6282) 2021-05-02 10:29:26 +02:00
Abdul Malik Ikhsan
9e91a8d401
[DowngradePhp70] Add DowngradeDefineArrayConstantRector (#6270)
* [DowngradePhp70] [WIP] Add DowngradeDefineArrayConstantRector

* add fixture

* create const

* it works

* skip inside method or inside function

* register DowngradeDefineArrayConstantRector to downgrade-php70 config set

* skip not in expression

* phpstan

* final touch

* ensure expression expr is a define func call

* final touch

* [ci-review] Rector Rectify

* working prototype

* update to Expression

* config

* phpstan

* final touch

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2021-05-01 09:43:20 +02:00
Abdul Malik Ikhsan
94cf4314e6
Fix DowngradeSpaceshipRector sample code (#6252) 2021-04-26 21:52:21 +00:00
Abdul Malik Ikhsan
2eb5af1aad
[DowngradePhp70] Add DowngradeSpaceshipRector (#6243)
* [DowngradePhp70] Add DowngradeSpaceshipRector

* register to downgrade-php70 config set

* CS fix

* phpstan

* [ci-review] Rector Rectify

* property fetch

* more fixtures

* implemented, skip namespaced variable

* implemented, skip namespaced variable

* better approach

* use variable named left, right

* move to new variable battleShipCompare

* [ci-review] Rector Rectify

* final touch

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-26 13:52:50 +02:00
Tomas Votruba
f9dc93cb1a
Fix WrapEncapsedVariableInCurlyBracesRector reporting (#6220)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-23 19:32:59 +00:00
Abdul Malik Ikhsan
91377902b2
[DowngradePhp70] Add DowngradeNullCoalesceRector (#6208) 2021-04-23 09:21:57 +02:00
Tomas Votruba
507bd85c3e
[Downgrade] Report only changed return types (#6191) 2021-04-22 10:04:58 +00:00
Abdul Malik Ikhsan
bd2c7aee9f
[DowngradePhp70] Add DowngradeAnonymousClassRector (#6122)
* [DowngradePhp70] [WIP] Add DowngradeAnonymousClassRector

* typo

* add test

* check is anonymous

* adding new Anonymous class before class

* anonymous class must have New_ parent

* getting args

* without param

* with args fixture

* adding with args

* debug

* with args

* getting args from next attribute

* try move to New_

* skip not anonymous

* try using New_

* [ci-review] Rector Rectify

* it works with New_ node

* with addNodeBeforeNode()

* class exists fixture

* adding increment class if exists

* implemented increment class name for inside class

* handle no namespace

* in function

* in function no namespace

* works

* register to downgrade php70 set

* [ci-review] Rector Rectify

* typo fix

* phpstan

* [ci-review] Rector Rectify

* add handle in closure

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-14 19:55:20 +02:00
Abdul Malik Ikhsan
4d4fb3611f
[DowngradePhp70] Add DowngradeStrictTypeDeclarationRector (#6107)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-12 17:28:54 +02:00
Tomas Votruba
d897902ccf
[Downgrade] Keep better phpdoc type (#5862) 2021-03-15 18:58:04 +01:00
Tomas Votruba
721f619a1d
Post moving cleanup (#5827) 2021-03-12 23:52:38 +00:00
Tomas Votruba
157c39aefc
[DX] move src/tests rules from micro-packages to single PSR-4 structure (#5826) 2021-03-12 23:20:25 +01:00