Skip to content

Commit

Permalink
Allow EncodedImage::class to be created from resource
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Sep 13, 2024
1 parent d0e20c5 commit c4df8ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EncodedImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ class EncodedImage extends File implements EncodedImageInterface
/**
* Create new instance
*
* @param string $data
* @param string|resource $data
* @param string $mediaType Deprecated parameter, will be removed
*/
public function __construct(
string $data,
mixed $data,
protected string $mediaType = 'application/octet-stream' // deprecated
) {
if ($mediaType !== 'application/octet-stream') {
Expand Down

0 comments on commit c4df8ed

Please sign in to comment.