37 Commits

Author SHA1 Message Date
Tomas Votruba
a7705ed0a5
[Symplify 9] First update + switch to RuleDocGenerator (#4616)
* [composer] bump to Symplify 9

* [Symplify 9] Update phpstan rules

* bump to Symplify 9 BETA2

* update AbstractKernel from Tests to Testing namespace

* decoupling removing node trait

* remove fluent calls

* removing variadic

* [CodingStyle] Improve AnnotateThrowablesRector

* bump deps

* Make use of RuleDocGenerator

* first short

* [DocumentationGenerator] Drop deprecated package, RuleSetGenerator now handles it

* import namespace

* update docs
2020-11-16 17:50:38 +00:00
Abdul Malik Ikhsan
aae9a54768
[Symfony] Fixes #4583 Skip AbstractToConstructorInjectionRector when service type not found (#4599) 2020-11-13 12:13:48 +01:00
Tomas Votruba
0513315056
Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node (#4522)
* Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node

* update DecoupleClassMethodToOwnClassRector

* [ci] add rebase jobp

* disable fail fast for unit tests

* misc
2020-10-31 12:59:40 +00:00
Tomas Votruba
a1e50263d2
[cs] improve configured rules types (#4491)
* [cs] improve configured rules types

* [ci] update env variable
2020-10-27 14:00:39 +00:00
Abdul Malik Ikhsan
3ff3e37ecb
[symfony] add AutoWireWithClassNameSuffixForMethodWithRequiredAnnotationRector (#4341)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-02 12:29:18 +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
Abdul Malik Ikhsan
3d2a35d63e
Fixes #4013 ConsoleExecuteReturnIntRector ignores already type casted variable (#4095)
* #4013: Don't force type hint if already forced.

* Fixes #4013 ConsoleExecuteReturnIntRector ignores already type casted variable

Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>

* remove no expected change already casted variable fixture

Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>

* remove unneded $hasReturn fill on check node->expr instanceof Int_

Co-authored-by: Aerendir <hello@aerendir.me>
2020-09-01 15:57:00 +02:00
Tomas Votruba
451b638435
Fix lazy command chain removal (#4001) 2020-08-22 15:40:19 +02:00
Marek Šimeček
5a342d9545
lazy command failing test (#3881)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: Marek Šimeček <marek.simecek@footshop.cz>
2020-08-22 15:26:35 +02: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
dobryy
a3be7e03ca
[DX] Rename namespaces of Rector rules to respect node, instead of domain (#3911) 2020-08-12 11:08:59 +02: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
76b4ab7586
[Defluent] New set + various improvements (#3853)
* remove dead-else branch

* add defluent set

* fix type to match

* use constants over strings

* fixup! use constants over strings

* Add fluent as arg support to DefluentMethodCallRector

Co-authored-by: rector-bot <tomas@getrector.org>
2020-07-31 23:08:16 +00:00
TomasVotruba
fe72e003ed use constants in configs 2020-07-30 13:53:53 +02:00
TomasVotruba
86caa737f9 [Symfony] Add RemoveDefaultGetBlockPrefixRector 2020-07-13 19:06:24 +02:00
TomasVotruba
4c88e5dc5a add collection entry_type conversion to FormTypeInstanceToClassConstRector 2020-07-13 18:17:55 +02:00
TomasVotruba
9106284fa7 decouple BuilderFormNodeFactory, ConfigureOptionsNodeFactory 2020-07-13 17:44:30 +02:00
TomasVotruba
752515bd73 add support for options to entry_options rename in collection 2020-07-13 15:42:26 +02:00
TomasVotruba
98ca70c00a [Symfony] Add ChangeCollectionTypeOptionNameFromTypeToEntryTypeRector 2020-07-13 11:19:37 +02:00
TomasVotruba
1a8575096f [Symfony] Add ChangeCollectionTypeOptionTypeFromStringToClassReferenceRector 2020-07-13 01:56:35 +02:00
TomasVotruba
558684f327 tyding 2020-07-12 22:29:20 +02:00
TomasVotruba
8ba88bad46 add custom-xml support to form type 2020-07-12 14:20:14 +02:00
TomasVotruba
586249c794 [Symfony] add Kernel support to ChangeFileLoaderInExtensionAndKernelRector 2020-07-09 18:21:31 +02:00
TomasVotruba
50fded4abe [Symfony] Extend ChangeFileLoaderInExtensionRectorTest to make it configurable 2020-07-09 14:35:57 +02:00
TomasVotruba
156c31ee6d [Symfony] Add ChangeXmlToYamlFileLoaderInExtensionRector 2020-07-07 11:51:52 +02:00
TomasVotruba
574de08dfa remove issue-tests, already covered in specific rule tests 2020-07-02 13:40:51 +02:00
TomasVotruba
a8a6e7bcad rename file to fileInfo 2020-06-30 01:45:05 +02:00
TomasVotruba
7f49658112 change test(string ) to test(SmartFileInfo ) in tests 2020-06-25 20:02:36 +02:00
TomasVotruba
c504062ec2 add typed property if on PHP 7.4 2020-06-24 15:09:50 +02:00
TomasVotruba
2e78850f69 allow non-suffix dependency and fix no-route tag 2020-06-06 13:16:19 +02:00
TomasVotruba
f64f468ac1 apply cs 2020-05-03 21:23:58 +02:00
TomasVotruba
98b1277549 various suffix fixes 2020-04-23 22:31:58 +02:00
TomasVotruba
d865f69793 [DX] Add validate fixture suffix 2020-04-23 21:36:19 +02:00
TomasVotruba
192c4464ec various improvements 2020-04-19 23:17:01 +02:00
TomasVotruba
1b937ec0e0 fix method annotation 2020-03-04 23:22:29 +01:00
Stefan Blanke
19d18c5a6a Add two failings tests 2020-03-04 14:54:21 +01:00
TomasVotruba
3e5dd77bb6 move Rector-rule based packages from /packages to /rules 2020-02-11 13:41:37 +01:00