Shouldn't it be svg in README.md at $qrCode->setWriterByName('png');, since with png the following (a few lines further down) doesn't make sense - right? $qrCode->setWriterOptions(['exclude_xml_declaration' => true]);
Add a full list of available writers (and maybe their options) to README.md
Shouldn't it be
svg
in README.md at$qrCode->setWriterByName('png');
, since withpng
the following (a few lines further down) doesn't make sense - right?$qrCode->setWriterOptions(['exclude_xml_declaration' => true]);
Add a full list of available writers (and maybe their options) to README.md
What about using
const
s for the writer names, e.g. at https://github.com/endroid/qr-code/blob/master/src/Writer/SvgWriter.php#L150:return self::WRITER_SVG;