diff --git a/src/Picturesque.php b/src/Picturesque.php index 4d45c1d..ecfb6c5 100644 --- a/src/Picturesque.php +++ b/src/Picturesque.php @@ -392,10 +392,8 @@ private function makeSourcesForBreakpoints(): array $format = $breakpoint[1]; $breakpoint = (string) $breakpoint[0]; - if ($this->breakpoints->get($breakpoint)) { - return $this->makeSource( - $px, $format, $breakpoint - ); + if ($srcData = $this->breakpoints->get($breakpoint)) { + return $this->makeSource($srcData, $format, $breakpoint); } }) ->filter()