Argument 2 passed to Bnomei\Srcset::__construct() must be of the type array, null given, called in /www/site/plugins/kirby3-srcset/index.php on line 21
It works fine if i use the image() function instead of the lazysrcset();
It’s probably me missing something super basic here, but any help would be greatly appreciated
@bnomei I actually get the same error, your constructor in /classes/Bnomei/Srcset.php expects an array, so if I pass an empty array or a string as argument to the file method, it works. But the constructor doesn’t cover the case null is passed.