Skip to content

Commit 2f891ed

Browse files
Fix deprecated string offset access syntax with curly braces (harishanchu#78)
closes harishanchu#77
1 parent a385e47 commit 2f891ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Anchu/Ftp/Ftp.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function getDirListingDetailed($directory = '.')
122122
$item['time']
123123
) = $chunks;
124124

125-
$item['type'] = $chunks[0]{0} === 'd' ? static::TYPE_DIR : static::TYPE_FILE;
125+
$item['type'] = $chunks[0][0] === 'd' ? static::TYPE_DIR : static::TYPE_FILE;
126126
array_splice($chunks, 0, 8);
127127

128128
$items[implode(" ", $chunks)] = $item;

0 commit comments

Comments
 (0)