Skip to content

Commit a17f104

Browse files
andrewbessAndrii Beziazychnyi
authored and
Andrii Beziazychnyi
committed
Revert from function alias to original function ini_set
1 parent a24cc81 commit a17f104

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/SampleData/Console/Command/SampleDataDeployCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ private function createAuthFile()
214214
private function updateMemoryLimit()
215215
{
216216
if (function_exists('ini_set')) {
217-
$result = ini_alter('display_errors', 1);
217+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
218+
$result = ini_set('display_errors', 1);
218219
if ($result === false) {
219220
$error = error_get_last();
220221
throw new InvalidArgumentException(__(
@@ -224,7 +225,8 @@ private function updateMemoryLimit()
224225
}
225226
$memoryLimit = trim(ini_get('memory_limit'));
226227
if ($memoryLimit != -1 && $this->getMemoryInBytes($memoryLimit) < 756 * 1024 * 1024) {
227-
$result = ini_alter('memory_limit', '756M');
228+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
229+
$result = ini_set('memory_limit', '756M');
228230
if ($result === false) {
229231
$error = error_get_last();
230232
throw new InvalidArgumentException(__(

0 commit comments

Comments
 (0)