Skip to content

Commit

Permalink
feat: IndexSchema2xDocument::setMetaString must also accept arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Mar 7, 2024
1 parent b32ddec commit 5f30c8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/Service/Indexer/IndexSchema2xDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ class IndexSchema2xDocument extends Document implements IndexDocument
*/
private array $metaString = [];

public function setMetaString(string $name, string $value): void
/**
* @param string $name
* @param string|string[] $value
* @return void
*/
public function setMetaString(string $name, string|array $value): void
{
$this->metaString[$name] = $value;

Check failure on line 135 in src/Service/Indexer/IndexSchema2xDocument.php

View workflow job for this annotation

GitHub Actions / verify / verify

Property Atoolo\Search\Service\Indexer\IndexSchema2xDocument::$metaString (array<string, string>) does not accept array<string, array<string>|string>.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ private function idWithoutSignature(string $id): int
* - https://gitlab.sitepark.com/customer-projects/stadtundland/blob/develop/stadtundland-module/src/publish/php/SP/Stadtundland/Component/Expose.php#L38
* - https://gitlab.sitepark.com/customer-projects/stadtundland/blob/develop/stadtundland-module/src/publish/php/SP/Stadtundland/Component/PurchaseExpose.php#L38
* - https://gitlab.sitepark.com/ies-modules/citycall/blob/develop/citycall-module/src/main/php/src/SP/CityCall/Component/Intro.php#L51
* - https://gitlab.sitepark.com/ies-modules/citycall/blob/develop/citycall-module/src/main/php/src/SP/CityCall/Controller/Environment.php#L76
* - https://gitlab.sitepark.com/ies-modules/sitekit-real-estate/blob/develop/src/publish/php/SP/RealEstate/Component/Expose.php#L47
* - https://gitlab.sitepark.com/sitekit/xzufi-php/-/blob/develop/php/SP/Xzufi/Renderer/SolrData.php?ref_type=heads#L78
*/

private function getLocaleFromResource(Resource $resource): string
Expand Down

0 comments on commit 5f30c8b

Please sign in to comment.