mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Change a newly-deprecated array access
PHP allowed array accesses with curly braces but deprecated the feature [1] with 7.4. With this change the CSV import will work with 7.4 without any errors or warnings. The change does not affect other versions. [1] https://wiki.php.net/rfc/deprecate_curly_braces_array_access
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user