-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed type error with adding new retention rule #178
Conversation
/backport to stable24 |
b46edbf
to
02ed0ca
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@@ -85,7 +85,7 @@ public function run($argument): void { | |||
// Validate if tag still exists | |||
$tag = $argument['tag']; | |||
try { | |||
$this->tagManager->getTagsByIds($tag); | |||
$this->tagManager->getTagsByIds((string) $tag); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this maybe also be done in the createNamedParameter call? or once line 86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, because the retention code is int based. Only the TagManager code is string based although it casts to int afterwards itself as the DB is int for oc_systemtags* tables as well...
Repushing #174 so CI runs
Fix #175
Fix #172