156 Commits

Author SHA1 Message Date
Tomas Votruba
89537b830f
use symplify rule (#3949) 2020-08-12 13:07:43 +00:00
Tomas Votruba
c25cd2e178
misc (#3946)
* ignore prefixed conflcits

* note
2020-08-12 10:03:15 +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
Tomas Votruba
1c4b510513
PHPStan: require iterable types (#3936)
* phpstan: require iterable types

* add link on relative path and line

* fix missing class type

* typed array in Rector code + add data provide support resolver

* remove duplicated set

* drop unused yaml ecs config

* add out-of-the-box directory for 3rd party packages

* static fixes

* [rector] static fixes

* [cs] static fixes

* [rector] [cs] static fixes

* generic types

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-11 10:59:04 +00:00
dobryy
411d76f9a9
[Order] Make OrderPrivateMethodsByUseRector process file in one run u… (#3889)
* [Order] Make OrderPrivateMethodsByUseRector process file in one run using while loop

* [Order] Enable rule in CI

* [rector] [Order] Enable rule in CI

* [cs] [Order] Enable rule in CI

* [Order] Use constant for number of max attempts and throw exception when exceeded.

* [rector] [Order] Use constant for number of max attempts and throw exception when exceeded.

* [cs] [Order] Use constant for number of max attempts and throw exception when exceeded.

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-05 22:45:36 +02:00
Tomas Votruba
3ddf965146
FunctionTo* correction renames, add PHPStan rule to check correct category of rule (#3896)
* rename Function* to Func* rector rule

* [Utils] Add RequireRectorCategoryByGetNodeTypesRule

* [PHPUnit] Rename SpecificMethod to MethodCall category to respect subscriberd nodes

* [rector] [PHPUnit] Rename SpecificMethod to MethodCall category to respect subscriberd nodes

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-04 10:02:17 +00:00
Tomas Votruba
e7429d96a4
make use of constant (#3875) 2020-08-02 13:17:33 +00:00
kodiakhq[bot]
82d3304f47
Merge pull request #3569 from rectorphp/php80-switch-to-match
[PHP 8.0] Add ChangeSwitchToMatchRector
2020-07-30 16:42:20 +00:00
TomasVotruba
dc14ddd0b9 [PHP 8.0] Add ChangeSwitchToMatchRector 2020-07-30 18:19:53 +02:00
TomasVotruba
ce480d3983 remove SplitLine value object 2020-07-30 16:40:34 +02:00
TomasVotruba
2ad011673f [PHP 7.0] Fix variable name on static call 2020-07-30 15:53:21 +02:00
TomasVotruba
2741893bbf [RectorGenerator] Refactoring to testable code 2020-07-29 20:50:31 +02:00
TomasVotruba
1a82613c3f rename ValidateFixtureCommand to more explicit ValidateFixtureContent 2020-07-27 10:51:10 +02:00
TomasVotruba
99db894192 restore types 2020-07-27 10:44:51 +02:00
dobryy
f37cd4cac3 [Order] Apply rule 2020-07-26 15:11:41 +02:00
TomasVotruba
8be555843b drop ValidateServicesInSetsCommand, now handled in PHP analysis 2020-07-26 11:47:38 +02:00
TomasVotruba
0188d802d2 use SmartFileSystem over Nette FileSystem 2020-07-24 14:39:10 +02:00
TomasVotruba
3a9375007e decouple Set package 2020-07-21 01:39:24 +02:00
TomasVotruba
2f927842a7 move sets to single /set directory 2020-07-21 00:46:53 +02:00
TomasVotruba
ee9d0439cf make use of Set constants 2020-07-20 01:06:56 +02:00
TomasVotruba
aeb7937972 add set constants + command to generate them 2020-07-20 01:00:49 +02:00
TomasVotruba
6a4792abf4 apply new naming rule 2020-07-19 23:36:10 +02:00
TomasVotruba
9c7cbc65ad [rector] apply on the rest 2020-07-19 21:05:14 +02:00
TomasVotruba
0d3306250f [utils] switch YAML to PHP 2020-07-18 19:56:27 +02:00
TomasVotruba
9a5a8fe081 [Utils] Add RequireStringArgumentInMethodCallRule 2020-07-13 14:53:00 +02:00
rector-bot
642d42326f fixup! remove func call from methods calls 2020-07-06 00:04:12 +00:00
TomasVotruba
3c3c3a9530 remove func call from methods calls 2020-07-06 01:59:41 +02:00
TomasVotruba
dfd4458254 add StrictMixedTypeMapper 2020-07-05 23:37:07 +02:00
TomasVotruba
c16481e2f5 [CI] simlify jobs to matrix 2020-07-05 23:37:07 +02:00
TomasVotruba
78a97fb8bf typos, skip empty class 2020-07-01 22:28:58 +02:00
TomasVotruba
547e15099d use explicit xBuilder classes to prevent typos and PHPStan and PHPStorm confussion 2020-06-30 01:34:19 +02:00
TomasVotruba
0cb82c2a6f apply new Naming_ 2020-06-30 00:57:38 +02:00
TomasVotruba
c504062ec2 add typed property if on PHP 7.4 2020-06-24 15:09:50 +02:00
TomasVotruba
da09614b2e Add @mixin support from PHPStan 2020-05-16 12:54:59 +02:00
TomasVotruba
6e9592e152 update sync-types with new param 2020-05-16 12:54:59 +02:00
TomasVotruba
97040249f1 use Symplify SeeAnnotationToTestRule 2020-05-09 20:44:14 +02:00
TomasVotruba
153da89118 add FindFirstInstanceOfReturnTypeExtension 2020-05-09 20:44:14 +02:00
TomasVotruba
c8111834b3 add builder types 2020-05-07 01:32:26 +02:00
TomasVotruba
1795cd538c run phpstan on utils 2020-05-07 01:10:51 +02:00
TomasVotruba
7b1813f00e fix lock to Rector named class only 2020-05-07 00:55:37 +02:00
TomasVotruba
0ca2340595 [utils] add schema for phpstan rules 2020-05-07 00:53:47 +02:00
TomasVotruba
4dc366bf93 make SeeAnnotationToTestRule more generic 2020-05-07 00:52:43 +02:00
TomasVotruba
b7d1789518 move phsptan rules one directory up 2020-05-07 00:45:05 +02:00
TomasVotruba
b0bd524e53 apply constant decouple 2020-05-06 23:40:31 +02:00
TomasVotruba
491a417842 various @todo resolved 2020-05-06 17:37:27 +02:00
TomasVotruba
ff8d50e93a remove preslash custom type 2020-05-05 22:33:00 +02:00
TomasVotruba
94160332e1 [utils] improve SeeAnnotationToTestRule to check reference to test case class 2020-05-05 22:09:56 +02:00
TomasVotruba
2bb5bb3418 make rule to check for see test case 2020-05-05 22:06:18 +02:00
TomasVotruba
8e0deaa2b4 handle Symplify 7.3 deprecations in CS 2020-05-03 21:10:05 +02:00
TomasVotruba
a952cac41c complete @see annotation, minor improvements 2020-05-03 16:07:56 +02:00