44 Commits

Author SHA1 Message Date
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
7ac228c638
[CI] Add type-declaration set (#4089)
* [CI] Add type-declaration set

* [rector] [CI] Add type-declaration set

* [cs] [CI] Add type-declaration set

* skip nullable void

* add anonymous parent/interface support

* refactor MultiExceptionCatchRector to use Catch_ over integers

* type fixes

* fix unoin array type override

* remove unused test cases

* drop overcomplicated InlineValidationRulesToArrayDefinitionRector

* skip assign on var

* [rector] skip assign on var

* [cs] skip assign on var

* [rector] [cs] skip assign on var

* skip assign on var

* fixes

* [rector] fixes

* [cs] fixes

Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-01 17:56:30 +00:00
Tomas Votruba
33d992497a
[Doctrine] Add constructor getRepository to service (#3954) 2020-08-13 01:04:23 +02: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
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
Tomas Votruba
7212366606
[Naming] Decouple RenameParamToMatchTypeRector (#3906)
* [Naming] Decouple RenameParamToMatchTypeRector

* remove overrlaping useless test fixtures

* [rector] remove overrlaping useless test fixtures

* [cs] remove overrlaping useless test fixtures

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-04 18:30:31 +00:00
Tomas Votruba
e7429d96a4
make use of constant (#3875) 2020-08-02 13:17:33 +00:00
Tomas Votruba
800abda3d2
[MagicDisclosure] Improve naming (#3862)
* add FluentChain keywords together, to make easier to find the classes

* decopule AbstractFluentChainMethodCallRector
2020-08-01 15:34:08 +00:00
Tomas Votruba
4624778cb0
[MagicDisclosure] Fluent refactoring (#3861)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-01 16:57:37 +02:00
dobryy
3aa2fc8727
[Order] Order properties and constants with respect of complexity and position (#3826)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-07-31 22:20:45 +02:00
TomasVotruba
99db894192 restore types 2020-07-27 10:44:51 +02:00
TomasVotruba
0650075005 [Nette] Add ChangeControlArrayAccessToAnnotatedControlVariableRector 2020-07-26 15:54:46 +02:00
dobryy
f37cd4cac3 [Order] Apply rule 2020-07-26 15:11:41 +02:00
TomasVotruba
9ddd60a246 [rector] apply on packages 2020-07-19 20:54:42 +02:00
TomasVotruba
0944b75f7e correct namespace in configs 2020-07-18 11:58:17 +02:00
TomasVotruba
b045b316e8 [config] switch packages config from YAML to PHP 2020-07-16 12:40:57 +02:00
TomasVotruba
b0250a558c cover return new case 2020-06-30 20:21:24 +02:00
TomasVotruba
0cb82c2a6f apply new Naming_ 2020-06-30 00:57:38 +02:00
TomasVotruba
fa0d8d238c [NetteCodeQuality] Add MoveInjectToExistingConstructorRector 2020-06-24 22:19:10 +02:00
TomasVotruba
c88f34fafc prefer local __construct 2020-06-24 21:26:40 +02:00
TomasVotruba
138598cc36 add inject in case of parent __construct 2020-06-24 19:15:45 +02:00
rector-bot
df92b3a090 fixup! fixup! respect @inject on ContextGetByTypeToConstructorInjectionRector 2020-06-24 13:33:06 +00:00
rector-bot
6173ef0ed7 fixup! respect @inject on ContextGetByTypeToConstructorInjectionRector 2020-06-24 13:32:12 +00:00
TomasVotruba
1d929cba16 respect @inject on ContextGetByTypeToConstructorInjectionRector 2020-06-24 15:28:41 +02:00
TomasVotruba
e5e9abbcac fix importing of soon-to-be-existing classes 2020-06-19 12:11:45 +02:00
TomasVotruba
75b8d37e4b extend test case 2020-06-19 12:06:46 +02:00
TomasVotruba
72e9bbb92f add interface implement rename 2020-06-19 00:07:58 +02:00
TomasVotruba
de0dbc6876 add BreakingREmovalGuard, CommentableNodeResolver, and @fixme to un-removable nodes in ini_get/ini_set 2020-06-18 12:07:26 +02:00
TomasVotruba
3744649dd9 [PHP 7.2] Add ReplaceEachAssignmentWithKeyCurrentRector 2020-06-17 14:23:12 +02:00
TomasVotruba
0f0fc8e8b8 remove replaceNode() method 2020-06-13 12:52:53 +02:00
TomasVotruba
212cbd209e [PHP 7.4] Add conflicting short import typed property fix 2020-06-06 18:20:00 +02:00
TomasVotruba
56e2449918 [PHP 8.0] Add TokenGetAllToObjectRector 2020-06-02 18:12:19 +02:00
TomasVotruba
789badcb9a prevent removing just added nodes 2020-05-22 11:02:44 +02:00
TomasVotruba
e81044fd3b decouple ClassRenamer 2020-05-11 18:08:13 +02:00
TomasVotruba
491a417842 various @todo resolved 2020-05-06 17:37:27 +02:00
TomasVotruba
2bb5bb3418 make rule to check for see test case 2020-05-05 22:06:18 +02:00
TomasVotruba
1bf62ac1c7 [cs] sort private methods by call order and property by complexity 2020-04-26 02:57:47 +02:00
TomasVotruba
8082b3a2f2 [PHP 8.0] Add str_starts_with 2020-04-23 23:06:36 +02:00
TomasVotruba
b3fde24ab1 [PHPUnit] Add AddProphecyTraitRector 2020-04-01 02:37:21 +02:00
TomasVotruba
5600cf8d4d move node adding to PostRector 2020-04-01 01:41:56 +02:00
TomasVotruba
18feee456e move node-replacing to PostRector 2020-03-31 20:31:19 +02:00
TomasVotruba
af3c92b3d5 move property adding to PostRector 2020-03-31 20:25:29 +02:00
TomasVotruba
38fbcb28e5 move name-importing to PostRector 2020-03-31 20:13:18 +02:00
TomasVotruba
629042eeb4 move NodeRemovingRector to collector 2020-03-31 19:34:56 +02:00