HIEPHOANGVAN this seems to be the same error as shared here https://discuss.flarum.org/d/32156-php-82-support
It seems like one of our dependencies doesn't officially support PHP 8.2 yet. Because we use the older version of some dependencies it's possible that the error will never go away until Flarum updates that dependency.
I've seen in previous discussions that some people report Flarum working fine on PHP 8.2, so you could try to proceed with --ignore-platform-req=php
if you want to install Flarum on PHP 8.2 anyway.
Otherwise I would recommend you downgrade to PHP 8.1 for the time being if that's an option for you.