Skip to content

Commit c8cf4a7

Browse files
authored
Merge pull request #889 from fancyweb/symfony/phpunit-bridge/umask-debug
symfony/phpunit-bridge: set umask(0000) when debug is true
2 parents e81834c + 57e4d9e commit c8cf4a7

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

symfony/phpunit-bridge/3.3/tests/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
1010
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
1111
}
12+
13+
if ($_SERVER['APP_DEBUG']) {
14+
umask(0000);
15+
}

symfony/phpunit-bridge/4.1/tests/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
1010
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
1111
}
12+
13+
if ($_SERVER['APP_DEBUG']) {
14+
umask(0000);
15+
}

symfony/phpunit-bridge/4.3/tests/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
1010
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
1111
}
12+
13+
if ($_SERVER['APP_DEBUG']) {
14+
umask(0000);
15+
}

symfony/phpunit-bridge/5.1/tests/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
1010
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
1111
}
12+
13+
if ($_SERVER['APP_DEBUG']) {
14+
umask(0000);
15+
}

symfony/phpunit-bridge/5.3/tests/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
1010
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
1111
}
12+
13+
if ($_SERVER['APP_DEBUG']) {
14+
umask(0000);
15+
}

0 commit comments

Comments
 (0)