Tomas Votruba
7aad4bbf2f
[PHPStan] Enable regex constant rule ( #4279 )
2020-09-23 11:16:40 +02:00
Igor
52f02d8c91
[Naming] Make bool property respect is/has/was naming ( #4215 )
2020-09-22 20:22:10 +00:00
Marek Šimeček
66bf80f891
changed files detector test ( #4256 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-18 12:06:01 +02:00
Marek Šimeček
1c2afb2e56
node name resolver skip on identifier ( #4254 )
2020-09-18 10:45:22 +02:00
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
Igor
1582dc46f4
[Naming] Decouple property renaming into PropertyRenamer ( #4242 )
2020-09-17 23:18:18 +02:00
Igor
a3c9dabdf6
Fix PHPStan constants issues ( #4248 )
2020-09-17 21:24:34 +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
Tomas Votruba
1950ab5abd
phpstan fixes ( #4224 )
2020-09-15 11:16:43 +02:00
Igor
f2ecdeb0b1
[Naming] Foreach over "data", renames to "datum" ( #4221 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-15 10:23:13 +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
Leonardo Losoviz
abb9a3ef90
Downgrade PHP7.1 features: nullable types and void return type ( #4192 )
2020-09-12 11:50:13 +02:00
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
42f377c825
drop html from RectorRecipe, buggy and confusing, handle manually ( #4199 )
2020-09-11 14:08:19 +00: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
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
4f1beae3fd
[DX] Fix NoAbstractMethodRule cases ( #4180 )
...
* decouple IsAbleFuncCallInterface
* decouple WithFunctionToNetteUtilsStringsRectorInterface
* decouple NodeTraversableInterface
* decouple RectorInterfaceAwareInterface
* [ci] disable markdown check to prevent user bothering
2020-09-09 09:07:14 +00:00
dobryy
f69ea0e023
[Naming] Rename foreach value variable to match method return type ( #4130 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-09 10:52:43 +02:00
Leonardo Losoviz
7a498e328e
Split downgrade sets ( #4175 )
...
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-09 10:32:28 +02:00
Tomas Votruba
6508aedd13
[Downgrade PHP 8.0] Add union types to doc types ( #4082 )
2020-09-08 12:00:38 +02:00
Tomas Votruba
1a2e9cbb33
static fixes ( #4140 )
2020-09-07 17:40:46 +02:00
Tomas Votruba
a127bf16eb
revert [Experimental] Add safe_types option - #3535 ( #4120 )
2020-09-03 18:02:07 +00:00
Julian Pollmann
bdb3750948
FixMissing Ruleset does not throw SetNotFoundException ( #4117 )
2020-09-03 15:55:13 +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
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
7256dbe667
symplify fixes ( #4088 )
...
* notify param/return doc changes
* prevent array doc override
2020-08-31 20:32:33 +00:00
Tomas Votruba
df6e083324
drop MessageAsArrayRector, as only rule in guzzle ( #4083 )
2020-08-31 00:16:12 +00:00
Tomas Votruba
042f08f71b
Drop YAML config support ( #4081 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-30 23:29:39 +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
f8b485305f
Add multiple annotation support on class ( #4064 )
...
* add test case for #3230
* position
* add support for multi doc annotations
* [rector] add support for multi doc annotations
* [cs] add support for multi doc annotations
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-29 23:12:20 +00:00
Tomas Votruba
4a2ba04b05
report @var changes ( #4063 )
2020-08-29 20:18:32 +02:00
Tomas Votruba
6b39193992
report doc changes ( #4060 )
2020-08-29 18:18:24 +02:00
Tomas Votruba
351e59fa3b
Fix array type ( #4058 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-29 16:20:27 +02:00
Tomas Votruba
41a9b63c6f
fix ci ( #4057 )
2020-08-29 11:03:40 +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
Tom Pavelec
36b24b2bfc
fix: swapped naming of camel and pascal cases ( #4047 )
2020-08-28 18:07:15 +02:00
dobryy
f6fba29169
[Type Declaration] The smallest possible fixture fixed ReturnUuid ( #4044 )
...
* the smallest possible fixture fixed
* fix default key integer
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-08-28 07:00:03 +02:00
dobryy
5b4797af85
[Type Declaration] Fix unwrapping of multiple union types ( #4043 )
2020-08-27 21:05:00 +02:00
Tomas Votruba
650dcc8ef0
beware reference ( #4039 )
2020-08-27 12:19:22 +02: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
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
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
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
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