11951 Commits

Author SHA1 Message Date
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
TomasVotruba
d43e40aa6e rebase 2021-04-29 23:13:41 +02:00
TomasVotruba
e2677ad155 add preload.php to docker too 2021-04-29 23:13:33 +02:00
Tomas Votruba
ffab753891
Update php_parser_3.yaml 2021-04-29 22:14:37 +02:00
TomasVotruba
b938d4dccd [prefixed] run with php parser 3 too 2021-04-29 22:03:43 +02:00
TomasVotruba
73d25d57d8 fix preload.php position 2021-04-29 21:45:51 +02:00
TomasVotruba
ebe192cacc reliable path 2021-04-29 20:14:40 +02:00
TomasVotruba
731eb8bf86 fixing paths 2021-04-29 20:06:54 +02:00
TomasVotruba
38a7222fe4 narrow 2021-04-29 20:02:15 +02:00
TomasVotruba
ce81312d9d blind preload 2021-04-29 20:00:09 +02:00
TomasVotruba
761c343db2 closer variable 2021-04-29 19:59:33 +02:00
TomasVotruba
f15648eb05 add preload in build 2021-04-29 19:55:03 +02:00
TomasVotruba
00fcdc1f03 fix old Versions path 0.10.15 2021-04-29 17:37:16 +02:00
TomasVotruba
835ec0b618 skip local installed versions 2021-04-29 16:53:16 +02:00
TomasVotruba
61d9704afd slash escape 2021-04-29 16:52:43 +02:00
TomasVotruba
176258ce5c [scoper] get versoin for prefixed version 2021-04-29 16:52:12 +02:00
TomasVotruba
26d6fff51d preload local installed versions 2021-04-29 16:50:11 +02:00
Tomas Votruba
52c4888374
[Downgrade 7.2] Fix DowngradeStreamIsattyRector with return (#6266) 2021-04-29 13:58:00 +00:00
TomasVotruba
12564db7af fixing version in scoped 2021-04-29 12:36:11 +02:00
TomasVotruba
07a0d4edbe try prefixd 0.10.14 2021-04-29 11:00:02 +02:00
TomasVotruba
3901ae3d1f use older pretty-package version to fix prefixed version 0.10.13 2021-04-29 10:17:30 +02:00
TomasVotruba
928ef7d9d5 [prefixed] show version 2021-04-29 10:10:09 +02:00
TomasVotruba
940b7d1526 use self-version in composer 2021-04-29 10:01:35 +02:00
Tomas Votruba
60da89954e
[TypeDeclaratoin] Skip type if changed (#6261) 0.10.12 2021-04-28 21:12:26 +00:00
Tomas Votruba
ca4d1fb1aa
[TypeDeclaration] Traverse the param node that is changed in ParamTypeFromStrictTypedPropertyRector (#6260) 2021-04-28 20:33:20 +00:00
Maxim Tugaev
cfa8295e95
AnnotationToAttributeRector: array handling (#6259) 2021-04-28 15:04:23 +02:00
Abdul Malik Ikhsan
3153a088a3
[Privatization] Handle Reference Method/Static Call from outside file on ChangeReadOnlyPropertyWithDefaultValueToConstantRector (#6256)
* Add failing test fixture for ChangeReadOnlyPropertyWithDefaultValueToConstantRector

* Closes #6214

* phpstan

* CS fix

* phpstan

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* fix ReturnThisRemoveRector on check "vendor" dir

* phpstan

* phpstan

* [ci-review] Rector Rectify

* phpstan

* [ci-review] Rector Rectify

* php 7.3

* phpstan

* use isBuiltIn() check

* [ci-review] Rector Rectify

* move Functionality to FunctionLikeReflectionParser

* return false on ClassMethod not found

* phpstan

* [ci-review] Rector Rectify

Co-authored-by: zingimmick <zingimmick@outlook.com>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-28 13:03:41 +00:00
Tomas Votruba
e83b7f2538
[PHPStan] Resolve dependency juggling (#6258) 2021-04-28 09:33:25 +00: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
Tomas Votruba
cf9d8c202d
Failing test: Node type is not updated after executing rector (#6255)
Co-authored-by: Michal Lulco <lulco@efabrica.sk>
2021-04-28 00:11:40 +00:00
Maxim Tugaev
a5a99317b7
AnnotationToAttributeRector: ensure bool param in attribute (#6254) 2021-04-27 11:41:29 +00:00
Abdul Malik Ikhsan
94cf4314e6
Fix DowngradeSpaceshipRector sample code (#6252) 2021-04-26 21:52:21 +00:00
Abdul Malik Ikhsan
2eb5af1aad
[DowngradePhp70] Add DowngradeSpaceshipRector (#6243)
* [DowngradePhp70] Add DowngradeSpaceshipRector

* register to downgrade-php70 config set

* CS fix

* phpstan

* [ci-review] Rector Rectify

* property fetch

* more fixtures

* implemented, skip namespaced variable

* implemented, skip namespaced variable

* better approach

* use variable named left, right

* move to new variable battleShipCompare

* [ci-review] Rector Rectify

* final touch

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-26 13:52:50 +02:00
Tomas Votruba
baa26986f2
Remove AnnotatedPropertyInjectToConstructorInjectionRector by splitting to Nette and Symfony packages (#6250) 2021-04-26 10:39:42 +00:00