Uncaught throwable when installing Psalm in the starterkit

Hello,

I have found a bug in the starterkit.

  1. cd into my parked sites folder for Laravel Valet using the Terminal app.
  2. run composer create-project getkirby/starterkit
  3. cd starterkit
  4. composer require --dev vimeo/psalm
  5. ./vendor/bin/psalm --init

This results in (Psalm 5.25.0@01a8eb06b9e9cc6cfb6a320bf9fb14331919d505 crashed due to an uncaught Throwable).

If you follow the same steps using the plainkit, then the error does not happen.

Additionally, if you change class AlbumPage extends Pageclass AlbumPage extends \Kirby\CMS\Page on line 17 in site/models/album.php and do the equivalent on line 20 in site/models/note.php, then you can run ./vendor/bin/psalm --init on the starter kit without errors.