Change string indexing from {0} to [0] (deprecated in PHP 7.4)

This commit is contained in:
Lőrinczy, Zsigmond
2019-11-09 20:46:53 +01:00
committed by Frédéric Guillot
parent 6c08225f76
commit 35602c0880
8 changed files with 9 additions and 9 deletions

View File

@@ -94,7 +94,7 @@ class Csv
{
if (! empty($value)) {
$value = trim(strtolower($value));
return $value === '1' || $value{0} === 't' || $value{0} === 'y' ? 1 : 0;
return $value === '1' || $value[0] === 't' || $value[0] === 'y' ? 1 : 0;
}
return 0;