Skip to content

Commit a9ebb29

Browse files
Merge branch '4.4' into 5.0
* 4.4: Fixed #35084 Add missing use statement [HttpClient] fix scheduling pending NativeResponse do not overwrite variable value [Profiler] wording Use spaces correctly to display options in DebugCommand X-Accel Nginx URL updated ticket-30197 [Validator] Add the missing translations for the Chinese (Taiwan) ("zh_TW") locale Fixed test added in #35022 Use locale_parse for computing fallback locales [Console] Fix filtering out identical alternatives when there is a command loader add note about HTTP status code change Migrate server:log command away from WebServerBundle [DependencyInjection][CheckTypeDeclarationsPass] Handle \Closure for callable [Security] Fix missing defaults for auto-migrating encoders bumped Symfony version to 4.4.3 updated VERSION for 4.4.2 updated CHANGELOG for 4.4.2
2 parents 7e1bc90 + 86b2858 commit a9ebb29

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Tests/DotenvTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,13 @@ public function testGetVariablesValueFromGetenv()
448448
putenv('Foo=Bar');
449449

450450
$dotenv = new Dotenv(true);
451-
$values = $dotenv->parse('Foo=${Foo}');
452-
$this->assertSame('Bar', $values['Foo']);
453451

454-
putenv('Foo');
452+
try {
453+
$values = $dotenv->parse('Foo=${Foo}');
454+
$this->assertSame('Bar', $values['Foo']);
455+
} finally {
456+
putenv('Foo');
457+
}
455458
}
456459

457460
public function testNoDeprecationWarning()

0 commit comments

Comments
 (0)