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 86642f2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 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,16 @@ 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().
foreach ($rows as $url) {
$result[$url] = true;
}

return $result;

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

View workflow job for this annotation

GitHub Actions / Tests (7.3)

Variable $result might not be defined.

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

View workflow job for this annotation

GitHub Actions / Tests (7.4)

Variable $result might not be defined.

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

View workflow job for this annotation

GitHub Actions / Tests (8.0)

Variable $result might not be defined.

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

View workflow job for this annotation

GitHub Actions / Tests (8.1)

Variable $result might not be defined.
}

/**
Expand Down

0 comments on commit 86642f2

Please sign in to comment.