ソースを参照

Fix doc block and improve readability

Michael Hoffmann 9 年 前
コミット
be1d0fb3f9
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/Console/ConsoleOutput.php

+ 2 - 2
src/Console/ConsoleOutput.php

@@ -319,11 +319,11 @@ class ConsoleOutput
      *
      * @param int $type The output type to use. Should be one of the class constants.
      * @return void
-     * @throws InvalidArgumentException in case of a not supported output type.
+     * @throws \InvalidArgumentException in case of a not supported output type.
      */
     public function setOutputAs($type)
     {
-        if (in_array($type, [self::RAW, self::PLAIN, self::COLOR], true) === false) {
+        if (!in_array($type, [self::RAW, self::PLAIN, self::COLOR], true)) {
             throw new InvalidArgumentException(sprintf('Invalid output type "%s".', $type));
         }