Skip to content

Commit

Permalink
fixing env memory limit
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Crty committed Oct 11, 2020
1 parent 482df2f commit 9fb8051
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/main
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env php
<?php
ini_set('memory_limit', '-1');

require dirname(__DIR__).'/src/bootstrap.php';

use App\Command\UploadCommand;
Expand Down
4 changes: 4 additions & 0 deletions src/Helper/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class Env
{
public static function get($key)
{
if(!empty($_SERVER[$key])){
return $_SERVER[$key];
}

if(!empty($_ENV[$key])){
return $_ENV[$key];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class File implements ResourceInterface
*/
protected $mineType;

protected ?Folder $folder = null;
protected $folder = null;

/**
* @Groups({"main_webhook"})
Expand Down

0 comments on commit 9fb8051

Please sign in to comment.