Skip to content

Commit

Permalink
Update ProjectData.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm authored Jul 28, 2024
1 parent bd86de5 commit f9e2c9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ProjectData.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ public function getEnvString()
return $this->envString;
}

public function getEnvArray() : array
public function getEnvArray() : array
{
$env = $this->getEnvString();
$dotenv_data = new Dotenv();
try {
return $dotenv_data->parse($env);
}
catch (\Throwable $e) {
} catch (\Throwable $e) {
return [];
}
}
Expand Down

0 comments on commit f9e2c9e

Please sign in to comment.