Fixed new directories rights. Issues #86, #107.

This commit is contained in:
Dmitry Khomutov 2018-01-30 19:56:05 +07:00
parent 98226e5f82
commit 18880e8c21
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ class Pdepend extends Plugin
public function execute()
{
if (!file_exists($this->location)) {
mkdir($this->location, 0777, true);
mkdir($this->location, (0777 & ~umask()), true);
}
if (!is_writable($this->location)) {
throw new \Exception(sprintf('The location %s is not writable or does not exist.', $this->location));

View file

@ -148,7 +148,7 @@ class PhpUnit extends Plugin implements ZeroConfigPluginInterface
}
if (!file_exists($this->location) && $options->getOption('coverage')) {
mkdir($this->location, 0777, true);
mkdir($this->location, (0777 & ~umask()), true);
}
$arguments = $this->builder->interpolate($options->buildArgumentString());