diff --git a/composer.json b/composer.json index 1cb0f24..f3d215f 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "medienbaecker/kirby-modules", "description": "Easily add modules to your pages", - "version": "2.5.0", + "version": "2.6.0", "license": "MIT", "authors": [ { diff --git a/lib/models.php b/lib/models.php index e06393a..5a906c8 100644 --- a/lib/models.php +++ b/lib/models.php @@ -1,9 +1,11 @@ intendedTemplate()); } - public function parents() { + public function parents(): Pages { $parents = parent::parents(); return $parents->filter('slug', '!=', 'modules'); }