"Change the PHP version to one supported by your version of Kirby"

Hi!

I tried to reinstall php to fix an issue with intl, and now I get the above error message.
Typing php -v in the terminal gives me PHP 8.4.5 which should be supported right? I installed php with homebrew.

It depends on your Kirby version, we added support for PHP 8.4 with Kirby 4.6.0. If you use an older version, you need to upgrade Kirby or change to a supported PHP version for your Kirby version.

You can find a PHP/Kirby version matrix here: Requirements | Kirby CMS

Yes, my bad, I sould have mentioned. I am running version 4.6.1, so this is not the problem. Any ideas?

Bizarrely, downloading a new plainkit and replacing my kirby folder with a new one seems to have worked.