diff --git a/src/Writer/ConsoleWriter.php b/src/Writer/ConsoleWriter.php index 9c1d05c..2de667e 100644 --- a/src/Writer/ConsoleWriter.php +++ b/src/Writer/ConsoleWriter.php @@ -16,7 +16,7 @@ class ConsoleWriter implements WriterInterface { - protected $darkmode; + protected bool $darkmode; /** * Ctor diff --git a/src/Writer/Result/ConsoleResult.php b/src/Writer/Result/ConsoleResult.php index 1a98ee8..a4c9575 100644 --- a/src/Writer/Result/ConsoleResult.php +++ b/src/Writer/Result/ConsoleResult.php @@ -18,8 +18,8 @@ class ConsoleResult extends AbstractResult 3 => ' ' ]; - protected $matrix; - protected $twoblocks; + protected MatrixInterface $matrix; + protected array $twoblocks; /** * @param MatrixInterface $matrix @@ -58,7 +58,7 @@ public function getString(): string echo str_repeat($this->twoblocks[0], $side + 4) . PHP_EOL; // margin-bottom - return ob_get_clean(); + return (string) ob_get_clean(); } }