Skip to content

Commit ae7e228

Browse files
committed
Set umask(1000) when debug is true
Applies #889 to the PHPUnit recipe.
1 parent defe987 commit ae7e228

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

phpunit/phpunit/10.0/tests/bootstrap.php

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

0 commit comments

Comments
 (0)