Skip to content

Firefly III: a personal finances manager

Change a newly-deprecated array access

Pascal Jungblute5fff5322133
diff --git a/app/Support/Import/Routine/File/ImportableConverter.php b/app/Support/Import/Routine/File/ImportableConverter.php
index 5681bce30b..51ffb39c94 100644
--- a/app/Support/Import/Routine/File/ImportableConverter.php
+++ b/app/Support/Import/Routine/File/ImportableConverter.php
@@ -142,7 +142,7 @@ class ImportableConverter
try {
// add exclamation mark for better parsing. http://php.net/manual/en/datetime.createfromformat.php
$dateFormat = $this->config['date-format'] ?? 'Ymd';
- if ('!' !== $dateFormat{0}) {
+ if ('!' !== $dateFormat[0]) {
$dateFormat = '!' . $dateFormat;
}
$object = Carbon::createFromFormat($dateFormat, $date);