Commit Graph

246 Commits

Author SHA1 Message Date
Tomas Votruba
47087101c1 Updated Rector to commit 80e6c3b959
80e6c3b959 FileRelocationResolverTest: fix RegexpException on windows (#116)
2021-05-27 20:54:56 +00:00
Tomas Votruba
47d722993a Updated Rector to commit ae96c1a308
ae96c1a308 Skip FormatPerservingPrinterTest on windows (#109)
2021-05-26 10:17:03 +00:00
Tomas Votruba
9b5515a16d Updated Rector to commit 4f4c416041
4f4c416041 [CodeQuality] Skip UnusedForeachValueToArrayKeysRector when value used in compact (#100)
2021-05-25 11:50:23 +00:00
Tomas Votruba
89eee6ea29 Updated Rector to commit 5b74ac7ae6
5b74ac7ae6 [PhpDocInfoPrinter] fix running tests on windows (#98)
2021-05-24 16:18:32 +00:00
Tomas Votruba
8ef1dfb7af Updated Rector to commit ed8191fb64
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 617c04a9be
617c04a9be [TypeDeclaration] Separated inferred and no types (#90)
2021-05-22 20:37:33 +00:00
Tomas Votruba
3689a516db Updated Rector to commit db00e23b5e
db00e23b5e [PHP 8.0] Downgrade  (#85)
2021-05-21 16:44:29 +00:00
Tomas Votruba
91a82e9ca5 Updated Rector to commit b5c00cbf1c
b5c00cbf1c [BUGFIX] Respect indent_size for tabs (#81)
2021-05-20 14:35:36 +00:00
Tomas Votruba
1fc5dba0b1 Updated Rector to commit 7a712ba445
e2bd8de348 resolve version on release 7a712ba445 date time
2021-05-19 00:12:47 +00:00
Tomas Votruba
ecb71886c6 Updated Rector to commit 478f5c87c7
478f5c87c7 Improve DowngradeStreamIsattyRector when stream_isatty is available (#61)
2021-05-18 22:27:49 +00:00
Tomas Votruba
270eaef34d Rector 0.11.5 2021-05-18 13:45:09 +00:00
Tomas Votruba
9987c84c58 Rector 0.11.3 2021-05-17 07:55:27 +00:00
Tomas Votruba
10b65060a2 Updated Rector to commit cefe13feab
cefe13feab fix rector rules overview dump location (#49)
2021-05-16 08:19:51 +00:00
Tomas Votruba
80c6cbecea Updated Rector to commit fa8e59708b
fa8e59708b Use local version resolver (#36)
2021-05-15 01:39:19 +00:00
Tomas Votruba
146dc7d680 Updated Rector to commit f2c0023dad
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 9305fdf4f4
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 0684911cdf
0684911cdf [PHP 8.0] Promoted property fixes (#8)
2021-05-11 10:40:34 +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
345a89a7e2 Updated Rector to commit a657258f31
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 dedd4b55fe
dedd4b55fe make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00
Tomas Votruba
5fe3eb555f
[PHP 5.3] Add DirConstToFileConstRector (#6363) 2021-05-05 21:56:59 +00:00
TomasVotruba
1022edb763 fix parent class 2021-04-24 09:44:03 +02:00
Tomas Votruba
9e869098ff
[Downgrade PHP 7.2] Fix 2+ param position (#6227) 2021-04-24 07:13:59 +00:00
Tomas Votruba
aa2c142038
[Downgrade PHP 7.2] Cover nullable param in DowngradeParameterTypeWideningRector (#6225) 2021-04-24 00:53:17 +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
ab6580de35
[Downgrade PHP 7.2] Make covariant change local methods only (#6218) 2021-04-23 17:54:30 +00:00
Tomas Votruba
e425c11d8d
[Downgrade PHP 7.2] Improve covariant (#6207) 2021-04-23 09:03:45 +00:00
Tomas Votruba
94df140c4d
[Downgrade] Report changed widening in another class (#6193)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 11:29:04 +00:00
Tomas Votruba
507bd85c3e
[Downgrade] Report only changed return types (#6191) 2021-04-22 10:04:58 +00:00
Tomas Votruba
ff57c49662
[PHP 7.2] Add covariant param support for trait methods (#6190)
* [Downgrade PHP 7.2] Handle trait methods too

* move DowngradeParameterTypeWideningRector to Class_ namespace

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 00:02:38 +02:00
Tomas Votruba
79621dbb99
Flip @see to @changelog links (#6092) 2021-04-10 18:47:17 +00:00
Abdul Malik Ikhsan
ab67f084c5
[DowngradePhp72] Skip DowngradePregUnmatchedAsNullConstantRector on different flags in BitwiseOr (#6075)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-10 12:56:55 +02:00
Abdul Malik Ikhsan
6fe05c462c
[DowngradePhp72] Add DowngradePregUnmatchedAsNullConstantRector (#6021)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-04 13:40:55 +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
Leonardo Losoviz
d2e4c0a5b2
Add failing test fixture for DowngradeParameterTypeWideningRector (#5995)
* Add failing test fixture for DowngradeParameterTypeWideningRector

# Failing Test for DowngradeParameterTypeWideningRector

Based on https://getrector.org/demo/1b8ee6a0-7d50-4fae-8e15-f19d19591fc5

* Fixed automatic test (created buggy)

* Skip traits

* Renamed test
2021-04-02 19:20:16 +02:00
Tomas Votruba
1bdc6e588a
widening - skip if no method is present (#5898) 2021-03-18 14:48:00 +01:00
Tomas Votruba
1abe1f8c1b
Improve static reflection speed (#5895) 2021-03-18 11:29:23 +01:00
Tomas Votruba
a389839c5c
[CI] Downgrade Rector to PHP 7.1 + prefix it (#5880)
* [downgrade] simplify to 2 configs

* rename downgrade_packages.sh to downgrade_rector_to_php71.sh

* add test case stub

* [CI] add linter for php code

* [CI] update tagged workflow

* update for covariance

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-18 02:48:44 +01:00
Tomas Votruba
6ad6bdc2d7
Fix type widening command (#5883)
* skip parent type for construtc

* skip magic method
2021-03-17 23:56:45 +01:00
Tomas Votruba
0e383192ae
misc fixes (#5886) 2021-03-17 23:36:05 +01:00
Tomas Votruba
ea19540a73
[Downgrade 7.2] Fix downgrade from parent native type (#5872)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-17 11:12:39 +01:00
Tomas Votruba
d897902ccf
[Downgrade] Keep better phpdoc type (#5862) 2021-03-15 18:58:04 +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