Browse Source

Refactor as per review.

mscherer 9 years ago
parent
commit
b638f1d490
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Console/ConsoleOptionParser.php

+ 2 - 2
src/Console/ConsoleOptionParser.php

@@ -601,7 +601,7 @@ class ConsoleOptionParser
             return $options;
         }
 
-        if ($options['parser'] && is_object($options['parser'])) {
+        if ($options['parser'] instanceof self) {
             if ($options['parser']->getDescription() !== null) {
                 return $options;
             }
@@ -611,7 +611,7 @@ class ConsoleOptionParser
             return $options;
         }
 
-        if ($options['parser'] && is_array($options['parser'])) {
+        if (is_array($options['parser'])) {
             if (isset($options['parser']['description'])) {
                 return $options;
             }