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
The constructor of
File::classtakes amixedargument which can bestring,resourceornull.To improve organization
__construct()should only take the raw data of typestringandStringable. A new static constructor methodfromStream()will handle the instantiaton from stream resources.Affects also
EncodedImage::classandProfile::class