env returns an environment variable

This commit is contained in:
Oliver Davies 2019-05-21 12:37:38 +01:00
parent 61e3dfa0ec
commit 52d8e4c626
2 changed files with 30 additions and 0 deletions

View file

@ -1,2 +1,8 @@
<?php
if (!function_exists('env')) {
function env(string $name): ?string
{
return $_ENV[$name];
}
}