Skip to content

Commit a33c3cc

Browse files
committed
breaking: rename function env() to env_val()
1 parent 15278ea commit a33c3cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: true
1212
matrix:
13-
php: [7.1, 7.2, 7.3, 7.4, 8.0] #
13+
php: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1] #
1414
# os: [ubuntu-latest, macOS-latest] # windows-latest,
1515

1616
steps:

src/func.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ function eprints(...$vars): void
114114
}
115115
}
116116

117-
if (!function_exists('env')) {
117+
if (!function_exists('env_val')) {
118118
/**
119119
* @param string $key
120120
* @param string $default
121121
*
122122
* @return string
123123
*/
124-
function env(string $key, string $default = ''): string
124+
function env_val(string $key, string $default = ''): string
125125
{
126126
return Toolkit\Stdlib\OS::getEnvStrVal($key, $default);
127127
}

0 commit comments

Comments
 (0)