143 Commits

Author SHA1 Message Date
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
fc8edcaa21 Updated Rector to commit f0fb0c5179f81a422c1b333a0c20faa5a9f6b641
f0fb0c5179 [Php80] Skip callable type on ClassPropertyAssignToConstructorPromotionRector (#60)
2021-05-17 18:55:10 +00:00
Tomas Votruba
a6e6ebd58d Rector 0.11.4 2021-05-17 18:51:10 +00:00
Tomas Votruba
86c2f4a9b7 Updated Rector to commit f0fb0c5179f81a422c1b333a0c20faa5a9f6b641
f0fb0c5179 [Php80] Skip callable type on ClassPropertyAssignToConstructorPromotionRector (#60)
2021-05-17 17:23:45 +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
0800c7cdc3 fix cs 2021-05-06 20:51:25 +02:00
Tomas Votruba
692d9b3d19
[PHP 8.0] Give param type priority in property promotion (#6367) 2021-05-06 10:59:29 +00:00
Abdul Malik Ikhsan
e6157560c1
[CodeQuality] Add NarrowUnionTypeDocRector (#6262)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-30 10:28:36 +02:00
Abdul Malik Ikhsan
41d2e52ffd
[Php80] Skip ChangeSwitchToMatchRector on no assign when not return (#6257)
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-04-28 09:13:39 +02:00
Abdul Malik Ikhsan
70de3a01cc
[Php80] Handle UnionTypesRector on object and specific class/type in union type (#6237)
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-26 11:08:56 +02:00
Tomas Votruba
414a656ab9
Fix AUTOLOAD_PATHS and BOOTSTRAP_FILES in tests (#6239) 2021-04-25 09:23:15 +00:00
Abdul Malik Ikhsan
0ac5412aa0
[Php80] Add default case when variable initialized on ChangeSwitchToMatchRector (#6230)
* Add failing test fixture for ChangeSwitchToMatchRector

# Failing Test for ChangeSwitchToMatchRector

Based on https://getrector.org/demo/f7f2ba48-3c19-4fdb-bc0a-e956e037eefd

It's important to add the default case to prevent this error when passing another code:
```
Fatal error: Uncaught UnhandledMatchError: Unhandled match value of type int
```

https://3v4l.org/E64Um

* Closes #6216

* phpstan

* phpstan

Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-04-25 09:07:36 +02:00
Abdul Malik Ikhsan
774ac29000
[Php80] Skip RemoveUnusedVariableInCatchRector when variable used next catch (#6231)
* Add failing test fixture for RemoveUnusedVariableInCatchRector

# Failing Test for RemoveUnusedVariableInCatchRector

Based on https://getrector.org/demo/194e0c75-cb30-4f02-a0de-70d32fbe152c

* Closes #6213

Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-04-25 09:06:07 +02:00
Tomas Votruba
9e869098ff
[Downgrade PHP 7.2] Fix 2+ param position (#6227) 2021-04-24 07:13:59 +00:00
Tomas Votruba
fa45c4f9d1
[Downgrade PHP 7.2] Make DowngradeParameterTypeWideningRector work for interface (#6224) 2021-04-24 01:14:40 +02:00
Tomas Votruba
1e24618a9e
File reports (#6130) 2021-04-14 02:15:10 +00: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
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
ae1c6b90f7
Remove dynamic type checks #2 (#5941) 2021-03-21 21:31:18 +00:00
Tomas Votruba
a781b3bd12
Remove dynamic type checks (#5939) 2021-03-21 19:41:17 +01:00
Tomas Votruba
89a7afb5a4
Merge DeadDocBlock to DeadCode (#5936) 2021-03-21 12:57:56 +00:00
TomasVotruba
94fd5af4f8 make use of external symfony doc nodes 2021-03-21 01:38:09 +01:00
Tomas Votruba
68026636bf
[PHP 8.0] Refactor attributes from magic interface to explicit list (#5926) 2021-03-20 23:16:21 +00:00
Tomas Votruba
b28b8742fc
use rector-nette with tags (#5924)
* use rector-nette with tags

* redirect Kdyby sets

* use local ParamAnalyzer
2021-03-20 22:16:54 +01:00
Tomas Votruba
c01d9699b5
Remove type-hiding name methods (#5912)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-19 23:11:36 +00:00
Tomas Votruba
025e6ed571
[PhpDocParser] Make use of native attributes (#5841)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-19 14:33:58 +00:00
TomasVotruba
8685a44ed0 BetterNodeFinder improvements 2021-03-18 12:27:34 +01:00
TomasVotruba
3746f24cf4 remove FUNCTION_NODE attribute 2021-03-18 00:00:16 +01:00
Abdul Malik Ikhsan
fb8b9c1e75
[Php80] Handle Identical false in StrContainsRector (#5848)
* [Php80] Fixes #5847 Handle Identical false in StrContainsRector

* clean up

* more fixtures

* phpstan

* final touch
2021-03-14 17:14:49 +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