<
8000
div class="d-none">
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Symfony/Component/Dotenv Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ private function lexVarname()
161
161
}
162
162
163
163
if (' ' === $ this ->data [$ this ->cursor ] || "\t" === $ this ->data [$ this ->cursor ]) {
164
- throw $ this ->createFormatException ('Whitespace are not supported after the variable name ' );
164
+ throw $ this ->createFormatException ('Whitespace characters are not supported after the variable name ' );
165
165
}
166
166
167
167
if ('= ' !== $ this ->data [$ this ->cursor ]) {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function getEnvDataWithFormatErrors()
36
36
{
37
37
$ tests = [
38
38
['FOO=BAR BAZ ' , "A value containing spaces must be surrounded by quotes in \".env \" at line 1. \n...FOO=BAR BAZ... \n ^ line 1 offset 11 " ],
39
- ['FOO BAR=BAR ' , "Whitespace are not supported after the variable name in \".env \" at line 1. \n...FOO BAR=BAR... \n ^ line 1 offset 3 " ],
39
+ ['FOO BAR=BAR ' , "Whitespace characters are not supported after the variable name in \".env \" at line 1. \n...FOO BAR=BAR... \n ^ line 1 offset 3 " ],
40
40
['FOO ' , "Missing = in the environment variable declaration in \".env \" at line 1. \n...FOO... \n ^ line 1 offset 3 " ],
41
41
['FOO="foo ' , "Missing quote to end the value in \".env \" at line 1. \n...FOO= \"foo... \n ^ line 1 offset 8 " ],
42
42
['FOO= \'foo ' , "Missing quote to end the value in \".env \" at line 1. \n...FOO='foo... \n ^ line 1 offset 8 " ],
0 commit comments