PHP8.2 with Nextcloud 25.0.2

Hi,
I did run Nextcloud 25 and bullseye (debian 11).
And wanted to go up one release for both.

So I did upgrade my debian to bookworm (debian 12).

Debian 12 install php 8.2.7, and my nextcloud was stuck saying that it was not compatible.
Debian 12 does not enable the installation of a lower release of php.

So I did apply a patch on versioncheck.php, by changing ‘PHP_VERSION_ID >= 80200’ to ‘PHP_VERSION_ID >= 80300’ and run the upgrade for nextcloud.

It did work, and saved me from a difficult situation.
I am now running Debian 12, php 8.2 and Nextcloud 26…

Thanks.