Skip to content
Code-Schnipsel Gruppen Projekte

Update 'next-3.x' with latest changes from 'main'

Zusammengeführt QUIQQER Stabilization schlägt vor, main in next-3.x zu mergen.
2 Dateien
+ 8
8
Änderungen vergleichen
  • Nebeneinander
  • In der Reihe
Dateien
2
  • This commit addresses the issue where a call to the undefined method `getImages` on the possible
    `false` in `Carousel.php` was causing an error.
    A check is now in place before calling the method. Consequently, the phpstan-baseline.neon file has
    also been updated to remove the now unnecessary error suppression.
    
    Related: #28
@@ -134,9 +134,13 @@ public function getBody(): string
break;
}
$images = $Folder->getImages([
'order' => $order
]);
$images = [];
if (method_exists($Folder, 'getImages')) {
$images = $Folder->getImages([
'order' => $order
]);
}
if ($this->getAttribute('max') && count($images) > $this->getAttribute('max')) {
$images = array_slice($images, 0, $this->getAttribute('max'));