Closed sten closed 1 month ago
The $filters arg of hasMedia does not allow the callable type, while it just calls getMedia which does allow it.
public function hasMedia(string $collectionName = 'default', array $filters = []): bool { return count($this->getMedia($collectionName, $filters)) ? true : false; } /** * Get media collection by its collectionName. */ public function getMedia(string $collectionName = 'default', array|callable $filters = []): MediaCollections\Models\Collections\MediaCollection { //omitted }
Good spot. Thank you!
The $filters arg of hasMedia does not allow the callable type, while it just calls getMedia which does allow it.