Skip to content

Commit be1d0fb

Browse files
author
Michael Hoffmann
committed
Fix doc block and improve readability
1 parent ce8bc83 commit be1d0fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/ConsoleOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,11 @@ public function getOutputAs()
319319
*
320320
* @param int $type The output type to use. Should be one of the class constants.
321321
* @return void
322-
* @throws InvalidArgumentException in case of a not supported output type.
322+
* @throws \InvalidArgumentException in case of a not supported output type.
323323
*/
324324
public function setOutputAs($type)
325325
{
326-
if (in_array($type, [self::RAW, self::PLAIN, self::COLOR], true) === false) {
326+
if (!in_array($type, [self::RAW, self::PLAIN, self::COLOR], true)) {
327327
throw new InvalidArgumentException(sprintf('Invalid output type "%s".', $type));
328328
}
329329

0 commit comments

Comments
 (0)