Dotenv::safeLoad()
Load environment file in given directory, silently failing if it doesn’t exist.
Return
(Dotenvarray<string|Dotenvnull>)
Source
File: vendor/vlucas/phpdotenv/src/Dotenv.php
public function safeLoad()
{
try {
return $this->loadData();
} catch (InvalidPathException $e) {
// suppressing exception
return [];
}
}