Skip to content

Commit

Permalink
Another PHP8 fix, for delimiter handling
Browse files Browse the repository at this point in the history
Change-Id: I62f0bae51623d826585e6189d7e973465847e75e
  • Loading branch information
yaronkoren authored and mszabo-wikia committed Mar 11, 2024
1 parent 39eca5c commit f16f15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/CargoFieldDescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public static function newFromDBArray( $descriptionData ) {

public function getDelimiter() {
// Make "\n" represent a newline.
return str_replace( '\n', "\n", $this->mDelimiter );
return str_replace( '\n', "\n", $this->mDelimiter ?? '' );
}

public function setDelimiter( $delimiter ) {
Expand Down

0 comments on commit f16f15c

Please sign in to comment.