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

Summer cleanup of the federation app #33007

Merged
merged 3 commits into from
Jun 28, 2022
Merged

Conversation

CarlSchwan
Copy link
Member

  • Use IEventDispatcher instead of deprecated symfony dispatcher
  • Use LoggerInterface where possible
  • Use PHP 7.4 properties
  • Add type hinting where possible
  • Move federation hooks to a separate listener

Signed-off-by: Carl Schwan carl@carlschwan.eu

- Use IEventDispatcher instead of deprecated symfony dispatcher
- Use LoggerInterface where possible
- Use php 7.4 properties
- Add type hinting where possible
- Move federation hooks to a seperate listener

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
*
* @return array
* Get all trusted servers
* @return list<array{id: int, url: string, url_hash: string, shared_secret: string, status: int, sync_token: string}>

Check notice

Code scanning / Psalm

MoreSpecificReturnType

The declared return type 'list<array{id: int, shared_secret: string, status: int, sync_token: string, url: string, url_hash: string}>' for OCA\Federation\TrustedServers::getServers is more specific than the inferred return type 'list<array{id: int, shared_secret: null|string, status: int, sync_token: null|string, url: string, url_hash: string}>'
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

🐘

- Return type were not correct
- willReturn and with confusion

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan CarlSchwan merged commit 41e6e0c into master Jun 28, 2022
@CarlSchwan CarlSchwan deleted the cleanup/federation-app branch June 28, 2022 13:33
@CarlSchwan CarlSchwan mentioned this pull request Jul 1, 2022
4 tasks
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