From f6561babc139000fd14dee51fcdd564c34a05313 Mon Sep 17 00:00:00 2001 From: Gareth Ellis Date: Tue, 14 May 2019 14:19:31 +0100 Subject: [PATCH] Uses array_merge() in Pdf::addOptions() --- src/Pdf.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Pdf.php b/src/Pdf.php index e6eb689..8635667 100755 --- a/src/Pdf.php +++ b/src/Pdf.php @@ -39,9 +39,10 @@ public function setOptions(array $options) : self public function addOptions(array $options) : self { - foreach ($this->parseOptions($options) as $option) { - $this->options[] = $option; - } + $this->options = array_merge( + $this->options, + $this->parseOptions($options) + ); return $this; }