Tomas Votruba
61da1015b0
[RemovingStatic] Do not cause this in static method ( #4204 )
2020-09-12 00:13:48 +00:00
Tomas Votruba
89e042feb9
[RemovingStatic] Add support for union types ( #4203 )
2020-09-12 00:25:23 +02:00
Tomas Votruba
59c5a5e5ba
[NodeRepository] Merge function like finder to NodeRepository ( #4186 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-11 00:09:05 +02:00
Tomas Votruba
f5f7ba76af
[NoreRepository] merge ClassLikeParsedNodesFinder to NodeRepository ( #4185 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-10 14:56:54 +02:00
Tomas Votruba
7cab529bf8
Introduce NodeRepository, single place to get all nodes ( #4183 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-10 12:24:43 +02:00
Tomas Votruba
44f383038f
[RemovingStatic] Add LocallyCalledStaticMethodToNonStaticRector ( #4181 )
...
* update docs
* [RemovingStatic] Add LocallyCalledStaticMethodToNonStaticRector
* [rector] [RemovingStatic] Add LocallyCalledStaticMethodToNonStaticRector
* [cs] [RemovingStatic] Add LocallyCalledStaticMethodToNonStaticRector
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-10 07:27:03 +00:00
Tomas Votruba
1a2e9cbb33
static fixes ( #4140 )
2020-09-07 17:40:46 +02: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
41a9b63c6f
fix ci ( #4057 )
2020-08-29 11:03:40 +02:00
Tomas Votruba
41b679cb2a
[DX] Replacing arrays with objects ( #4008 )
...
* [phpstan] Add forbidden array destruct to prevent array mess
* use ArrayCallable value object
* add OpeningAndClosingSpace
* drop ConstructorInjectionToActionInjectionRector, antipattern
* use value objects
* [rector] use value objects
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-23 09:39:09 +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
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
dobryy
f37cd4cac3
[Order] Apply rule
2020-07-26 15:11:41 +02:00
TomasVotruba
44040eba97
[Nette] Add external form factory support
2020-07-24 17:16:37 +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
0cb82c2a6f
apply new Naming_
2020-06-30 00:57:38 +02:00
TomasVotruba
7272c0f3d7
refactor to EventAndListenerTree
2020-05-30 14:53:06 +02:00
TomasVotruba
ed67ef34ba
fix parsed value constants in array
2020-05-22 09:24:26 +02:00
rector-bot
aa6a408060
fixup! fixup! add ParsedClassConstFetchNodeCollector
2020-05-21 15:05:38 +00:00
rector-bot
730090621f
fixup! add ParsedClassConstFetchNodeCollector
2020-05-21 15:04:49 +00:00
TomasVotruba
a00329a4f1
add ParsedClassConstFetchNodeCollector
2020-05-21 17:01:29 +02:00
TomasVotruba
0c67709fd0
[Legacy] Add FunctionToStaticMethodRector
2020-05-13 15:50:30 +02:00
TomasVotruba
9c65e7ac75
[SOLID] Add RepeatedLiteralToClassConstantRector
2020-05-06 23:36:28 +02:00
TomasVotruba
dd8293682e
improve attribute printing
2020-05-05 23:06:02 +02:00
TomasVotruba
deaa259e52
decopule ArrayCallableClassMethodReferenceAnalyzer
2020-05-05 22:35:50 +02:00
TomasVotruba
405e5e0ea4
improve getName() error
2020-05-01 11:13:54 +02:00
TomasVotruba
1bf62ac1c7
[cs] sort private methods by call order and property by complexity
2020-04-26 02:57:47 +02:00
TomasVotruba
9a9f777513
[DeadCode] Add RemoveDeadRecursiveClassMethodRector
2020-03-31 15:17:42 +02:00
TomasVotruba
cbb50de280
[Privatization] Add PrivatizeLocalPropertyToPrivatePropertyRector
2020-03-29 19:07:26 +02:00
TomasVotruba
626287ec76
apply privatization
2020-03-29 00:06:05 +01:00
TomasVotruba
6a0551f004
[DeadCode] Add RemoveUnusedFunctionRector
2020-03-25 12:50:51 +01:00
TomasVotruba
eeb43d2b01
rector ci: enable solid + fix class const privatization for using parent
2020-02-23 16:03:39 +01:00
TomasVotruba
bc24bb12ff
prevent getName() on StaticCall or MethodCall
2020-02-21 16:41:33 +01:00
TomasVotruba
d1b4779889
apply properties to constants rule from SOLID
2020-02-16 17:47:00 +01:00
TomasVotruba
292c7125b6
decouple NodeCollector package
2020-02-10 10:05:15 +01:00