We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a385e47 commit 2f891edCopy full SHA for 2f891ed
src/Anchu/Ftp/Ftp.php
@@ -122,7 +122,7 @@ public function getDirListingDetailed($directory = '.')
122
$item['time']
123
) = $chunks;
124
125
- $item['type'] = $chunks[0]{0} === 'd' ? static::TYPE_DIR : static::TYPE_FILE;
+ $item['type'] = $chunks[0][0] === 'd' ? static::TYPE_DIR : static::TYPE_FILE;
126
array_splice($chunks, 0, 8);
127
128
$items[implode(" ", $chunks)] = $item;
0 commit comments