8250 Commits

Author SHA1 Message Date
Den Girnyk
30c337e82c
Fix 'auto_import_names' tests fixtures path 2020-03-27 14:47:52 +02:00
Tomas Votruba
f9a42a2f75
Merge pull request #3072 from rectorphp/php80-str-contains
[PHP 8.0] Add StrContainsRector
2020-03-27 00:02:41 +01:00
TomasVotruba
3c3aa39f14 [PHP 80] Add StrContainsRector 2020-03-26 23:57:53 +01:00
Tomas Votruba
7087a55630
Merge pull request #3071 from rectorphp/fix-ctor
remove ctor dependency on property/assign removal
2020-03-26 23:04:13 +01:00
TomasVotruba
9d4be977c4 remove ctor dependency on property/assign removal 2020-03-26 22:58:28 +01:00
Tomas Votruba
47c8666088
Merge pull request #2836 from Great-Antique/2753_fix_auto_import_names
WIP: #2753 Fix Auto Import Names
2020-03-26 22:27:57 +01:00
Tomas Votruba
32ce46eed2
Merge pull request #3070 from rectorphp/fix-foreach
[DeadCode] Add empty() + count($values) > 0 checks to RemoveUnusedNonEmptyArrayBeforeForeachRector
2020-03-26 22:25:39 +01:00
TomasVotruba
5995db8262 add else case 2020-03-26 22:14:10 +01:00
TomasVotruba
6a8aa9b017 add count() > 0 case 2020-03-26 22:09:35 +01:00
TomasVotruba
0fe761f8ff Add empty() check to RemoveUnusedNonEmptyArrayBeforeForeachRector 2020-03-26 21:37:37 +01:00
Tomas Votruba
df9f2e471c
Fix Route separating key (#3069) 2020-03-26 00:03:28 +01:00
Tomas Votruba
8406192dca
[DeadCode] Add RemoveAssignOfVoidReturnFunctionRector (#3068) 2020-03-25 22:51:12 +01:00
Tomas Votruba
5204ce1523
[DeadCode] Add RemoveUnusedNonEmptyArrayBeforeForeachRector (#3066) 2020-03-25 19:00:26 +01:00
Tomas Votruba
6cd9aa70cc
Fix multiple annotation reading of same type at class method (#3065) 2020-03-25 18:38:02 +01:00
Tomas Votruba
8492af2af1
[PHP 7.4] Fix ChangeReflectionTypeToStringToGetNameRector (#3064)
* [PHP 7.4] Fix ChangeReflectionTypeToStringToGetNameRector

* fixup! [Rector CI] Fixed Rector issues

* fixup! [Rector CI] Fixed CS issues

Co-authored-by: rector-bot <tomas@getrector.org>
2020-03-25 15:53:26 +01:00
Tomas Votruba
dee6fd82ca
Merge pull request #3063 from rectorphp/fix-preg
[PHP 5.5] Prevent error on non-string value in PregReplaceEModifierRector
2020-03-25 14:26:07 +01:00
TomasVotruba
e9cf6e1544 Add basic concat support to PregReplaceEModifierRector 2020-03-25 14:19:37 +01:00
TomasVotruba
9827f7ec07 refactoring 2020-03-25 13:50:03 +01:00
TomasVotruba
b113c38670 [PHP 5.5] Prevent error on non-string value in PregReplaceEModifierRector 2020-03-25 13:42:33 +01:00
Tomas Votruba
47a19ac620
Merge pull request #3062 from rectorphp/dead-function
[DeadCode] Add RemoveUnusedFunctionRector
2020-03-25 12:58:02 +01:00
TomasVotruba
6a0551f004 [DeadCode] Add RemoveUnusedFunctionRector 2020-03-25 12:50:51 +01:00
TomasVotruba
41f841c330 fix sonar paths 2020-03-25 00:05:03 +01:00
Tomas Votruba
172adf0c62
Merge pull request #3059 from rectorphp/php74-restoration-null-default-only
[PHP 7.4] Add restoration null default only
2020-03-24 23:56:15 +01:00
TomasVotruba
f5d8804c20 improve PhpVersionFeature autocomplete by PHPStorm 2020-03-24 23:49:19 +01:00
TomasVotruba
ff6a3d3140 [PHP 7.4] Add RestoreDefaultNullToNullableTypePropertyRector 2020-03-24 23:45:15 +01:00
TomasVotruba
d608507f2e rename PHP sets to comply with standard 2020-03-24 23:44:42 +01:00
Tomas Votruba
5d36458265
Merge pull request #3058 from rectorphp/php74-default-null
[PHP 7.4] Add default null type on properties
2020-03-24 23:12:59 +01:00
TomasVotruba
90044b30bc [PHP 7.4] Add default null type on properties 2020-03-24 23:07:33 +01:00
Tomas Votruba
d402217f74
Merge pull request #3057 from rectorphp/php74-doctrine-type
[PHP 7.4] Add id tag support + remove array on collection property
2020-03-24 22:58:59 +01:00
TomasVotruba
35ef3a0217 [PHP 7.4] Add id tag support + remove default array on collection 2020-03-24 22:49:41 +01:00
Tomas Votruba
1d11fa00b5
Merge pull request #3056 from rectorphp/php74-typed-properties
[PHP 7.4] Improve TypedPropertyRector for Doctrine collection
2020-03-24 21:58:24 +01:00
TomasVotruba
aa9588f261 [PHP 7.4] Improve TypedProeprtyRector for Doctrine collection 2020-03-24 21:41:19 +01:00
Tomas Votruba
5442bed2a0
Merge pull request #3054 from derflocki/ListSwapArrayOrderRector
skip if not used with the `array []` operator fixes #3053
2020-03-24 15:17:25 +01:00
Florian Dorn
f0aca87c6a skip if not used with the array [] operator 2020-03-24 09:54:03 +01:00
Tomas Votruba
5b1e1093a1
Merge pull request #3052 from rectorphp/tag-content
fix content resolving
2020-03-24 02:32:44 +01:00
TomasVotruba
85883c1e01 fix content resolving 2020-03-24 02:32:10 +01:00
Tomas Votruba
309ac935de
Merge pull request #3051 from rectorphp/improve-tag-generator
improve GeneratedValueTagValueNode
2020-03-24 00:24:18 +01:00
TomasVotruba
dcb4fe0562 improve GneratedValueTagValueNode 2020-03-24 00:17:40 +01:00
Tomas Votruba
28657282f1
Merge pull request #3050 from rectorphp/fix-annota-value-replace
Fix assert choice tag value node with class constant reference
2020-03-23 23:48:24 +01:00
TomasVotruba
868fe4e7be Fix assert choice tag value node with class constant reference 2020-03-23 20:25:06 +01:00
Tomas Votruba
11b4dd9c7a
Merge pull request #3049 from rectorphp/return-fix
fix union type on ReturnTypeDeclarationRector
2020-03-23 19:40:45 +01:00
TomasVotruba
070c41d7c9 fix union type on ReturnTypeDeclarationRector 2020-03-23 19:33:31 +01:00
Tomas Votruba
2c3f676191
Merge pull request #3047 from rectorphp/phpunit-create-stub
[PHPUnit] Add CreateMockToCreateStubRector
2020-03-23 18:09:06 +01:00
TomasVotruba
eb88378488 improve chain method call resolutuin 2020-03-23 17:33:04 +01:00
TomasVotruba
0c3359e217 add variable to method call traverser 2020-03-23 17:16:10 +01:00
TomasVotruba
44a1654b66 split fixture 2020-03-23 17:16:10 +01:00
Grégoire Paris
88f27689eb WIP add createMock to createStub rector 2020-03-23 17:16:10 +01:00
Tomas Votruba
2da2c94cd2
Merge pull request #3039 from greg0ire/proofread-readme
Proofread readme
2020-03-21 15:15:53 +01:00
Tomas Votruba
ae61817361
Merge pull request #3040 from greg0ire/proofread-docs
Proofread docs
2020-03-21 15:14:49 +01:00
Grégoire Paris
af04925815
Avoid long lines in code
This makes things easier to read: no horizontal scrolling
2020-03-21 14:23:09 +01:00