BetterSearch Plugin - Creation of dynamic property Kirby\Cms\Page::$searchHits is deprecated

Just upgraded to PHP 8.2 and we are getting errors in the BetterSearch plugin. I’ve added an issue on the plugins’ Github page, but does anyone have any ideas?

Fails in:
site/plugins/kirby-bettersearch/src/bettersearch.php
line 33
$page->searchHits = 0;

Hi @AudioBear, I’ve pushed a PR that solves this issue. You could use it until a new release might come along.

Thanks @Bogdan_Condorachi, that fixed the issue & for everyone else there is now an update for this plugin on GitHub: