Skip to content

Refactored tag handling methods to support numerical ids - #65

Merged
adamwojs merged 1 commit into
mainfrom
numerical_ids
May 1, 2025
Merged

adamwojs merged 1 commit into
mainfrom
numerical_ids

Conversation

@adamwojs

@adamwojs adamwojs commented May 1, 2025 •

Copy link
Copy Markdown
Member
🎫 Issue IBX-XXXXX

Description:

Follow up for #63.

Issue detected by https://github.com/ibexa/fieldtype-page/actions/runs/14773790369/job/41478333517

    │  	[2025-05-01T10:26:13.389330+00:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Ibexa\HttpCache\Handler\TagHandler::Ibexa\HttpCache\Handler\{closure}(): Argument #1 ($locationId) must be of type string, null given" at TagHandler.php line 137 {"exception":"[object] (TypeError(code: 0): Ibexa\\HttpCache\\Handler\\TagHandler::Ibexa\\HttpCache\\Handler\\{closure}(): Argument #1 ($locationId) must be of type string, null given at /var/www/vendor/ibexa/http-cache/src/lib/Handler/TagHandler.php:137)"} []

For QA:

N/A

Documentation:

N/A

@sonarqubecloud

sonarqubecloud Bot commented May 1, 2025

Copy link
Copy Markdown

public function addLocationTags(array $locationIds): void
{
$this->addTags(array_map(static function (string $locationId): string {
$tags = array_map(static function (string|int|null $locationId): string {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Location generated for content preview have id = null.

@adamwojs
adamwojs merged commit 3dfa4ef into main May 1, 2025
@adamwojs
adamwojs deleted the numerical_ids branch May 1, 2025 13:49
@adamwojs

adamwojs commented May 1, 2025

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants