Skip to content

Commit f7ee0cc

Browse files
author
Bunyamin
committed
The default value of the new parameter set to null
1 parent f04a5a9 commit f7ee0cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup/src/Magento/Setup/Validator/AdminCredentialsValidator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\Setup\Validator;
77

8+
use Magento\Framework\App\ObjectManager;
89
use Magento\Framework\Config\ConfigOptionsListConstants as ConfigOption;
910
use Magento\Setup\Model\AdminAccount;
1011
use Magento\Setup\Model\Installer;
@@ -47,12 +48,12 @@ public function __construct(
4748
\Magento\Setup\Model\AdminAccountFactory $adminAccountFactory,
4849
\Magento\Setup\Module\ConnectionFactory $connectionFactory,
4950
\Magento\Setup\Module\SetupFactory $setupFactory,
50-
DriverOptions $driverOptions
51+
DriverOptions $driverOptions = null
5152
) {
5253
$this->connectionFactory = $connectionFactory;
5354
$this->adminAccountFactory = $adminAccountFactory;
5455
$this->setupFactory = $setupFactory;
55-
$this->driverOptions = $driverOptions;
56+
$this->driverOptions = $driverOptions ?? ObjectManager::getInstance()->get(DriverOptions::class);
5657
}
5758

5859
/**

0 commit comments

Comments
 (0)