675 Commits

Author SHA1 Message Date
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
dobryy
a3be7e03ca
[DX] Rename namespaces of Rector rules to respect node, instead of domain (#3911) 2020-08-12 11:08:59 +02:00
Tomas Votruba
6b0249a025
drop slevomat cs to prevent breaking build for last months (#3917) 2020-08-05 22:57:39 +00:00
TomasVotruba
2d8cce7da7 require phpdoc-parser 0.4.9 2020-08-05 23:24:24 +02:00
Tomas Votruba
5e0dfbd77a
re-use param in constructor (#3913) 2020-08-05 13:37:40 +00:00
Tomas Votruba
b2054a32fc
Provide existing expression to get type (#3899)
* add support to provide existing expression instead of addgin a property with type

* [rector] add support to provide existing expression instead of addgin a property with type

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-04 13:12:43 +00:00
Tomas Votruba
97de8eb625
[Generic] FuncCallToMethodCall only in case of parent class (#3894)
* [Generic] Improve FuncCallToMethodCallRector

* [rector] [Generic] Improve FuncCallToMethodCallRector

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-03 23:58:03 +00:00
Tomas Votruba
2bd1eac705
use dev nette deps to resolve form/application types (#3879) 2020-08-03 08:51:44 +00:00
Tomas Votruba
e35131524c
[Nette 3.0] Various rules updates (#3878)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-03 09:26:01 +02:00
TomasVotruba
dc14ddd0b9 [PHP 8.0] Add ChangeSwitchToMatchRector 2020-07-30 18:19:53 +02:00
TomasVotruba
32ee83de05 add ChangeServiceArgumentsToMethodCallRector 2020-07-30 00:24:00 +02:00
TomasVotruba
2741893bbf [RectorGenerator] Refactoring to testable code 2020-07-29 20:50:31 +02:00
TomasVotruba
5859625d5d [Nette] Add TranslateClassMethodToVariadicsRector 2020-07-29 03:21:08 +02:00
TomasVotruba
7c01151ec6 Move Core Rector rules to Generic namespace, to prevent mixup with Core code 2020-07-29 02:05:52 +02:00
zingimmick
b943ba59cf Update doctrine/inflector requirement from ^1.3 to ^1.4|^2.0 2020-07-28 00:19:38 +08:00
TomasVotruba
c28a5a9746 [Celebrity] Merge to code-quality 2020-07-27 10:18:03 +02:00
TomasVotruba
0650075005 [Nette] Add ChangeControlArrayAccessToAnnotatedControlVariableRector 2020-07-26 15:54:46 +02:00
TomasVotruba
db8fd1d6fe lock down to php-parser 4.6 to prevent BC break with PHPStan 2020-07-26 11:30:43 +02:00
TomasVotruba
5106475aae bump to phpstan 0.12.33 2020-07-26 11:30:43 +02:00
TomasVotruba
9c08060925 [Injection] Add StaticCallToAnotherServiceConstructorInjectionRector 2020-07-24 13:47:35 +02:00