Skip to content

Conversation

@st3iny
Copy link
Member

@st3iny st3iny commented Mar 25, 2025

  • Resolves: #

Summary

Fix Psalm warnings due to it not being able to detect the inheritance chain Template -> OC_Template -> ... -> ITemplate. The class OC_Template is not public and thus not available in nextcloud/ocp. The implements declaration is redundant but should fix Psalm.

Examples

MissingDependency - lib/Provider/WebAuthnLoginProvider.php:19:14 - OCP\Template depends on class or interface oc_template that does not exist

MethodSignatureMismatch - lib/Provider/WebAuthnProvider.php:32:7 - Method OCA\TwoFactorWebauthn\Provider\WebAuthnProvider::getTemplate with return type 'OCP\Template' is different to return type 'OCP\Template\ITemplate' of inherited method OCP\Authentication\TwoFactorAuth\IProvider::getTemplate

Checklist

@st3iny st3iny added bug 2. developing Work in progress labels Mar 25, 2025
@st3iny st3iny added this to the Nextcloud 32 milestone Mar 25, 2025
@st3iny st3iny self-assigned this Mar 25, 2025
@github-project-automation github-project-automation bot moved this to 🏗️ In progress in 💌 📅 👥 Groupware team Mar 25, 2025
@st3iny st3iny force-pushed the fix/template/implement-itemplate branch from 9b90c8e to c50c093 Compare March 31, 2025 12:19
@st3iny st3iny added 3. to review Waiting for reviews technical debt and removed 2. developing Work in progress labels Mar 31, 2025
@st3iny st3iny marked this pull request as ready for review March 31, 2025 12:20
@st3iny st3iny requested a review from a team as a code owner March 31, 2025 12:20
@st3iny st3iny requested review from come-nc, icewind1991, nfebe and provokateurin and removed request for a team March 31, 2025 12:20
Copy link
Contributor

@come-nc come-nc left a comment

Choose a reason for hiding this comment

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

Sure, but note that OCP\Template is deprecated and the correct fix is to not use it anymore.

@ChristophWurst ChristophWurst merged commit 12e66ba into master Mar 31, 2025
198 of 202 checks passed
@ChristophWurst ChristophWurst deleted the fix/template/implement-itemplate branch March 31, 2025 15:11
@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 💌 📅 👥 Groupware team Mar 31, 2025
@nextcloud-bot nextcloud-bot mentioned this pull request Aug 19, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
@skjnldsv skjnldsv added this to the Nextcloud 32 milestone Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

5 participants