Commit Graph

140 Commits

Author SHA1 Message Date
Tomas Votruba 81454a9154 Updated Rector to commit 93f0232d7f
93f0232d7f Bump deps (#804)
2021-08-31 19:26:04 +00:00
Tomas Votruba 9c8dad9aed Updated Rector to commit 25d3555abd
25d3555abd [EarlyReturn] Clean up ChangeOrIfReturnToEarlyReturnRector skip check (#800)
2021-08-31 15:21:01 +00:00
Tomas Votruba 52dd92cc24 Updated Rector to commit 2e18cab758
2e18cab758 [EarlyReturn] Skip left or right is BooleanAnd on ChangeOrIfReturnToEarlyReturnRector (#799)
2021-08-31 15:10:56 +00:00
Tomas Votruba d807beef93 Updated Rector to commit c42b1969ce
c42b1969ce [EarlyReturn] Handle Next Node is null on ChangeOrIfReturnToEarlyReturnRector (#798)
2021-08-31 13:22:32 +00:00
Tomas Votruba d5b84771d3 Updated Rector to commit 4d60c23f7c
4d60c23f7c [EarlyReturn] Skip same return expr on ChangeOrIfReturnToEarlyReturnRector (#797)
2021-08-31 13:04:35 +00:00
Tomas Votruba 13cd556d23 Updated Rector to commit 654d4a2a2b
654d4a2a2b [EarlyReturn] Skip ChangeOrIfReturnToEarlyReturnRector on next node is null or return void (#796)
2021-08-31 12:32:29 +00:00
Tomas Votruba ba205b46bb Updated Rector to commit 68d410ef00
68d410ef00 Trigger notification (#741)
2021-08-23 00:20:32 +00:00
Tomas Votruba 674f76ced2 Updated Rector to commit 877cbb2de8
877cbb2de8 fix(scoper): prefix vendor classes from PHPDoc, close #6614 (#739)
2021-08-22 23:17:31 +00:00
Tomas Votruba aeb2451688 Updated Rector to commit c115811102
c115811102 [DeadCode] Skip Union Array without type on RemoveDeadInstanceOfRector (#672)
2021-08-13 20:43:09 +00:00
Tomas Votruba fd9090a133 Updated Rector to commit cc89395fee
cc89395fee [EarlyReturn] Handle Repetitive If_ on use ReturnBinaryOrToEarlyReturnRector (#670)
2021-08-13 20:42:45 +00:00
Tomas Votruba 40d9772df6 Updated Rector to commit de5c4c77a5
de5c4c77a5 [EarlyReturn] Allow usage ChangeOrIfReturnToEarlyReturnRector and RemoveAlwaysElseRector without elseif (#655)
2021-08-12 16:01:53 +00:00
Tomas Votruba 359cdb2450 Updated Rector to commit 8e48e49823
8e48e49823 [EarlyReturn] Skip complex if cond and with ChangeAndIfToEarlyReturnRector and RemoveAlwaysElseRector (#654)
2021-08-12 13:13:24 +00:00
Tomas Votruba 93cc8dacbc Updated Rector to commit 906bb39c8d
906bb39c8d [EarlyReturn] Handle Repetitive create If_ statement on use ChangeOrIfReturnToEarlyReturnRector+RemoveAlwaysElseRector (#651)
2021-08-12 09:54:28 +00:00
Tomas Votruba 19c1eefae1 Updated Rector to commit e35724edae
e35724edae [EarlyReturn] Move comment in If_ stmt for ChangeAndIfToEarlyReturnRector (#648)
2021-08-11 16:14:49 +00:00
Tomas Votruba eb3537a9a5 Updated Rector to commit 9f7a8d8c21
9f7a8d8c21 [EarlyReturn] Handle both ChangeAndIfToEarlyReturnRector and ChangeOrIfReturnToEarlyReturnRector (#617)
2021-08-08 17:11:36 +00:00
Tomas Votruba 816016aac7 Updated Rector to commit 294bea2d18
294bea2d18 [FileProcessor] Run untill the file is fixed completelly (#432)
2021-07-15 03:40:51 +00:00
Tomas Votruba 96112cb1f0 Updated Rector to commit 2da49992cc
2da49992cc [Downgrade] [PHP 7.2] Make DowngradeParameterTypeWideningRector always downgrade to phpdoc type (#390)
2021-07-05 22:50:18 +00:00
Tomas Votruba 121ea7f23d Updated Rector to commit 48784457eb
48784457eb Fix doctrine inflector bug downgrade (#388)
2021-07-05 15:06:41 +00:00
Tomas Votruba a79e6f56df Updated Rector to commit ff1ad31d6a
ff1ad31d6a [PHP 7.2] Refactor DowngradeParameterTypeWideningRector to class method (#380)
2021-07-05 07:47:59 +00:00
Tomas Votruba bb3e86de23 Updated Rector to commit 904a5a7a1c
904a5a7a1c Make use of ClassMethodReturnVendorLockResolver (#377)
2021-07-04 21:21:47 +00:00
Tomas Votruba 636eeecaf4 Updated Rector to commit dfd048342b
dfd048342b [PHP 8.0] Run union types for filled param type too (#331)
2021-06-29 14:24:45 +00:00
Tomas Votruba aabefcfa4c Updated Rector to commit d7013d080b
d7013d080b [EarlyReturn] Handle If inside closure for ChangeAndIfToEarlyReturnRector (#289)
2021-06-25 12:32:16 +00:00
Tomas Votruba c908c481f1 Updated Rector to commit 24187781db
24187781db [EarlyReturn] Handle mirror comments before elseif on RemoveAlwaysElseRector (#234)
2021-06-16 17:49:09 +00:00
Tomas Votruba 6fa9c12855 Updated Rector to commit 4f26e3643d
4f26e3643d [Scoped] Early downgrade src/functions (#185)
2021-06-09 02:43:00 +00:00
Tomas Votruba f04617a297 Updated Rector to commit d88e3a3efb
d88e3a3efb Fix copy-paste errors in rule docs (#143)
2021-06-02 22:56:35 +00:00
Tomas Votruba 7313b64374 Updated Rector to commit b90952fdeb
b90952fdeb Let Rector upgrade itself to PHP 8 🤖😇 (#123)
2021-05-29 22:10:59 +00:00
Tomas Votruba cdc3b7adef Updated Rector to commit f451b0b8e1
f451b0b8e1 [PHP 8.0] Bump to promoted properties (#4)
2021-05-10 23:39:21 +00:00
Tomas Votruba 7d36c3b0b9 Updated Rector to commit a80cf5292d
a80cf5292d revert to working scoper 0.14
2021-05-10 22:23:08 +00:00
Tomas Votruba 363a910cf7 Updated Rector to commit a7db1ad94d
a7db1ad94d use scoper 0.15
2021-05-10 22:10:16 +00:00
Tomas Votruba d56e7982d0 Updated Rector to commit dedd4b55fe
dedd4b55fe make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00
TomasVotruba 0800c7cdc3 fix cs 2021-05-06 20:51:25 +02:00
Tomas Votruba 38248d08f4
Return array of nodes directly from refactor() if possible (#6366)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-06 10:23:37 +02:00
Abdul Malik Ikhsan ba20c5ed74
[EarlyReturn] Skip ChangeAndIfToEarlyReturnRector on has assign in loop with indirect return after loop (#6365)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-06 02:26:20 +02:00
Tomas Votruba 809d617708
Refactor OptionalParametersAfterRequiredRector to remove dependency from NodeRepository (#6098) 2021-04-11 10:27:20 +00:00
Tomas Votruba 79621dbb99
Flip @see to @changelog links (#6092) 2021-04-10 18:47:17 +00:00
Tomas Votruba 31566dc869
Traverse phpdoc with use of PhpDocNodeVisitor (#6045)
* make use of new simple-php-doc-parser

* add ParamPhpDocNodeVisitor

* remove uneeded contracts

* skip bool instanceof

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-06 19:33:09 +02:00
Tomas Votruba b2412ad62a
Refactor doctrine/annotation from dynamic to own static-reflection parser (#5974)
* remove doctrine/annotations

* Refactor doctrine/annotation parser to static reflection with phpdoc-parser

* remove doctirne-annotation-parser-syncer

* remove annotation stubs

* use nodes

* almost there

* [ci-review] Rector Rectify

* skip temporary

* phpstan: remove fixed messages

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-04 11:01:11 +02:00
Tomas Votruba a781b3bd12
Remove dynamic type checks (#5939) 2021-03-21 19:41:17 +01:00
TomasVotruba 3746f24cf4 remove FUNCTION_NODE attribute 2021-03-18 00:00:16 +01: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