File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/SampleData/Console/Command Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,8 @@ private function createAuthFile()
214
214
private function updateMemoryLimit ()
215
215
{
216
216
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 );
218
219
if ($ result === false ) {
219
220
$ error = error_get_last ();
220
221
throw new InvalidArgumentException (__ (
@@ -224,7 +225,8 @@ private function updateMemoryLimit()
224
225
}
225
226
$ memoryLimit = trim (ini_get ('memory_limit ' ));
226
227
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 ' );
228
230
if ($ result === false ) {
229
231
$ error = error_get_last ();
230
232
throw new InvalidArgumentException (__ (
You can’t perform that action at this time.
0 commit comments