11984 Commits

Author SHA1 Message Date
TomasVotruba
3696a7ac9a lock php-parser to patch to avoid future errors 2021-05-04 14:45:52 +02:00
TomasVotruba
37e21653d4 fix composer root path 2021-05-04 14:26:41 +02:00
Tomas Votruba
ac7a03f800
[php-parser] upgrade to 4.10.5 - add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode (#6325)
* add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode

* include preload in dev repository too

* include preload function
2021-05-04 14:21:34 +02:00
Abdul Malik Ikhsan
a2bb65c272
[Preload] Fixes root path when rector installed as dependency (#6324)
* [Preload] Fixes root path when rector installed as dependency

* move to tests bootstrap

* check in prefixed only
2021-05-04 13:49:15 +02:00
Tomas Votruba
21bf53f2ec
[CodeQuality] Add FuncGetArgsToVariadicParamRector (#6318) 0.10.18 2021-05-03 21:27:20 +00:00
Tomas Votruba
2e6d188522
[CodingStyle] Add variadic method call unpack to CallUserFuncCallToVariadicRector (#6316) 2021-05-03 21:03:16 +02:00
Tomas Votruba
d689800fe7
fix variable type (#6314) 2021-05-03 20:03:01 +02:00
Abdul Malik Ikhsan
c43b216d64
[Scoped] Register config directory to be downgraded (#6313) 2021-05-03 17:01:36 +00:00
Abdul Malik Ikhsan
84bf36e984
[Scoper] Patch : void in vendor via scoper-php70 config (#6312) 2021-05-03 23:29:06 +07: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
e3183655f2
[Scoper] Remove composer/composer after not used in scoped (#6310)
* [Scoper] Remove composer/composer after not used in scoped

* [Scoped] remove vendor/composer/composer after not used in build scoped 7.0

* move up before dump-autoload
2021-05-03 14:52:04 +00:00
Abdul Malik Ikhsan
76eee027ed
[Scoper] Patch ParameterSkipper class via scoper-php70 config (#6309)
* [Scoper] Patch ParameterSkipper class via scoper-php70 config

* undo require composer/composer directly
2021-05-03 14:22:27 +00:00
Abdul Malik Ikhsan
94f9929dc8
[Scoped] More exclude and add vendor/symplify/autowire-array-parameter to downgradepath (#6308) 2021-05-03 13:47:40 +00:00
Abdul Malik Ikhsan
c436713cb1
[Scoped] Back to one line for --exclude in parallel-lint (#6307) 2021-05-03 13:27:27 +00:00
Abdul Malik Ikhsan
5f45c15688
[Scoped] Add rector-prefixed-downgraded-php70/ prefix on parallel lint exclude (#6306) 2021-05-03 13:11:17 +00:00
Abdul Malik Ikhsan
d17e334567
[Scoped] Fixing multiline parallel lint exclude (#6305) 2021-05-03 12:55:17 +00:00
Abdul Malik Ikhsan
d9b787661b
[Scoped] More exclude parallel lint php 7.0 (#6304)
* [Scoped] More exclude parallel lint php 7.0

* [Scoped] More exclude parallel lint php 7.0
2021-05-03 12:38:30 +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
Abdul Malik Ikhsan
37d818dae4
[Scoped] copy rector-prefixed-downgraded-php70/vendor/symfony/string to root vendor/symfony/string (#6302) 2021-05-03 09:53:59 +00:00
Abdul Malik Ikhsan
1a10e87fe4
[Scoped] Enable DowngradeNullableTypeDeclarationRector on config-downgrade-php70 config (#6301) 2021-05-03 09:38:19 +00:00
Abdul Malik Ikhsan
700894bfe2
[Scoped] Copy rector-prefixed php 7.0 rector vendor to root vendor/rector (#6300) 2021-05-03 08:48:44 +00:00
Abdul Malik Ikhsan
6af751468e
[Scoper] Scoper PHP 7.0 require composer/composer (#6299)
* [Scoper] Scoper PHP 7.0 require composer/composer

* only in command in scoper
2021-05-03 08:26:35 +00:00
Abdul Malik Ikhsan
b7056a30e5
[Scoped] Sync scoper{-php70}.php config (#6297) 2021-05-03 07:17:56 +00:00
Abdul Malik Ikhsan
233531cdda
[Scoped] Sync PHP 7.0 scoped (#6296) 2021-05-03 07:02:41 +00:00
TomasVotruba
ef5167c528 [scoped] unprefixed SmartFileInfo 0.10.17 2021-05-03 00:55:38 +02:00
TomasVotruba
8d73a43c8c fix PHP 7.1 version in prefixed description 2021-05-03 00:27:35 +02:00
Abdul Malik Ikhsan
e1c87b5900
[Scoper] Using different scoper.php for php 7.0 (#6295)
* [Scoper] Using different scoper.php for php 7.0

* revert

* revert

* eol
2021-05-02 18:19:33 +00:00
Abdul Malik Ikhsan
10705059a3
Revert "[Scoper] Skip Prefix\Composer\ usage (#6293)" (#6294)
This reverts commit e237ffb66926a5e9e3c87c7d4bc5a3e12b114cee.
2021-05-02 17:45:09 +00:00
Abdul Malik Ikhsan
e237ffb669
[Scoper] Skip Prefix\Composer\ usage (#6293)
* [Scoper] Skip Prefix\Composer\ usage

* cover Composer\InstalledVersions
2021-05-02 17:29:38 +00:00
Abdul Malik Ikhsan
dadb1d8915
[Scoper] Skip Composer\EventDispatcher (#6292) 2021-05-02 17:10:23 +00:00
Abdul Malik Ikhsan
e7dba6f48a
[Scoper] Skip vendor/composer/composer for prefixing (#6291)
* [Scoper] Skip vendor/composer/composer for prefixing

* on Composer\Plugin
2021-05-02 16:41:19 +00:00
Abdul Malik Ikhsan
f9170bec35
[Scoped] Fixing void return scoped php 7.0 (2) (#6290)
* [Scoped] Fixing void return scoped php 7.0

* undo change composer.json
2021-05-02 16:16:48 +00:00
Tomas Votruba
cd8be43951
Update text for FileProccessor to use Rector interface contract (#6289) 2021-05-02 15:59:16 +00:00
Abdul Malik Ikhsan
6f30affca4
[Scoped] Fixing scoped PHP 7.0 (#6287) 2021-05-02 13:41:13 +00:00
Abdul Malik Ikhsan
bd94fe4459
[Scoped] Scoped PHP 7.0 (#6235)
* [Scoped] [WIP] Scoped PHP 7.0

* create new downgrade-rector-php70.sh

* use downgrade-rector-php70.sh in the workflow

* remove phpstan deps

* add php70 suffix on rector-build for php 70

* remove phpstan/phpstan and phpstan/phpstan-src

* add repositories composer config for phpstan-src

* remove first with clear-cache

* config

* remove no-api

* remove repositories config in root composer.json

* update register repositories in build scoped rector

* remove composer remove phpstan/phpstan
2021-05-02 20:15:23 +07:00
Tomas Votruba
498f538b05
Refactor ActiveRectorsProvider to autowired array (#6286)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-02 14:33:41 +02:00
Tomas Votruba
c83ac3683e
Decouple specific rules from NonPhpFileProcessor to NonPhpRectorInterface contract (#6285) 2021-05-02 11:50:34 +00:00
Tomas Votruba
2037d55d6b
[PHP 8.1] Add ReturnNeverTypeRector (#6283) 2021-05-02 10:46:55 +00:00
Abdul Malik Ikhsan
bbba5304ad
[DowngradePhp70] Add DowngradeSessionStartArrayOptionsRector (#6282) 2021-05-02 10:29:26 +02:00
github-actions[bot]
ea0061264a
[automated] Re-Generate Nodes/Rectors Documentation (#6281)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-05-02 10:26:23 +02:00
Tomas Votruba
1e4dfbe738
Nested stdclass (#6280) 2021-05-01 15:58:05 +00:00
Tomas Votruba
37e07762c5
Exclude error string from class names (#6279) 2021-05-01 13:24:15 +00:00
Abdul Malik Ikhsan
139c73c5b5
[TypeDeclaration] Add missing break; in loop in SilentVoidResolver::isSwitchWithAlwaysReturn() (#6278) 2021-05-01 12:33:28 +00:00
Tomas Votruba
0203e0fda1
[TypeDeclaration] Add array type from returned method call types (#6277) 2021-05-01 12:16:35 +00:00
Tomas Votruba
f925b62d9b
Report add array doc nodes (#6274) 2021-05-01 10:59:25 +00: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
dependabot[bot]
be15759280
Bump EndBug/add-and-commit from v7.1.0 to v7.2.0 (#6273)
Bumps [EndBug/add-and-commit](https://github.com/EndBug/add-and-commit) from v7.1.0 to v7.2.0.
- [Release notes](https://github.com/EndBug/add-and-commit/releases)
- [Changelog](https://github.com/EndBug/add-and-commit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/EndBug/add-and-commit/compare/v7.1.0...a3adef035a1381dcf888c90b847240e2ddb9e008)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-01 09:42:29 +02:00
Abdul Malik Ikhsan
5b386ab5fe
[CodeQuality] Register NarrowUnionTypeDocRector to code-quality config set (#6269) 2021-04-30 12:35:34 +02:00
TomasVotruba
898fc72cb7 remove commented dependency 2021-04-30 10:40:44 +02:00
Abdul Malik Ikhsan
e6157560c1
[CodeQuality] Add NarrowUnionTypeDocRector (#6262)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
0.10.16
2021-04-30 10:28:36 +02:00