Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@torqdev
Copy link
Contributor

@torqdev torqdev commented May 14, 2025

The save version does not allow the user to pass in additional arguments to be used in the pre and post event listeners. This allows parameters to be passed into the saveVersion function which gets passed in with the core arguments that should be the same for both event listeners.

@torqdev torqdev changed the title Add arguments to the save version function. Feature: Add arguments to the save version function. May 14, 2025
@github-actions
Copy link

Review Checklist

  • Target branch (11.5 for bug fixes, others 12.x)
  • Tests (if it's testable code, there should be a test for it - get help)
  • Docs (every functionality needs to be documented, see here)
  • Migration incl. install.sql (e.g. if the database schema changes, ...)
  • Upgrade notes (deprecations, important information, migration hints, ...)
  • Label
  • Milestone

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 New Major Issues (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

*
*/
public function saveVersion(bool $setModificationDate = true, bool $saveOnlyVersion = true, ?string $versionNote = null, bool $isAutoSave = false): ?Model\Version
public function saveVersion(bool $setModificationDate = true, bool $saveOnlyVersion = true, ?string $versionNote = null, bool $isAutoSave = false, array $parameters = []): ?Model\Version
Copy link
Contributor

Choose a reason for hiding this comment

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

That's a BC break!

@kingjia90 kingjia90 added this to the 13.0.0 milestone Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants