File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Catalog/Plugin/Model/ResourceModel
Eav/Model/Entity/Attribute Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Catalog \Api \Data \CategoryInterface ;
9
9
use Magento \Catalog \Api \Data \ProductInterface ;
10
- use Magento \Eav \Model \Config ;
10
+ use Magento \Eav \Model \Config as EavConfig ;
11
11
use Magento \Eav \Model \ResourceModel \ReadSnapshot ;
12
12
use Magento \Framework \EntityManager \MetadataPool ;
13
13
@@ -24,17 +24,17 @@ class ReadSnapshotPlugin
24
24
private $ metadataPool ;
25
25
26
26
/**
27
- * @var Config
27
+ * @var EavConfig
28
28
*/
29
29
private $ config ;
30
30
31
31
/**
32
32
* @param MetadataPool $metadataPool
33
- * @param Config $config
33
+ * @param EavConfig $config
34
34
*/
35
35
public function __construct (
36
36
MetadataPool $ metadataPool ,
37
- Config $ config
37
+ EavConfig $ config
38
38
) {
39
39
$ this ->metadataPool = $ metadataPool ;
40
40
$ this ->config = $ config ;
Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ abstract class AbstractAttribute extends \Magento\Framework\Model\AbstractExtens
133
133
* @var array
134
134
*/
135
135
private $ emptyStringTypes = [
136
+ 'int ' ,
137
+ 'decimal ' ,
136
138
'datetime ' ,
137
139
'varchar ' ,
138
140
'text ' ,
You can’t perform that action at this time.
0 commit comments