Update to Kirby 4.7.0

This commit is contained in:
Paul Nicoué 2025-04-21 18:57:21 +02:00
parent 02a9ab387c
commit ba25a9a198
509 changed files with 26604 additions and 14872 deletions

View file

@ -19,8 +19,6 @@ class FilePicker extends Picker
{
/**
* Extends the basic defaults
*
* @return array
*/
public function defaults(): array
{
@ -33,10 +31,9 @@ class FilePicker extends Picker
/**
* Search all files for the picker
*
* @return \Kirby\Cms\Files|null
* @throws \Kirby\Exception\InvalidArgumentException
*/
public function items()
public function items(): Files|null
{
$model = $this->options['model'];
@ -65,6 +62,9 @@ class FilePicker extends Picker
default => throw new InvalidArgumentException('Your query must return a set of files')
};
// filter protected and hidden pages
$files = $files->filter('isListable', true);
// search
$files = $this->search($files);