This wasn’t a good idea, imho. Debian Testing is not suitable for a productive server. See here. Especially the following line would be reason enough for me not to use it for hosting web apps like Nextcloud:
Compared to stable and unstable, next-stable testing has the worst security update speed. Don’t prefer testing if security is a concern.
Also, I highly recommend to use apt-pinning. Otherwise there’s a big change that PHP will be upgraded to 8.3 at some point in the future, before Nextcloud is ready for it.
Updated is not what you might think in this case. The intention of production Debian is to use stable with a feature called pinning when you would want a newer package. In truth, I’ve never needed to pin any package when you can already add a developer PPA repository for things like PHP versions. You didn’t actually need to leave stable release in order to use PHP 8.2, or any other package of your choice.
Keep in mind that Nextcloud is dependent on an application stack, which means they cannot simply use the latest of any given package. Such changes put you directly into alpha tester status as opposed to production ready, because this platform doesn’t move quite that fast.