Skip to content

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 [email protected]

@CarlSchwan CarlSchwan added this to the Nextcloud 25 milestone Jun 24, 2022
@CarlSchwan CarlSchwan self-assigned this Jun 24, 2022
- 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 <[email protected]>
@CarlSchwan CarlSchwan force-pushed the cleanup/federation-app branch from 860f32e to a9cfa72 Compare June 24, 2022 13:40
@CarlSchwan CarlSchwan requested a review from come-nc June 24, 2022 13:40
Signed-off-by: Carl Schwan <[email protected]>
*
* @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 <[email protected]>
@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.

5 participants