Skip to content

[3.0]: SVG not working properly for avatars #9212

@sbulen

Description

@sbulen

Basic Information

Trying to use an SVG avatar, you get:

Typed property SMF\Graphics\Image::$type must not be accessed before initialization

Doesn't work on any PHP version I've tried.

Note PHP internally supports SVG in PHP 8.5+. IMAGETYPE_SVG = 21... We need to fold that into the 3.0 logic.

This is separate, and unrelated to #9115 for 2.1.

Steps to reproduce

Expected result

No response

Actual result

No response

Version/Git revision

3.0 Alpha 4 - current GH

Database Engine

All

Database Version

8.4.4

PHP Version

8.4.5, 8.5.3

Logs

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions