Skip to content

Commit

Permalink
Fixed --no-redirect option does not exist error
Browse files Browse the repository at this point in the history
* Add input definition for --no-redirect for build command

* import Symfony\Component\Console\Input\InputOption class

* Remove redundant phpdoc

* Remove redundant arguments from variables after use in autoload.php

* Add defensive checks for arguments
  • Loading branch information
liamjtoohey committed Mar 4, 2020
1 parent be584da commit 09cb623
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
require_once __DIR__ . '/../../autoload.php';
}
unset($autoloadFile);
if (isset($argv)) {
$argv = array_diff($argv, ['--no-redirect']);
}
if (isset($_SERVER['argv'])) {
$_SERVER['argv'] = array_diff($_SERVER['argv'], ['--no-redirect']);
}

// @codingStandardsIgnoreStart

Expand Down

0 comments on commit 09cb623

Please sign in to comment.