I've been getting a deprecation notice since upgrading to PHP 8.1 that states:
Deprecated function: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\graphql\Routing\QueryRouteEnhancer->extractBody() (line 80 of modules/contrib/graphql/src/Routing/QueryRouteEnhancer.php).
I tracked it down to the fact that the RouteEnhancer in the graphQL module is expecting a 'content-type' header which isn't added to the route when \Drupal\route_basic_auth\Routing\RouteHelper rebuilds the current route using
$requestUrlObject = Url::fromUserInput($currentPath);
which doesn't re-attach all the existing headers.
Is there a particular reason a custom RouteHelper was created instead of using the current_route_match service to get the route name? Using that service doesn't trigger RouteEnhancers.
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.