10708 Commits

Author SHA1 Message Date
Tomas Votruba
86aedf2527
[NetteToSymfony] Add new Route class support (#5065) 2021-01-01 20:46:17 +01:00
github-actions[bot]
34c3c3a67c
[automated] Re-Generate Nodes/Rectors Documentation (#5061)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-01 19:59:23 +01:00
github-actions[bot]
54e0210d68
[automated] Apply Coding Standard (#5062)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-01-01 19:54:49 +01:00
Abdul Malik Ikhsan
1c26598518
[CodingStyle] Register UnSpreadOperatorRector to coding-style config set (#5050) 2020-12-31 14:28:58 +01:00
Abdul Malik Ikhsan
7192385c49
[CI] Remove fork check in daily and weekly CI (#5058) 2020-12-31 14:27:44 +01:00
Grzegorz Korba
7a82928e08
Skip variadic arguments from property promotion (#5046) 2020-12-30 20:31:55 +01:00
Abdul Malik Ikhsan
bf9e31b515
[Test] Separate Weekly CI for code coverage generation (#5044) 2020-12-29 23:48:07 +01:00
Tomas Votruba
6ddb4effd8
[PHPStanStaticTypeMapper] Add closure conversion (#5043) 2020-12-29 21:22:48 +00:00
Abdul Malik Ikhsan
81751880b2
[Test] Move Re-generate code coverage to weekly pull request (#5041) 2020-12-29 19:08:24 +01:00
Tomas Votruba
1850a2dcc2
[Renaming] Add test fixture for same-namespaced short class fail (#5040)
Co-authored-by: Tom Klingenberg <tklingenberg@lastflood.net>
2020-12-29 17:01:51 +00:00
Grzegorz Korba
a43d3e3863
Lower requirement for phpstan/phpdoc-parser (#5039) 0.9.3 2020-12-29 16:09:15 +01:00
Abdul Malik Ikhsan
fba0bac3f8
[Github Action] Move fork check in steps for daily and weekly pull request (#5036) 2020-12-29 15:23:12 +01:00
Tomas Votruba
59b71e04a3
respect PHPStan descission to drop & in param docs (#5035)
* revert phpdoc support for reference in params

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-29 11:12:32 +00:00
Abdul Malik Ikhsan
c594dc540e
[Test] Add utils/ to whitelist test coverage (#5034)
* [Test] Add utils/ to whitelist test coverage

* back to on push trigger
2020-12-29 11:25:45 +01:00
Tomas Votruba
630c3d324e
[PhpVersionResolver] Add project composer.json as source + decouple to composer json fatcory (#5031)
* [PhpVersionResolver] Add project composer.json as source + decouple to composer json fatcory

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-29 00:32:48 +00:00
Michal Lulco
fee81507bb
Do not prefix Symplify\SymfonyPhpConfig (#5030) 2020-12-29 01:17:46 +01:00
Tomas Votruba
c7140076ec
use clone const (#5029) 2020-12-28 23:38:05 +00:00
TomasVotruba
3f07620ef1 unprefix Symplify/RuleDocGeneator 0.9.2 2020-12-28 23:11:17 +01:00
TomasVotruba
f58deedbee drop debug build 2020-12-28 23:09:30 +01:00
Tomas Votruba
52e604c6dd
[scoper] unprefix string classes to match types (#5025) 2020-12-28 23:09:11 +01:00
Abdul Malik Ikhsan
acdc7ee6ee
[PHPUnit] Enable Coverage again (#5007)
* [PHPUnit] Enable Coverage again

* coverals

* try using pcov

* use code_coverage.yaml

* on pull request

* try with --testsuite main

* try create multiple suites and use phpcov to merge clover

* try create multiple suites and use phpcov to merge clover

* try create multiple suites and use phpcov to merge clover

* chmod +x ./phpcov.phar

* using --coverage-php for generate .cov

* surplus -

* debug

* tempoary disable collect test on utils

* try exclude packages/attribute-aware-php-doc/src/Ast/PhpDoc/AttributeAwareDeprecatedTagValueNode.php

* try exclude packages/attribute-aware-php-doc/src/Ast/PhpDoc/AttributeAwareDeprecatedTagValueNode.php

* try nimut/phpunit-merger

* using ./ for directory

* exclude directories

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* try run phpunit on explicit directory

* try using xdebug

* reverted even on push
2020-12-28 19:46:48 +00:00
TomasVotruba
7176cd62f8 remove dead half fetch 2020-12-28 19:20:40 +01:00
Tomas Votruba
cdf3c97b60
[RectorGenerator] Test interactive generator (#5023)
* apply cs

* [RectorGenerator] Add compare dir test for interactive mode

* add PackageNamesProviderTest

* add NodeTypesProviderTest

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-28 18:20:12 +00:00
Krystian Marcisz
94a4bb7777
[DX] Add Interactive Mode to Generate command (#4931)
* Add Interactive Mode to Generate command

* CS Fixer

* Unify names

* Unify names

* Fixes

* Fixes

* Fixes

* Check generated tests against the "special hack for PHPUnit"

* Re-use the same input/output in the Generate Command

* Add test for Interactive Mode of Generate Command

* Rename test file

* Use ::class instead of string

* Create Finder instance where it's used

* Create RectorRecipeInteractiveProvider service

* Create RectorRecipeInteractiveProvider service

* Bring back SymfonyStyle as DI service
2020-12-28 18:00:51 +01:00
Tomas Votruba
8ed61a7560
Add support for inheritdoc in parent type use (#5020)
Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
2020-12-28 17:57:21 +01:00
Tomas Votruba
0f221f92a4
Add template annotation resolving support (#5019)
Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
0.9.1
2020-12-28 13:01:27 +00:00
Tomas Votruba
96ad185d37
[TypeDeclaration] Skip array shrapnels (#5016)
* [TypeDeclaration] Skip array shrapnels

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-28 11:49:30 +00:00
Jan Kuchař
305388d45d
Add failing test fixture for AddArrayReturnDocTypeRector - array shape is replaced by structural type (#5013)
# Failing Test for AddArrayReturnDocTypeRector

Based on https://getrector.org/demo/4afc86f8-de78-4f13-bed4-3644f1b16d6d
2020-12-28 12:38:34 +01:00
Leonardo Losoviz
44e817fa0b
Access classes installed on DEV through their strings (#4897)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-28 12:20:51 +01:00
Abdul Malik Ikhsan
bd1bd30762
[CodingStyle] Add UnSpreadOperatorRector (#5015)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-28 12:08:40 +01:00
Tomas Votruba
a7544e85e1
Cleanup exclusion manager test (#5012)
* merge CODING_STYLE_ADVANCED to CODE_QUALITY_STIRCT

* rename split ExclusionManager test to single one
2020-12-27 23:24:28 +00:00
Tomas Votruba
520335251d
[scoper] keep phpstan.phar to avoid conflict in install (#5009)
* fix scoping of Symfony autodiscovery namespace

* scoped: add along phpstan run

* wait longer, the old version is used

* keep phpstan.phar
0.9.0
2020-12-27 21:14:39 +00:00
Tomas Votruba
34a2a497b3
[scoper] symplify prefix pick (#5011)
* use local composer.json for scoped dir

* remove dead directory

* remove dynamic return type extension, not used

* [ci] add along phpstan install

* [scoper] add psr-4 prefixing
2020-12-27 20:31:30 +00:00
TomasVotruba
4f66248507 push 2020-12-27 14:29:03 +01:00
TomasVotruba
a2b2a0e053 build on push dev 2020-12-27 14:27:42 +01:00
TomasVotruba
978fdcdfd8 try symplify scoping 2020-12-27 14:05:05 +01:00
TomasVotruba
087972f8d0 UPGRADE: add --set moving 2020-12-27 13:20:36 +01:00
TomasVotruba
b5e3933e75 UPGRADE: add set moving 2020-12-27 12:46:50 +01:00
Abdul Malik Ikhsan
d8e13e9144
[AbstractRector] Add rollbackComments (#5005) 2020-12-27 10:54:05 +01:00
Tomas Votruba
8de8cddaf6
[PHP 8.0] Skip accessed variable before property assign (#5008)
Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
2020-12-27 02:07:52 +00:00
TomasVotruba
f49c14618a clean 2020-12-27 02:45:00 +01:00
Tomas Votruba
28a02fbfcd
Add failing test fixture for RemoveCodeAfterReturnRector
# Failing Test for RemoveCodeAfterReturnRector

Based on https://getrector.org/demo/efb7f3ed-e28a-4f31-b83f-50adfb17d309
2020-12-27 02:39:11 +01:00
Tomas Votruba
8c516e4f5c
[PHP 8.0] Skip promotion property if worked with before assign (#5006)
* test: ClassPropertyAssignToConstructorPromotionRector: should ignore early returns

* correct file location

* [PHP 8.0] Skip usage of variable before assign in promotion property

Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
2020-12-27 01:04:31 +00:00
TomasVotruba
5e358ec38a fix property varlike vs var name 2020-12-27 00:41:30 +01:00
Tomas Votruba
c871fd5994
[scoper] adding Symfony version test, name prefix by date for easier diffs (#4997) 2020-12-26 22:04:46 +01:00
Tomas Votruba
b37cfab141
[ci] enable ramsey (#5001) 2020-12-26 15:10:44 +00:00
Tomas Votruba
ec92bcc95e
[phpstan] enable file lenght rule (#4999)
* enable file lenght rule

* longer file, just to show ci worked

* [ci] add ValidateFileLengthCommand

* [phpstan] drop PathsAreNotTooLongRule

* [Downgrade] Shorten property promotion rector rule

* [Symfony] Shorten AutoWireWithClassNameSuffixForMethodWithRequiredAnnotationRector name

* shorten fixture name

* rename ChangeControlArrayAccessToAnnotatedControlVariableRector to AnnotateMagicalControlArrayAccessRector

* rename ReplaceMagicEventPropertySubscriberWithEventClassSubscriberRector to ReplaceMagicPropertyWithEventClassRector

* rename GetConfigWithDefaultsArgumentToArrayMergeInCompilerExtensionRector to MergeDefaultsInGetConfigCompilerExtensionRector

* rename ChangeCollectionTypeOptionTypeFromStringToClassReferenceRector to ChangeStringCollectionOptionToConstantRector

* decouple ProjectFilesFinder
2020-12-26 14:53:21 +00:00
Tomas Votruba
32272a97a1
[PHPStan] Added PathsAreNotTooLongRule phpstan rule (#4998)
* Added PathsAreNotTooLongRule phpstan rule

* static fixes

Co-authored-by: Markus Staab <m.staab@complex-it.de>
2020-12-26 13:35:23 +00:00
TomasVotruba
6ed1b26ee7 prefix by date 2020-12-26 12:21:15 +01:00
TomasVotruba
3e5615a973 scoping cleanup 2020-12-26 12:18:44 +01:00