Skip to content

Commit

Permalink
Não executar print caso esteja fora de uma execução CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
curruwilla authored Nov 8, 2023
1 parent 1f4e66b commit e6d8189
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Line.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ public function columnsSize(?array $columnsSize): Line
*/
public function print(): void
{
if (php_sapi_name() !== 'cli') {
return;
}

$this->textsInitial();

if ($this->columnsSize === null) {
Expand Down

0 comments on commit e6d8189

Please sign in to comment.