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

refactor core/Middleware #39176

Closed

Conversation

shdehnavi
Copy link
Contributor

Summary

The required adjustments have been made to the classes in the /core/Middleware namespace.

The improvements:

  • Adding return types
  • Adding throws types
  • Adding types to properties

Checklist

@solracsf solracsf added 3. to review Waiting for reviews technical debt labels Jul 6, 2023
@solracsf solracsf added this to the Nextcloud 28 milestone Jul 6, 2023
core/Middleware/TwoFactorMiddleware.php Outdated Show resolved Hide resolved
core/Middleware/TwoFactorMiddleware.php Outdated Show resolved Hide resolved
@shdehnavi shdehnavi requested a review from come-nc July 18, 2023 08:42
shdehnavi and others added 3 commits September 29, 2023 11:35
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
@come-nc
Copy link
Contributor

come-nc commented Oct 2, 2023

Error: core/Middleware/TwoFactorMiddleware.php:73:7: TypeDoesNotContainType: Cannot resolve types for $controller - OCP\AppFramework\Controller does not contain OCA\TwoFactorNextcloudNotification\Controller\APIController (see https://psalm.dev/056)

@shdehnavi shdehnavi closed this Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants