From 9991d34a56f615a7c0f44e033e3092a6fc0283ae Mon Sep 17 00:00:00 2001 From: Jeroen van den Enden Date: Mon, 21 Oct 2024 23:33:32 +0000 Subject: [PATCH] Update docs --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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