Skip to content

Commit

Permalink
Cast possible null values to string to prevent deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rojtjo committed Jul 17, 2023
1 parent dcde07a commit 6fe4da1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Request/BrowseData.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ public function addColumn(BrowseColumn $column)
$columnElement = $this->createElement('column');

$columnElement->appendChild($this->createElement('field', $column->getField()));
$columnElement->appendChild($this->createElement('label', $column->getLabel()));
$columnElement->appendChild($this->createElement('label', (string) $column->getLabel()));
$columnElement->appendChild($this->createElement('visible', Util::formatBoolean($column->isVisible())));
$columnElement->appendChild($this->createElement('ask', Util::formatBoolean($column->isAsk())));
$columnElement->appendChild($this->createElement('operator', $column->getOperator()->getValue()));
$columnElement->appendChild($this->createElement('from', $column->getFrom()));
$columnElement->appendChild($this->createElement('to', $column->getTo()));
$columnElement->appendChild($this->createElement('from', (string) $column->getFrom()));
$columnElement->appendChild($this->createElement('to', (string) $column->getTo()));

$this->columnsElement->appendChild($columnElement);
}
Expand Down

0 comments on commit 6fe4da1

Please sign in to comment.