33 Commits

Author SHA1 Message Date
Tomas Votruba
1452c5d9ff Updated Rector to commit b3480900f3da86846dfabdfcd7e12f07b16a3f78
b3480900f3 [CodingStyle] Remove YieldClassMethodToArrayClassMethodRector, rather PHPStorm job (#576)
2021-08-02 17:48:07 +00:00
Tomas Votruba
c512faabc2 Updated Rector to commit 00015a4390ff1ee82930374b286d1053569d9580
00015a4390 [DowngradePhp70] Handle increment variable assign on existing variable on DowngradeSpaceshipRector (#565)
2021-08-01 16:58:54 +00:00
Tomas Votruba
f41cfb1de8 Updated Rector to commit b4392749f4ab12077b8cadc6cc8745ad79dcdea8
b4392749f4 Fix some code samples (#535)
2021-07-28 12:55:48 +00:00
Tomas Votruba
dfa7a8133f Updated Rector to commit 923bb729839db311cdc77f3105164949a9da61a7
923bb72983 [Naming] Remove MakeBoolPropertyRespectIsHasWasMethodNamingRector, not reliable and rather PHPStan scope (#511)
2021-07-25 16:57:05 +00:00
Tomas Votruba
68e641029b Updated Rector to commit 4f2d2d12ddfc2cebe4511c7de381bfb861afdc4a
4f2d2d12dd [DeadCode] Skip RemoveUnusedNonEmptyArrayBeforeForeachRector on array param has default null (#433)
2021-07-14 07:23:54 +00:00
Tomas Votruba
96112cb1f0 Updated Rector to commit 2da49992ccc8e6d4b20e92a5833316d381921391
2da49992cc [Downgrade] [PHP 7.2] Make DowngradeParameterTypeWideningRector always downgrade to phpdoc type (#390)
2021-07-05 22:50:18 +00:00
Tomas Votruba
a79e6f56df Updated Rector to commit ff1ad31d6a1d327542ef2326a84b71554856b9ef
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 904a5a7a1c8dd041524cb51ec3a689ad4cbef436
904a5a7a1c Make use of ClassMethodReturnVendorLockResolver (#377)
2021-07-04 21:21:47 +00:00
Tomas Votruba
636eeecaf4 Updated Rector to commit dfd048342b88db3c2adcf20ec701a9fd9a4e2319
dfd048342b [PHP 8.0] Run union types for filled param type too (#331)
2021-06-29 14:24:45 +00:00
Tomas Votruba
a7f25f1444 Updated Rector to commit 2a394c750f518a33d56a0aa80fa2addf6ff1c140
2a394c750f Reflection cleanup + inline union types for couple of param docs (#330)
2021-06-29 13:37:16 +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
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
d7ae4721a2 add constant visiblity 2021-05-08 23:32:17 +02:00
TomasVotruba
5fa7ec524a naming 2021-05-08 21:52:37 +02:00
Tomas Votruba
dc0bcdbcd8
downgrade types opt-in (#6388) 2021-05-08 02:07:18 +02:00
Abdul Malik Ikhsan
6ddb1451c8
[Scoped] Add more paths to scope (#6382) 2021-05-07 14:02:04 +00:00
TomasVotruba
1775dfc21b misc 2021-05-07 03:18:31 +02:00
TomasVotruba
0800c7cdc3 fix cs 2021-05-06 20:51:25 +02:00
Abdul Malik Ikhsan
c183278243
[DowngradePhp71] Allow downgrade negative offset string on variable/PropertyFetch/StaticPropertyFetch (#6311)
* [DowngradePhp71] Allow downgrade negative offset string on variable

* allow property fetch and static property fetch as well

* method name
2021-05-03 15:39:40 +00:00
Abdul Malik Ikhsan
a3f2346fa8
[DowngradePhp71] Nullable return on closure call on DowngradeNullableTypeDeclarationRector (#6303)
* [DowngradePhp71] Nullable return on closure call on DowngradeNullableTypeDeclarationRector

* fix
2021-05-03 10:20:55 +00:00
Tomas Votruba
793dd3fd2e
[Downgrade PHP 7.1] Fix empty item on SymmetricArrayDestructuringToListRector (#6222)
* [Downgrade PHP 7.1] Fix empty item on SymmetricArrayDestructuringToListRector

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-23 22:28:00 +02:00
Abdul Malik Ikhsan
60195c951a
[DowngradePhp71] Add DowngradeIsIterableRector (#6202)
* [DowngradePhp71] Add DowngradeIsIterableRector

* add test

* return new BooleanOr

* [ci-review] Rector Rectify

* fixed with traverseNodesWithCallable

* skip not is iterable

* fix

* example

* register to downgrade-php71 config set

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 13:22:16 +00:00
Tomas Votruba
ce4711ba93
[Downgrade] Report downgrade changes of type correctly (#6203) 2021-04-22 13:10:04 +00:00
Tomas Votruba
507bd85c3e
[Downgrade] Report only changed return types (#6191) 2021-04-22 10:04:58 +00:00
Tomas Votruba
aee2cb0f07
prefixed - require compatible PHPStan with attribute phpdoc-parser (#6181) 2021-04-20 19:00:46 +00:00
Abdul Malik Ikhsan
cd3725aeb5
[DowngradePhp71] Add DowngradeKeysInListRector (#6170)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-20 14:21:02 +02: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
0e383192ae
misc fixes (#5886) 2021-03-17 23:36:05 +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