Commit bfec4ca5 authored by Lee Rowlands's avatar Lee Rowlands Committed by Adam G-H
Browse files

Issue #3325083 by larowlan: Fatal error: Declaration of...

Issue #3325083 by larowlan: Fatal error: Declaration of Drupal\jsonapi\Normalizer\JsonapiHypermediaImpostor\JsonapiHypermediaLinkCollectionNormalizer::normalize($link_collection, $format = null, array $context = []) must be compatible with parent
parent 34808035
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -10,7 +10,8 @@
    }
  ],
  "require": {
    "drupal/core": "^8.8 || ^9.0 || ^10"
    "drupal/core": "^8.8 || ^9.0 || ^10",
    "php": "^8"
  },
  "repositories": {
    "drupal": {
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ final class JsonapiHypermediaLinkCollectionNormalizer extends LinkCollectionNorm
  /**
   * {@inheritdoc}
   */
  public function normalize($link_collection, $format = NULL, array $context = []) {
  public function normalize($link_collection, $format = NULL, array $context = []): array|string|int|float|bool|\ArrayObject|NULL {
    assert($link_collection instanceof LinkCollection);
    // @todo: remove this render context once https://www.drupal.org/project/drupal/issues/3055889 lands.
    $render_context = new RenderContext();