Problem/Motivation
Drupal has a hook_requirements that detects a PHP version for an OPcache bug. The detection seems to be invalid.
8.1.23 (more information)
PHP 8.1.23 has an OPcache bug that can cause fatal errors with class autoloading. This can be fixed by upgrading to PHP 8.1.6 or later. See PHP's version support documentation and the Drupal PHP requirements page for more information.
I've assumed system.module component, but would need checking.
Steps to reproduce
Drupal 10.2 clean install, on PHP 8.1.23, and visit the status report.