Skip to content

Image\ImageThumbnail and Video\ImageThumbnail getPath can return null - should return string #246

Description

@dpfaffenbauer

Affected Version

2026.2

Affected capability

Assets

Steps to reproduce

Upload Image or Video - delete file on storage and run generic-index - should be able to index file - but throws error:

Pimcore\Model\Asset\Video\ImageThumbnail::getPath(): Return value must be of type string, null returned or Pimcore\Model\Asset\Image::getWidth(): Return value must be of type int, string returned

Actual Behavior

throws php error

Expected Behavior

should throw exception? but still not a php error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Platform Version

    2026.2

    Affected capability

    Assets

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions