9963 Commits

Author SHA1 Message Date
Tomas Votruba
752a35253b
Remove YAML from tests (#3989)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-19 18:00:27 +02:00
Tomas Votruba
86a3252d0d
fix class call (#3990)
* fix class call

* [rector] fix class call

* [cs] fix class call

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-19 14:14:08 +00:00
Oliver Nybroe
4090c58ce1
Add failing test case for #3981 (#3986) 2020-08-19 15:45:50 +02:00
Tomas Votruba
1f61fe34f0
import repo entity (#3988)
* various fixes

* add import for generic types

* bump to newer phpstan with php-parser 4.9
2020-08-19 13:20:16 +00:00
Tomas Votruba
101b9bfcb2
composer: lock to php-parser 4.8 to prevent bugs (#3987) 2020-08-19 13:36:29 +02:00
TomasVotruba
efef51d237 use option 2020-08-19 00:09:49 +02:00
Tomas Votruba
3b87f6c5c8
update ecs.php to use constants over strings (#3982) 2020-08-18 16:42:54 +00: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
TomasVotruba
b7f9a04177 update CHANGELOG v0.7.64 2020-08-16 15:50:35 +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
dobryy
d893ee7209
[Order] Order first level class statements (#3968)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-16 12:08:37 +02:00
TomasVotruba
3d5585aa74 add changeItem() 2020-08-16 01:53:21 +02:00
TomasVotruba
5a35e0a069 add get options to ColumnTagValueNode 2020-08-16 01:43:02 +02:00
TomasVotruba
4562e9b30e fix php snippet detection 2020-08-16 01:35:22 +02:00
TomasVotruba
abbb287d0b update rector recipe 2020-08-16 01:29:16 +02:00
TomasVotruba
96c4272286 fix path 2020-08-16 00:54:02 +02:00
Tomas Votruba
664388561d
Recipe array to object (#3966)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-16 00:49:15 +02:00
Mark Sch
2d7469efb8
Add AssertEqualsToSameRector (#3958) 2020-08-15 19:35:07 +02:00
Tomas Votruba
6751ff37e8
make sure recipe is loaded (#3964) 2020-08-15 11:39:08 +00:00
Tomas Votruba
a7a72e2fb3
add test case for 3rd party generator + fix it (#3963)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-15 12:39:52 +02:00
Michał Włodarczyk
e91aed6cdc
Fix sample configuration generation (#3957) 2020-08-15 11:25:01 +02:00
Tomas Votruba
9946e88c9a
[RectorGenerator] prevent incorrect package configuration (#3962)
* preven incorrect package configuration

* update create-recipe to rector-recipe, with prefix and better discoverability

* [rector] update create-recipe to rector-recipe, with prefix and better discoverability

* [cs] update create-recipe to rector-recipe, with prefix and better discoverability

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-15 09:14:54 +00:00
TomasVotruba
94064a3dd1 fix template paths for package 2020-08-14 17:44:42 +02:00
TomasVotruba
e55d2b7bf6 add missing easy-testing 2020-08-14 17:36:24 +02:00
Tomas Votruba
33d992497a
[Doctrine] Add constructor getRepository to service (#3954) 2020-08-13 01:04:23 +02:00
Tomas Votruba
4fce95c509
add easy-ci (#3953) 2020-08-12 22:59:25 +02:00
Tomas Votruba
9f9194188f
add new ManagerRegistry namespace (#3952) 2020-08-12 20:05:04 +00:00
TomasVotruba
27daba1fb3 fix path 2020-08-12 20:32:35 +02:00
Tomas Votruba
74fc11088d
move Polyfill to rules (#3951) 2020-08-12 18:30:42 +00:00
Tomas Votruba
8784a81ff7
[Fluent] Add factory case (#3950) 2020-08-12 20:24:52 +02:00
Tomas Votruba
89537b830f
use symplify rule (#3949) 2020-08-12 13:07:43 +00: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
c25cd2e178
misc (#3946)
* ignore prefixed conflcits

* note
2020-08-12 10:03:15 +00: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
Markus Podar
26343461cd
README: fix typo (#3944)
Seems the formatting got off or something
2020-08-12 11:09:31 +02: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
7a603dde2d
[TypeDeclaration] Add nested key support (#3941)
* [TypeDeclaration] Add nested key support

* [rector] [TypeDeclaration] Add nested key support

* [cs] [TypeDeclaration] Add nested key support

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-11 11:58:03 +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
e4af8cc721
[Order] Order constants by visibility (#3934)
* [Order] Order constants by visibility

* phpstan iterable types fixes

* Fix PHPStan issue (unrelated to PR)

* Doc Update
2020-08-10 21:59:40 +00:00
Tomas Votruba
172653b606
drop EnsureDataProviderInDocBlockRector, job for coding standards (#3938) 2020-08-10 10:40:22 +02:00
dobryy
0f63ef4b1c
[Order] Visibility rules refactoring (#3933)
* [Order] Visibility rules refactoring

* [Order] Import missed FQCN

* phpstan iterable types fixes
2020-08-09 19:21:31 +02:00
dobryy
86e1ab7e0a
fixture for the issue #3931 (#3937) 2020-08-09 00:21:45 +02:00
dobryy
05ece4e8d1
[Order] Order properties by visibility (#3929) 2020-08-08 00:21:17 +02:00
dobryy
29d44284cc
[Order] Order class methods by visibility (#3923)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-07 18:23:40 +02:00
Tomas Votruba
49e28b271a
update create-rector.php.dist (#3926) 2020-08-07 11:35:11 +02:00
Tomas Votruba
ec28719c6c
make use of NodeConnectingVisitor + improve generate Rector docs (#3925) 2020-08-07 11:30:05 +02:00
Tomas Votruba
734d11f6c9
[SOLID] Skip func calls that change variable in ChangeReadOnlyVariableWithDefaultValueToConstantRector (#3916) 2020-08-07 00:25:25 +00:00
Tomas Votruba
7da338b953
[CodingStyle] Make ConsistentPregDelimiterRector configurable (#3924) 2020-08-06 23:55:56 +02:00