fix: #3608182 Register impostor namespace as string

Summary

Fixes the Drupal 11.4 route rebuild warning by registering the JSON:API Extras impostor normalizer namespace as a string path instead of an array item.

Testing

  • ddev phpunit web/modules/contrib/jsonapi_extras/tests/src/Kernel/JsonapiExtrasServiceProviderTest.php
  • ddev phpunit web/modules/contrib/jsonapi_extras/tests/src/Kernel/DefaultDisabledResourceConfigTest.php web/modules/contrib/jsonapi_extras/tests/src/Kernel/Plugin/jsonapi/FieldEnhancer/ListFieldEnhancerTest.php web/modules/contrib/jsonapi_extras/tests/src/Kernel/JsonapiExtrasServiceProviderTest.php
  • ddev drush cr
  • ddev exec vendor/bin/phpcs web/modules/contrib/jsonapi_extras/src/JsonapiExtrasServiceProvider.php web/modules/contrib/jsonapi_extras/tests/src/Kernel/JsonapiExtrasServiceProviderTest.php

The full JSON:API Extras kernel directory still has unrelated existing EntityToJsonApiTest errors from the JSON:API response validator receiving a null Content-Type header.

Closes #3608182

AI-Generated: Yes (Used Codex 5.5 to diagnose the Drupal 11.3 to 11.4 regression, write the one-line fix and regression test, and prepare the MR. Reviewed by jrockowitz.)

Merge request reports

Loading