894 Commits

Author SHA1 Message Date
Tomas Votruba
8ae3868a57
[Restoration] Add RestoreFullyQualifiedNameRector (#4336)
* [Restoration] Add RestoreFullyQualifiedNameRector

* update docs

* use service aware test case for PHPStan rules

* improve FullyQualifiedNameMatcher

* cs fixes

* add return doc resolution

* composer: bump to symfony 4.4/5.1
2020-10-01 19:45:29 +00:00
Tomas Votruba
5414a15492
composer: move tracy from require to require-dev (#4331) 2020-09-29 16:50:18 +00:00
JT Smith
219069f29f
Support latest php-parser (#4304) 2020-09-28 01:52:42 +02:00
TomasVotruba
d006788372 drop slam extensions, will be part of symplify 2020-09-25 20:19:53 +02:00
Tomas Votruba
c8386ccc84
bump migrify deps (#4296)
* monorepob-builder: add v prefix

* monorepob-builder: add v prefix

* bump migrify deps
2020-09-25 10:55:11 +00:00
Tomas Votruba
70bf2ea830
[DOCS] Switch DumpRectorCommand from console to string printer (#4281)
* monorepob-builder: add v prefix

* monorepob-builder: add v prefix

* bump symplify

* decouple SymfonyConsole from DumpRectorCommand

* moving to migrify php-config-printer

* regenerate docs

* include rules oerview
2020-09-24 18:54:39 +00:00
Sander Marechal
0ebf4df558
Move ocramius/package-versions to require-dev, fixes #4285 (#4289)
Co-authored-by: Sander Marechal <sander@prezent.nl>
2020-09-24 20:06:24 +02:00
TomasVotruba
8786d212cf compsoer: add relase sripts 2020-09-24 16:31:53 +02:00
TomasVotruba
02fe819743 lock php-parser to prevent uncontrolled issues 2020-09-24 16:31:18 +02:00
Tomas Votruba
d7f90774ee
allow php-parser 4.10 + fixes of args merge change (#4277)
* allow php-parser 4.10 + fixes of args merge change

* use fixed php-parser 4.10.1
2020-09-23 20:22:35 +00:00
Tomas Votruba
7aad4bbf2f
[PHPStan] Enable regex constant rule (#4279) 2020-09-23 11:16:40 +02:00
Igor
19f700ba4e
[Naming] Factory to create PropertyRename (#4255)
* [Naming] Use factory to create PropertyRename

* Ignore new phpstan issues

* Move fixture to FixtureBasic to solve CI issue

* fix setUp vs dataProvider race condition

* fix autoload

Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-21 20:45:43 +00:00
Tomas Votruba
2243583537
[Docs] update docs and type check (#4241) 2020-09-18 11:50:55 +02:00
Tomas Votruba
cb14a3e1da
Remove auto-bind parameter + fix array return type parent (#4252)
* remove auto-bind parameters

* add filter interface
2020-09-17 21:28:16 +00:00
Tomas Votruba
9bcfb9a3f9
static fixes (#4250)
* composer: update deps

* ignore statics
2020-09-17 19:42:45 +00:00
Tomas Votruba
1950ab5abd
phpstan fixes (#4224) 2020-09-15 11:16:43 +02:00
Markus Staab
59547a5cbe
Github Actions: add a job which tests the lowest supported versions (#4220)
* Github Actions: add a job which tests the lowest supported versions

* Update tests.yaml

* run lowest only on php 7.2

to reduce the number of generated jobs

* faise min webmozart/assert version

we need at least https://github.com/webmozart/assert/pull/160

* use quotes
2020-09-14 21:01:01 +02:00
Leonardo Losoviz
abb9a3ef90
Downgrade PHP7.1 features: nullable types and void return type (#4192) 2020-09-12 11:50:13 +02:00
Tomas Votruba
33b9ac6fb8
[ci] Add PHP Linter (#4188) 2020-09-10 22:05:34 +00:00
TomasVotruba
db9d18227e composer.json: add markdown file to check-cs 2020-09-09 23:58:12 +02:00
TomasVotruba
8b981eb912 colors 2020-09-09 23:57:46 +02:00
Abdul Malik Ikhsan
c17dae56dd
register check-markdown command to composer script (#4149)
* register check-markdown command to composer script

* remove .github/workflows/check_markdown.yml

* add --fix to vendor/bin/ecs check-markdown README.md

* update symplify/autowire-array-parameter to ^8.2.27 and symplify/easy-coding-standard to ^8.2.27
2020-09-09 18:05:38 +02:00
Leonardo Losoviz
4eacc84b22
Organize downgrades by PHP version (#4147)
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-08 13:12:38 +02:00
Abdul Malik Ikhsan
46e2b450b3
add check markdown github action workflow for fix README.md markdown file (#4134) 2020-09-08 11:41:32 +02:00
Tomas Votruba
a32b4fed64
add jean85-pretty-version (#4141) 2020-09-08 01:12:41 +00:00
Tomas Votruba
c1b2824ab4
show command - display loaded sets + fix set provider (#4111) 2020-09-02 17:26:33 +02:00
Adamo Crespi
8311a55573
Fix #4109: Require webmozart/assert. (#4110) 2020-09-02 16:03:50 +02:00
TomasVotruba
549bf1a648 allow PHP 8.0 2020-09-01 21:13:54 +02:00
Tomas Votruba
082f1c6294
[Transform] Move StaticCallToMethodCallRector to Transform (#4084)
* drop MessageAsArrayRector, as only rule in guzzle

* [Transform] Move StaticCallToMethodCallRector to Transform
2020-08-31 00:26:25 +00:00
Tomas Votruba
df6e083324
drop MessageAsArrayRector, as only rule in guzzle (#4083) 2020-08-31 00:16:12 +00:00
Tomas Votruba
3d03ec4beb
Removing single-rule elastic package set, merge Decomplex set to CodingStyle, merge FrameworkMigration to NetteToSymfony (#4079)
* drop elasticsearch-dsl50, used for single change, unmaintained

* [CodingStyleAdvanced] Move UseMessageVariableForSprintfInSymfonyStyleRector from single-rule set Decomplex to CodingStyleAdvanced

* merge FrameworkMigration with 1 class to NetteToSymfony

* [Transform] Move ServiceGetterToConstructorInjectionRector to Transform set

* [Transform] Move ReplaceParentCallByPropertyCallRector to Transform package

* [Transform] Move StaticCallToFunctionRector to Transform

* update docs

* [Transform] Move NewToStaticCallRector to Transform
2020-08-30 18:48:37 +00:00
Tomas Votruba
4584359f96
[Transform] Move FuncCallToMethodCallRector to Transform category (#4077) 2020-08-30 19:59:59 +02:00
Tomas Votruba
989c3f4168
[Transform] Move HelperFunctionToConstructorInjectionRector to Transform package (#4074)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-30 18:55:16 +02:00
Tomas Votruba
e698e83687
[Transform] Decouple new set that changes nodes (#4073)
* [Transform] Move PropertyToMethodRector from Generic to Transform category

* move AbstractIsAbleRector to Generic

* [Transform] Move MethodCallToPropertyFetchRector from Generic to Transform

* [Transform] Move MethodCallToStaticCallRector from Generic to Transform

* [Transform] Move MethodCallToAnotherMethodCallWithArgumentsRector from Generic to Transform
2020-08-30 15:47:36 +02:00
dobryy
d40309963c
[Type Declaration] Create new unit test for ArrayTypeMapper with fixes (#4054)
* Create new unit test for ArrayTypeMapper with fixes

* Fix typo in method name that breaks all tests

* Remove skip too many fixtures to implement the fix for these fixtures as a next PR.
2020-08-29 10:41:19 +02:00
Tomas Votruba
4553ae9579
[DX] Add TypeMethodWrap, RemovedArgument (#4026)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-25 21:05:58 +02:00
Tomas Votruba
c1653070f5
[phpstan] Add rule for complex config (#4015)
* [phpstan] Add ForbiddenComplexArrayConfigInSetRule

* add MethodCallRename value object

* [SymfonyPhpConfig] Add array to value object configuration rule

* apply first MethodCallRename value object
2020-08-24 22:26:14 +00:00
Tomas Votruba
de4748f935
README + recipe improvements (#4017)
* rector-recipe and README improvements

* ci: add generate command test
2020-08-24 21:25:26 +00:00
Tomas Votruba
4ef653976f
Fix invalid set reporting (#4006)
* do not use internal rectors

* report invalid set

* remove dashes before number in set name

* [rector] remove dashes before number in set name

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-22 19:27:41 +00:00
Tomas Votruba
752a35253b
Remove YAML from tests (#3989)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-19 18:00:27 +02:00
Tomas Votruba
1f61fe34f0
import repo entity (#3988)
* various fixes

* add import for generic types

* bump to newer phpstan with php-parser 4.9
2020-08-19 13:20:16 +00:00
Tomas Votruba
101b9bfcb2
composer: lock to php-parser 4.8 to prevent bugs (#3987) 2020-08-19 13:36:29 +02:00
Tomas Votruba
3b87f6c5c8
update ecs.php to use constants over strings (#3982) 2020-08-18 16:42:54 +00:00
dobryy
2e7bdca4e2
[DX] Rename namespaces respect node type (#3973) 2020-08-18 17:57:30 +02:00
TomasVotruba
e55d2b7bf6 add missing easy-testing 2020-08-14 17:36:24 +02:00
Tomas Votruba
4fce95c509
add easy-ci (#3953) 2020-08-12 22:59:25 +02:00
Tomas Votruba
74fc11088d
move Polyfill to rules (#3951) 2020-08-12 18:30:42 +00:00
Tomas Votruba
89537b830f
use symplify rule (#3949) 2020-08-12 13:07:43 +00:00
Tomas Votruba
f71b242924
[Defluent] Allow DateTime to be fluent (#3947)
* ignore prefixed conflcits

* note

* skip date-time from defluencing

* drop parameter name guard, not needed anymore

* make use of addNodesAfterNode()
2020-08-12 12:32:45 +00:00
Tomas Votruba
106fb1101a
service entity repository combo (#3945)
* service entity repo combo

* apply cs, add tests, fixes

* update doc parser

* [Generic] Add RemoveAnnotationRector

* add nullsafe nodes to docs

* drop AddEmptyLineBetweenCallsInPhpConfigRector, not that useful

* namespace and phpstan fix

* [ci] merge PHPStan compat to one job, no gain split attention

* [rector] [ci] merge PHPStan compat to one job, no gain split attention

* [cs] [ci] merge PHPStan compat to one job, no gain split attention

Co-authored-by: Marek Šimeček <marek.simecek@footshop.cz>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-12 09:44:34 +00:00