Skip to content

Commit 4757426

Browse files
committed
MAGETWO-95430: Prevent major version bump between Magento_User from 2.2.6 and 2.3.0
- preserve constructor serialize
1 parent 2cc4ccb commit 4757426

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/User/Model/User.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function __construct(
178178
\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
179179
array $data = [],
180180
Json $serializer = null,
181-
?DeploymentConfig $deploymentConfig = null,
181+
DeploymentConfig $deploymentConfig = null,
182182
?NotificatorInterface $notificator = null
183183
) {
184184
$this->_encryptor = $encryptor;
@@ -229,6 +229,7 @@ public function __sleep()
229229
'_storeManager',
230230
'_validatorBeforeSave',
231231
'validationRules',
232+
'serializer',
232233
'deploymentConfig',
233234
'notificator'
234235
]

0 commit comments

Comments
 (0)