Skip to content

Split File::__construct() input types into own constructor methods #1494

@olivervogel

Description

@olivervogel

The constructor of File::class takes a mixed argument which can be string, resource or null.

To improve organization __construct() should only take the raw data of type string and Stringable. A new static constructor method fromStream() will handle the instantiaton from stream resources.

Affects also EncodedImage::class and Profile::class

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions