mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Merge pull request #3381 from planardothum/shell-requires-cli
Add check to abort if $argv is undefined.
This commit is contained in:
commit
00be120e7a
1 changed files with 1 additions and 0 deletions
|
@ -323,6 +323,7 @@ class ShellDispatcher {
|
|||
protected function _parsePaths($args) {
|
||||
$parsed = array();
|
||||
$keys = array('-working', '--working', '-app', '--app', '-root', '--root');
|
||||
$args = (array)$args;
|
||||
foreach ($keys as $key) {
|
||||
while (($index = array_search($key, $args)) !== false) {
|
||||
$keyname = str_replace('-', '', $key);
|
||||
|
|
Loading…
Add table
Reference in a new issue