Skip to content

Commit 4181bca

Browse files
committed
Fix deprecated curly brackets acess
1 parent 35a4b92 commit 4181bca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xlsxwriter.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ protected function writeCell(XLSXWriter_BuffererWriter &$file, $row_number, $col
291291
$file->write('<c r="'.$cell.'" s="'.$s.'" t="n"><v>'.self::convert_date_time($value).'</v></c>');
292292
} elseif (!is_string($value)) {
293293
$file->write('<c r="'.$cell.'" s="'.$s.'" t="n"><v>'.($value*1).'</v></c>');//int,float, etc
294-
} elseif ($value{0}!='0' && filter_var($value, FILTER_VALIDATE_INT)){ //excel wants to trim leading zeros
294+
} elseif ($value[0]!='0' && filter_var($value, FILTER_VALIDATE_INT)){ //excel wants to trim leading zeros
295295
$file->write('<c r="'.$cell.'" s="'.$s.'" t="n"><v>'.($value).'</v></c>');//numeric string
296-
} elseif ($value{0}=='='){
296+
} elseif ($value[0]=='='){
297297
$file->write('<c r="'.$cell.'" s="'.$s.'" t="s"><f>'.self::xmlspecialchars($value).'</f></c>');
298298
} elseif ($value!==''){
299299
$file->write('<c r="'.$cell.'" s="'.$s.'" t="s"><v>'.self::xmlspecialchars($this->setSharedString($value)).'</v></c>');

0 commit comments

Comments
 (0)