Skip to content

Commit

Permalink
fixup! IBX-7579:Richtext: Rows are added to ezurl_object_link on ever…
Browse files Browse the repository at this point in the history
…y save
  • Loading branch information
vidarl committed Jun 19, 2024
1 parent e6f6d4e commit 0a3c480
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,17 @@ public function insertUrl($url)
/**
* Return a list of URLs used by the given field and version.
*
* @return bool[] An array of URLs, with urls as keys
* array<string, boolean> An array of URLs, with urls as keys
*/
public function getUrlsFromUrlLink(int $fieldId, int $versionNo): array

Check failure on line 86 in src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php

View workflow job for this annotation

GitHub Actions / Tests (7.3)

Method EzSystems\EzPlatformRichText\eZ\FieldType\RichText\RichTextStorage\Gateway::getUrlsFromUrlLink() return type has no value type specified in iterable type array.

Check failure on line 86 in src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php

View workflow job for this annotation

GitHub Actions / Tests (7.4)

Method EzSystems\EzPlatformRichText\eZ\FieldType\RichText\RichTextStorage\Gateway::getUrlsFromUrlLink() return type has no value type specified in iterable type array.

Check failure on line 86 in src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php

View workflow job for this annotation

GitHub Actions / Tests (8.0)

Method EzSystems\EzPlatformRichText\eZ\FieldType\RichText\RichTextStorage\Gateway::getUrlsFromUrlLink() return type has no value type specified in iterable type array.

Check failure on line 86 in src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php

View workflow job for this annotation

GitHub Actions / Tests (8.1)

Method EzSystems\EzPlatformRichText\eZ\FieldType\RichText\RichTextStorage\Gateway::getUrlsFromUrlLink() return type has no value type specified in iterable type array.
{
return $this->urlGateway->getUrlsFromUrlLink($fieldId, $versionNo);
$rows = $this->urlGateway->getUrlsFromUrlLink($fieldId, $versionNo);

Check failure on line 88 in src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php

View workflow job for this annotation

GitHub Actions / Tests (7.3)

Call to an undefined method eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway::getUrlsFromUrlLink().

Check failure on line 88 in src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php

View workflow job for this annotation

GitHub Actions / Tests (7.4)

Call to an undefined method eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway::getUrlsFromUrlLink().

Check failure on line 88 in src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php

View workflow job for this annotation

GitHub Actions / Tests (8.0)

Call to an undefined method eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway::getUrlsFromUrlLink().

Check failure on line 88 in src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php

View workflow job for this annotation

GitHub Actions / Tests (8.1)

Call to an undefined method eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway::getUrlsFromUrlLink().
$result = [];
foreach ($rows as $url) {
$result[$url] = true;
}

return $result;
}

/**
Expand Down

0 comments on commit 0a3c480

Please sign in to comment.