mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-25 10:20:29 -06:00
Merge pull request #2932 from pascalj/deprecated-array-access
Change a newly-deprecated array access
This commit is contained in:
commit
c0e991e096
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user