fix type hint

This commit is contained in:
Robin Appelman 2019-02-06 17:53:32 +01:00
commit bd43cdecd0

View file

@ -158,7 +158,7 @@ class Share extends AbstractShare {
if ($path !== "" && $path !== "/") { if ($path !== "" && $path !== "/") {
$parent = dirname($path); $parent = dirname($path);
$dir = $this->dir($parent); $dir = $this->dir($parent);
$file = array_values(array_filter($dir, function(IFileInfo $info) use ($path) { $file = array_values(array_filter($dir, function(FileInfo $info) use ($path) {
return $info->getPath() === $path; return $info->getPath() === $path;
})); }));
if ($file) { if ($file) {