Igor
52f02d8c91
[Naming] Make bool property respect is/has/was naming ( #4215 )
2020-09-22 20:22:10 +00:00
Tomas Votruba
d9dd72cd6c
[DOC] Add more spaces between node code samples ( #4271 )
2020-09-22 15:46:02 +02:00
Tomas Votruba
a73fc88add
[Docs] update docs with node examples ( #4269 )
2020-09-22 11:27:44 +02:00
Marek Šimeček
cace25434f
[Docs] Update node docs with examples how to create them - part 2 ( #4261 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-21 22:45:35 +02:00
Marek Šimeček
e0cb8c228b
node docs ( #4259 )
2020-09-18 16:06:24 +02:00
Tomas Votruba
2243583537
[Docs] update docs and type check ( #4241 )
2020-09-18 11:50:55 +02:00
Marek Šimeček
3442308bba
Caching ( #4237 )
...
Co-authored-by: Marek Šimeček <marek.simecek@footshop.cz>
2020-09-16 20:11:35 +02:00
Abdul Malik Ikhsan
869441eb98
run dump-rectors for new IssetOnPropertyObjectToPropertyExistsRector rule ( #4226 )
2020-09-15 14:30:36 +02:00
Tomas Votruba
4711abebd1
[RemovingStatic] Add SingleStaticServiceToDynamicRector ( #4212 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-13 12:36:29 +02:00
dobryy
28a55c973e
[DX] Add Rule that checks that Rule + value object have same starts ( #4202 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-12 23:19:08 +02:00
dobryy
a6444fb801
[DX] Configurable rule must have configure code sample, and vice versa ( #4174 )
...
* [DX] Configurable rule must have configure code sample, and vice versa
* Add ConfiguredCodeSample
* heredocs
* code sample
* fix class
* drop AbstractConfigurableMatchTypeRector
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-11 11:21:48 +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
6508aedd13
[Downgrade PHP 8.0] Add union types to doc types ( #4082 )
2020-09-08 12:00:38 +02:00
Abdul Malik Ikhsan
8604515b74
Fixes #3448 : Fixes relative path link on dump-rectors generate class link documentation ( #4115 )
...
* Fixes #3448 : Fixes relative path link on dump-rectors generate class link documentation
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
* ensure use ltrim to remove existing ./ prefix if any
* verify deep directory with /
* run composer docs
2020-09-03 11:45:53 +02:00
Tomas Votruba
740ccda385
[CodingStyle] Drop SimplifyBoolIdenticalTrueRector, does not bring expected value ( #4113 )
2020-09-02 20:12:58 +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
b281fb1260
StaticCall to MethodCall ( #4085 )
...
* drop MessageAsArrayRector, as only rule in guzzle
* [Transform] Move StaticCallToMethodCallRector to Transform
* merge FacadeStaticCallToConstructorInjectionRector to StaticCallToMethodCallRector
* add ArrayArgumentToDataProvider
* [Transform] Move PropertyAssignToMethodCallRector to Transform
2020-08-31 08:48:14 +00: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
3a7d197b34
update FuncNameToStaticCallName to FuncCallToStaticCall ( #4080 )
2020-08-30 20:12:49 +00:00
dobryy
4e91b78c7b
[Naming] Rename the rule to make it correspond with what rule does ( #4076 )
...
* [Naming] Rename the rule to make it correspond with what rule does
* [Naming] Update doc
2020-08-30 21:01:33 +02: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
Tomas Votruba
ff6d6571e6
[Order] Add abstract class, check for changed order and move category to Class_, to prevent minus types ( #4069 )
...
* [Order] report applied rule only on change
* add AbstractConstantPropertyMethodOrderRector, use explicit Class_ and Trait_ over minus
* update docs
* add PropertyNameRankAndPosition value object
* static fixes
* add ClassMethodRankeable and RankeableInterface, to get rid of arrays
* add PropertyRankeable
* add ClassConstRankeable
* add sortByRanksAndGetNames()
* [rector] add sortByRanksAndGetNames()
* [cs] add sortByRanksAndGetNames()
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-30 12:45:03 +00:00
Tom Pavelec
36b24b2bfc
fix: swapped naming of camel and pascal cases ( #4047 )
2020-08-28 18:07:15 +02:00
Tomas Votruba
650dcc8ef0
beware reference ( #4039 )
2020-08-27 12:19:22 +02:00
Tomas Votruba
dbda0beee8
[DX] Last value objects ( #4035 )
...
* [DX] Add CallToFluent
* [DX] Add ArrayToFluentCall
* [DX] Add FactoryMethod
2020-08-26 14:25:28 +00:00
Tomas Votruba
dfe158e2da
[DX] Various value objects added ( #4034 )
...
* [DX] Add TypeToStaticCall
* [DX] Add ClassConstantRename
* [DX] Add IssetUnsetToMethodCall
* [DX] Add MethodToYield
* drop unamtained shopware sets
* [DX] Add RenamedAnnotationInType
* [DX] Add MethodCallWrap
* [DX] Add RenamedProperty
* [DX] Add StringToClassConstant
* [DX] Add ArgumentSwap
* simplify rename function rector
* [DX] Add RemovedFunctionArgument
* [DX] Add MethodCallToService
* [DX] Add UnprefixedMethodToGetSet
* [DX] Add PseudoNamespaceToNamespaceRector
* [DX] Add FunctionArgumentSwap
* [DX] Add StaticCallToFunction
* [DX] Add ParentCallToProperty
* [DX] Add ParentDependency
* [DX] Add CallWithParamRename
* [DX] Added MethodCallRenameWithAddedArguments
* [DX] Add PropertyToMethodCall
* [DX] Add PropertyToMethodCall
* [rector] [DX] Add PropertyToMethodCall
* [cs] [DX] Add PropertyToMethodCall
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-26 10:54:53 +00:00
Tomas Votruba
b4db31a2ae
[DX] Add ReplacedArgument ( #4030 )
2020-08-26 00:21:41 +02:00
Tomas Votruba
5cad696c95
[DX] Add AddedArgument ( #4029 )
2020-08-25 23:25:00 +02:00
Tomas Votruba
c2cfdaeacd
[DX] Add MethodVisibility value object ( #4028 )
2020-08-25 21:19:12 +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
44d3ec8b7a
[DX] Add MethodReturnType value object ( #4020 )
...
* re-enable rule
* add MethodReturnType value object
* drop sylius deprecated sets, as not maintained for last 2 years
2020-08-25 18:34:49 +00:00
Tomas Votruba
35f61c64b6
[objectize] moving parameter typehint to objects ( #4019 )
...
* moving parameter typehint to objects
* rename constnats
* add support for nested configs
* switch to param type value object
* [rector] switch to param type value object
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-25 02:21:00 +02:00
Tomas Votruba
872f13b27d
rename to value object constants ( #4018 )
2020-08-24 22:37:12 +00: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
9a88e032a2
[docs] print object configuration ( #4010 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-23 12:39:59 +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
766853315e
[Naming] Add MakeIsserClassMethodNameStartWithIsRector ( #4005 )
2020-08-22 19:04:25 +02:00
Tomas Votruba
9164d46a3b
[Naming] Add MakeGetterClassMethodNameStartWithGetRector ( #4003 )
...
* [Naming] Add MakeGetterClassMethodNameStartWithGetRector
* [rector] [Naming] Add MakeGetterClassMethodNameStartWithGetRector
* [cs] [Naming] Add MakeGetterClassMethodNameStartWithGetRector
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-22 15:46:09 +00:00
Tomas Votruba
6a442eddd9
merge CorrectDatetimeEntityPropertyDefaultToConstructorRector to MoveCurrentDateTimeDefaultInEntityToConstructorRector ( #3978 )
...
* merge CorrectDatetimeEntityPropertyDefaultToConstructorRector to MoveCurrentDateTimeDefaultInEntityToConstructorRector
* [rector] merge CorrectDatetimeEntityPropertyDefaultToConstructorRector to MoveCurrentDateTimeDefaultInEntityToConstructorRector
* add Throw Expr to docs
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-21 09:47:44 +00:00
dobryy
afa7456a05
[DX] Architecture rules respect namespace ( #3983 )
2020-08-20 13:56:36 +02:00
dobryy
2e7bdca4e2
[DX] Rename namespaces respect node type ( #3973 )
2020-08-18 17:57:30 +02:00
Tomas Votruba
1b059ee0c3
[DoctrineCodeQuality] Add ChangeBigIntEntityPropertyToIntTypeRector ( #3977 )
2020-08-17 13:21:59 +02:00
Tomas Votruba
c3eb9f6ada
[DoctrineCodeQuality] Add few entity rules ( #3972 )
...
* [DoctrineCodeQuality] Add few entity rules
* [rector] [DoctrineCodeQuality] Add few entity rules
* [cs] [DoctrineCodeQuality] Add few entity rules
* [rector] [cs] [DoctrineCodeQuality] Add few entity rules
* [cs] [cs] [DoctrineCodeQuality] Add few entity rules
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-16 12:39:59 +00:00
dobryy
003afc1435
[Order] Move ClassLike and Class_ rules into correct namespaces ( #3969 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-16 13:42:22 +02:00
TomasVotruba
96c4272286
fix path
2020-08-16 00:54:02 +02:00
Michał Włodarczyk
e91aed6cdc
Fix sample configuration generation ( #3957 )
2020-08-15 11:25:01 +02:00