After upgrading to Drupal 9.2.0 using Composer I sometime get the following error.
Deprecated function: Required parameter $bubbleable_metadata follows optional parameter $data in require_once() (line 276 of core/lib/Drupal/Core/Extension/ModuleHandler.php).
require_once() (Line: 276)
Drupal\Core\Extension\ModuleHandler->loadInclude('token', 'inc', 'token.tokens') (Line: 214)
token_module_implements_alter(Array, 'update_projects_alter', NULL) (Line: 539)
Drupal\Core\Extension\ModuleHandler->alter('module_implements', Array, 'update_projects_alter') (Line: 641)
Drupal\Core\Extension\ModuleHandler->buildImplementationInfo('update_projects_alter') (Line: 590)
Drupal\Core\Extension\ModuleHandler->getImplementationInfo('update_projects_alter') (Line: 328)
Drupal\Core\Extension\ModuleHandler->getImplementations('update_projects_alter') (Line: 481)
Drupal\Core\Extension\ModuleHandler->alter('update_projects', Array) (Line: 153)
Drupal\update\UpdateManager->getProjects() (Line: 284)
update_get_available() (Line: 38)
update_requirements('runtime') call_user_func_array('update_requirements', Array) (Line: 403)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array) (Line: 109)
Drupal\system\SystemManager->listRequirements() (Line: 49)
Drupal\system\Controller\SystemInfoController->status()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber{closure}() (Line: 578)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 716)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
I found critical errors after update to drupal core 9.1.0 which suggests that updating the Token module should fix it, but I'm already using version 8.x-1.9.
I tried changing the PHP version (7.3, 7.4, and 8.0), clearing the cache, and running update.php, but this didn't fix the issue.