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

chore: Adjust OCP\Server::get annotation to work with phpstan #50908

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Feb 19, 2025

Notices \OCP\Server::get does not correctly work with my IDE, seems the previous annoations were too complex and T was not referenced directly in a parameter, only in the constraint of S, so it was not getting resolved.

This annotation is simpler and also works with phpstan

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added 3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Feb 19, 2025
@susnux susnux added this to the Nextcloud 32 milestone Feb 27, 2025
@susnux susnux enabled auto-merge February 27, 2025 18:02
@susnux susnux merged commit 6900ac9 into master Feb 27, 2025
189 checks passed
@susnux susnux deleted the chore/server-annotations branch February 27, 2025 21:23
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 ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants