Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Refactor as per review.
  • Loading branch information
dereuromark committed Jan 10, 2017
1 parent e0a4b9a commit b638f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/ConsoleOptionParser.php
Expand Up @@ -601,7 +601,7 @@ protected function _mergeSubcommandHelpToParserDescription($options)
return $options;
}

if ($options['parser'] && is_object($options['parser'])) {
if ($options['parser'] instanceof self) {
if ($options['parser']->getDescription() !== null) {
return $options;
}
Expand All @@ -611,7 +611,7 @@ protected function _mergeSubcommandHelpToParserDescription($options)
return $options;
}

if ($options['parser'] && is_array($options['parser'])) {
if (is_array($options['parser'])) {
if (isset($options['parser']['description'])) {
return $options;
}
Expand Down

0 comments on commit b638f1d

Please sign in to comment.