Skip to content
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

[stable30] fix(translation): Fix string concatenation in LDAP endpoint #51285

Merged
merged 4 commits into from
Mar 5, 2025

Conversation

nickvergessen
Copy link
Member

Backport #51071

@nickvergessen nickvergessen added the 3. to review Waiting for reviews label Mar 5, 2025
@nickvergessen nickvergessen added this to the Nextcloud 30.0.7 milestone Mar 5, 2025
@nickvergessen nickvergessen self-assigned this Mar 5, 2025
@nickvergessen nickvergessen requested a review from skjnldsv as a code owner March 5, 2025 15:51
@nickvergessen
Copy link
Member Author

/backport! bc1c497 7abb572 to stable29

@nickvergessen
Copy link
Member Author

/compile /

@@ -98,8 +98,7 @@
$setParameters = [];
$configuration->setConfiguration($cfg, $setParameters);
if (!in_array($key, $setParameters)) {
\OC_JSON::error(['message' => $l->t($key.
' Could not set configuration %s', $setParameters[0])]);
\OC_JSON::error(['message' => $l->t('Could not set configuration %1$s to %2$s', [$key, $setParameters[0]])]);

Check notice

Code scanning / Psalm

DeprecatedMethod Note

The method OC_JSON::error has been marked as deprecated
@@ -98,8 +98,7 @@
$setParameters = [];
$configuration->setConfiguration($cfg, $setParameters);
if (!in_array($key, $setParameters)) {
\OC_JSON::error(['message' => $l->t($key.
' Could not set configuration %s', $setParameters[0])]);
\OC_JSON::error(['message' => $l->t('Could not set configuration %1$s to %2$s', [$key, $setParameters[0]])]);

Check notice

Code scanning / Psalm

PossiblyNullArrayAccess Note

Cannot access array value on possibly null variable $setParameters of type array<array-key, mixed>|null
Signed-off-by: nextcloud-command <[email protected]>
@nickvergessen nickvergessen changed the title fix(translation): Fix string concatenation in LDAP endpoint [stable30] fix(translation): Fix string concatenation in LDAP endpoint Mar 5, 2025
Signed-off-by: Joas Schilling <[email protected]>
@nickvergessen nickvergessen force-pushed the backport/51071/stable30 branch from 8474ec6 to b9b9dc9 Compare March 5, 2025 16:08
@AndyScherzinger AndyScherzinger merged commit 08aa641 into stable30 Mar 5, 2025
176 checks passed
@AndyScherzinger AndyScherzinger deleted the backport/51071/stable30 branch March 5, 2025 19:49
@blizzz blizzz mentioned this pull request Mar 5, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants