Skip to content

Fix setTags() reference error in jeeApi & plan3d#3408

Open
Salvialf wants to merge 3 commits into
developfrom
fix/setTags-ref
Open

Fix setTags() reference error in jeeApi & plan3d#3408
Salvialf wants to merge 3 commits into
developfrom
fix/setTags-ref

Conversation

@Salvialf

Copy link
Copy Markdown
Contributor

Context

Following PR #3407, two additional calls to scenarioExpression::setTags() were found where a function result was passed directly as the first argument, which is declared by reference (&$_expression). This triggers a PHP "Only variables can be passed by reference" notice.

Changes

  • core/api/jeeApi.php: remove the trim() wrapper around $value before passing it to setTags (the function already trims its argument internally on line 1263)
  • core/class/plan3d.class.php: store the result of getConfiguration() in a local variable before passing it to setTags

@Salvialf Salvialf added the changelog-fix Use to generate release notes / changelog To be apply on PR label Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-fix Use to generate release notes / changelog To be apply on PR Need review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant