Skip to content

Commit 298f968

Browse files
committed
Fix incorrect assignment in if statement
fixes #56
1 parent ddd9c85 commit 298f968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Svg/Surface/SurfacePDFLib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public function setStyle(Style $style)
315315
$this->style = $style;
316316
$canvas = $this->canvas;
317317

318-
if ($stroke = $style->stroke && is_array($style->stroke)) {
318+
if (is_array($style->stroke) && $stroke = $style->stroke) {
319319
$canvas->setcolor(
320320
"stroke",
321321
"rgb",
@@ -326,7 +326,7 @@ public function setStyle(Style $style)
326326
);
327327
}
328328

329-
if ($fill = $style->fill && is_array($style->fill)) {
329+
if (is_array($style->fill) && $fill = $style->fill) {
330330
$canvas->setcolor(
331331
"fill",
332332
"rgb",

0 commit comments

Comments
 (0)