Skip to content

Error when symbolic link is part of listed files #155

@flohw

Description

@flohw

Hi,

I get the following error when rendering a list of files which contains a symbolic link : array_key_exists(): Argument #2 ($array) must be of type array, null given (given when redering the list template, on File::isImage() call.

This is due to FileTypeService::preview not treating the link value returned by SplFileInfo::getType.

I will provide a PR for that issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions