mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-24 12:47:56 +00:00
:octocat: fixes/implements #223
This commit is contained in:
@@ -188,8 +188,8 @@ abstract class QROutputAbstract implements QROutputInterface{
|
||||
/**
|
||||
* Returns a base64 data URI for the given string and mime type
|
||||
*/
|
||||
protected function toBase64DataURI(string $data, string $mime):string{
|
||||
return sprintf('data:%s;base64,%s', $mime, base64_encode($data));
|
||||
protected function toBase64DataURI(string $data, string $mime = null):string{
|
||||
return sprintf('data:%s;base64,%s', ($mime ?? $this::MIME_TYPE), base64_encode($data));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user