9972 Commits

Author SHA1 Message Date
Dmytro Naumenko
fc6e584721
Failing test: Reset in a condition produces a LogicException (#3997) 2020-08-22 15:20:56 +02:00
Tomas Votruba
786095f328
refactoring of variable name counted (#3999)
* fix variable rename scoping

* [rector] fix variable rename scoping

* [cs] fix variable rename scoping

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-22 13:02:55 +00:00
Dmytro Naumenko
04597e9685
Failing test: Multiple resets of the same func in a array (#3998) 2020-08-22 13:03:27 +02:00
dobryy
857fd25168
RenameParamToMatchTypeRector doesn't skip variable that is used in callback function use statement (#3970)
* Include use in rename

* [rector] Include use in rename

* [rector] [rector] Include use in rename

* [cs] [rector] Include use in rename

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-21 17:13:56 +00:00
Tomas Votruba
fd69d845e4
Refactor extra file tests wobbly arrays to typed value objects (#3996) 2020-08-21 13:30:28 +02: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
Tomas Votruba
ac4e73b72f
add ConfigShifter to make use of root config parameter override (#3994) v0.7.65 2020-08-20 15:37:13 +02:00
dobryy
afa7456a05
[DX] Architecture rules respect namespace (#3983) 2020-08-20 13:56:36 +02:00
dobryy
21d0f01383
[DX] TemplateAnnotationToThisRenderRector fixture's namespace issue (#3984) 2020-08-20 13:56:06 +02:00
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