Skip to content

Commit

Permalink
Fix strict type-hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Trismegiste committed Jul 11, 2022
1 parent 54eb1ef commit 3f251fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Writer/ConsoleWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class ConsoleWriter implements WriterInterface
{

protected $darkmode;
protected bool $darkmode;

/**
* Ctor
Expand Down
6 changes: 3 additions & 3 deletions src/Writer/Result/ConsoleResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class ConsoleResult extends AbstractResult
3 => ' '
];

protected $matrix;
protected $twoblocks;
protected MatrixInterface $matrix;
protected array $twoblocks;

/**
* @param MatrixInterface $matrix
Expand Down Expand Up @@ -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();
}

}

0 comments on commit 3f251fb

Please sign in to comment.