Skip to content

[Bug, EC] PEES-894: Video Editable getThumbnail throws Type Error when e.g. type is missing#18916

Merged
kingjia90 merged 1 commit into12.3from
fix-video-type
Jan 12, 2026
Merged

[Bug, EC] PEES-894: Video Editable getThumbnail throws Type Error when e.g. type is missing#18916
kingjia90 merged 1 commit into12.3from
fix-video-type

Conversation

@kingjia90
Copy link
Copy Markdown
Contributor

@kingjia90 kingjia90 commented Jan 12, 2026

Changes in this pull request

Resolves https://github.com/pimcore/service-operations/issues/321

Additional info

getVideoAsset()->getThumbnail() can return null

public function getThumbnail(string|Video\Thumbnail\Config $thumbnailName, array $onlyFormats = []): ?array
, so null coalescing it, also small refactor to be a one liner

@kingjia90 kingjia90 added this to the 12.3.1 milestone Jan 12, 2026
@kingjia90 kingjia90 self-assigned this Jan 12, 2026
@github-actions
Copy link
Copy Markdown

Review Checklist

  • Target branch (11.5 for bug fixes, others 12.x)
  • Tests (if it's testable code, there should be a test for it - get help)
  • Docs (every functionality needs to be documented, see here)
  • Migration incl. install.sql (e.g. if the database schema changes, ...)
  • Upgrade notes (deprecations, important information, migration hints, ...)
  • Label
  • Milestone

@kingjia90 kingjia90 merged commit acd877f into 12.3 Jan 12, 2026
13 checks passed
@kingjia90 kingjia90 deleted the fix-video-type branch January 12, 2026 14:20
@github-actions github-actions bot locked and limited conversation to collaborators Jan 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant