Skip to content

Commit 06d0a34

Browse files
committed
MAGETWO-87445: FATAL error on compiler generation on PAT 2.2 Trend
1 parent 5e2a47f commit 06d0a34

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/code/Magento/Catalog/Plugin/Model/ResourceModel/ReadSnapshotPlugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
use Magento\Catalog\Api\Data\CategoryInterface;
99
use Magento\Catalog\Api\Data\ProductInterface;
10-
use Magento\Eav\Model\Config;
10+
use Magento\Eav\Model\Config as EavConfig;
1111
use Magento\Eav\Model\ResourceModel\ReadSnapshot;
1212
use Magento\Framework\EntityManager\MetadataPool;
1313

@@ -24,17 +24,17 @@ class ReadSnapshotPlugin
2424
private $metadataPool;
2525

2626
/**
27-
* @var Config
27+
* @var EavConfig
2828
*/
2929
private $config;
3030

3131
/**
3232
* @param MetadataPool $metadataPool
33-
* @param Config $config
33+
* @param EavConfig $config
3434
*/
3535
public function __construct(
3636
MetadataPool $metadataPool,
37-
Config $config
37+
EavConfig $config
3838
) {
3939
$this->metadataPool = $metadataPool;
4040
$this->config = $config;

app/code/Magento/Eav/Model/Entity/Attribute/AbstractAttribute.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ abstract class AbstractAttribute extends \Magento\Framework\Model\AbstractExtens
133133
* @var array
134134
*/
135135
private $emptyStringTypes = [
136+
'int',
137+
'decimal',
136138
'datetime',
137139
'varchar',
138140
'text',

0 commit comments

Comments
 (0)