Skip to content

Commit 615bdb6

Browse files
authored
Merge pull request #174 from jrfnl/feature/php-8.1-fix-passing-null-to-non-nullable
PHP 8.1: fix "passing null to non-nullable"
2 parents 2d1da47 + b70a964 commit 615bdb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/table/Ascii.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function row( array $row ) {
137137
$extra_rows = array_fill( 0, count( $row ), array() );
138138

139139
foreach( $row as $col => $value ) {
140-
140+
$value = $value ?: '';
141141
$value = str_replace( array( "\r\n", "\n" ), ' ', $value );
142142

143143
$col_width = $this->_widths[ $col ];

0 commit comments

Comments
 (0)