Skip to content

Commit ab69c0a

Browse files
author
Mykola Palamar
committed
MAGETWO-66100: Remove usages of unserialize in module Magento/Setup
1 parent 3670318 commit ab69c0a

File tree

1 file changed

+3
-3
lines changed
  • lib/internal/Magento/Framework/ObjectManager/Config

1 file changed

+3
-3
lines changed

lib/internal/Magento/Framework/ObjectManager/Config/Compiled.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class Compiled implements ConfigInterface
3636
*/
3737
public function __construct($data)
3838
{
39-
$this->arguments = $data['arguments'];
40-
$this->virtualTypes = $data['instanceTypes'];
41-
$this->preferences = $data['preferences'];
39+
$this->arguments = $data['arguments'] ?: [];
40+
$this->virtualTypes = $data['instanceTypes'] ?: [];
41+
$this->preferences = $data['preferences'] ?: [];
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)