Skip to content

Commit

Permalink
Merge pull request #339 from owncloud/suppress-warnings-everywhere
Browse files Browse the repository at this point in the history
Suppress all warning from occ
  • Loading branch information
LukasReschke committed Apr 26, 2016
2 parents 2419b22 + 12390b4 commit f86457f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/OccRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(Locator $locator){

public function run($args){
$occPath = $this->locator->getPathToOccFile();
$cmd = "php $occPath $args";
$cmd = "php $occPath --no-warnings $args";
$process = new Process($cmd);
$process->setTimeout(null);
$process->run();
Expand All @@ -53,7 +53,7 @@ public function run($args){
}

public function runJson($args){
$plain = $this->run('--no-warnings ' . $args . ' --output "json"');
$plain = $this->run($args . ' --output "json"');
$decoded = json_decode($plain, true);
if (!is_array($decoded)){
throw new \UnexpectedValueException('Could not parse a response for ' . $args . '. Please check if the current shell user can run occ command. Raw output: ' . PHP_EOL . $plain);
Expand Down

0 comments on commit f86457f

Please sign in to comment.