diff --git a/src/Plugin/Field/FieldFormatter/CSVFileFormatter.php b/src/Plugin/Field/FieldFormatter/CSVFileFormatter.php
index 579d1f2eb513a8ec3bbc5f0f919b66ff80ac3f78..17c6d31caa43023f390c3b562ed334fc91c5d04f 100644
--- a/src/Plugin/Field/FieldFormatter/CSVFileFormatter.php
+++ b/src/Plugin/Field/FieldFormatter/CSVFileFormatter.php
@@ -526,7 +526,7 @@ class CSVFileFormatter extends FileFormatterBase {
           }
 
           // Render HTML table from CSV file.
-          $file_name = $this->getFileSystem()->realpath($file->get('uri')->value) ?? $file->getFileUri();
+          $file_name = $this->getFileSystem()->realpath($file->get('uri')->value) ?: $file->getFileUri();
           $table_data = $this->readcsv($file_name, $field_name . '-' . $item_count, $item->getEntity()->id(), $item->description);
           $elements[$delta][$elemcount] = $table_data;