diff --git a/README.md b/README.md index c648f0e..66ef514 100644 --- a/README.md +++ b/README.md @@ -149,9 +149,12 @@ You can provide any writer options like this. ```php use Endroid\QrCode\Writer\SvgWriter; -$builder->writerOptions([ - SvgWriter::WRITER_OPTION_EXCLUDE_XML_DECLARATION => true -]); +$builder = new Builder( + writer: new SvgWriter(), + writerOptions: [ + SvgWriter::WRITER_OPTION_EXCLUDE_XML_DECLARATION => true + ] +); ``` ### Encoding