We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd9c85 commit 298f968Copy full SHA for 298f968
src/Svg/Surface/SurfacePDFLib.php
@@ -315,7 +315,7 @@ public function setStyle(Style $style)
315
$this->style = $style;
316
$canvas = $this->canvas;
317
318
- if ($stroke = $style->stroke && is_array($style->stroke)) {
+ if (is_array($style->stroke) && $stroke = $style->stroke) {
319
$canvas->setcolor(
320
"stroke",
321
"rgb",
@@ -326,7 +326,7 @@ public function setStyle(Style $style)
326
);
327
}
328
329
- if ($fill = $style->fill && is_array($style->fill)) {
+ if (is_array($style->fill) && $fill = $style->fill) {
330
331
"fill",
332
0 commit comments