Skip to content

Commit 3b51624

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #488
2 parents 5f5c10c + fe0e993 commit 3b51624

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

phpunit/phpunit/4.7/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.7/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
66
backupGlobals="false"
77
colors="true"
88
bootstrap="tests/bootstrap.php"

symfony/framework-bundle/3.3/src/Kernel.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ public static function bootstrapEnv($env = null)
114114

115115
private static function loadEnv(Dotenv $dotenv, $path)
116116
{
117-
$dotenv->load($path);
117+
if (file_exists($path) || !file_exists($p = "$path.dist")) {
118+
$dotenv->load($path);
119+
} else {
120+
$dotenv->load($p);
121+
}
118122

119123
if (null === $env = isset($_SERVER['APP_ENV']) ? $_SERVER['APP_ENV'] : (isset($_ENV['APP_ENV']) ? $_ENV['APP_ENV'] : null)) {
120124
$dotenv->populate(array('APP_ENV' => $env = 'dev'));

symfony/phpunit-bridge/3.3/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
66
backupGlobals="false"
77
colors="true"
88
bootstrap="vendor/autoload.php"

0 commit comments

Comments
 (0)