Skip to content

Conversation

@MorrisJobke
Copy link
Member

Change reviewers from Roeland and Me to Julius and Louis

I hope that's okay @juliushaertl and @artonge?

Those are the PRs like #27517 that just need a +1 and a check that the Psalm run works.

Change reviewers from Roeland and Me to Julius and Louis

Signed-off-by: Morris Jobke <[email protected]>
@MorrisJobke MorrisJobke added the 3. to review Waiting for reviews label Jun 16, 2021
@MorrisJobke MorrisJobke added this to the Nextcloud 22 milestone Jun 16, 2021
Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

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

I guess I won't be the best to understand the changes, but I won't mind the noise and trying ^^.

@MorrisJobke
Copy link
Member Author

I guess I won't be the best to understand the changes, but I won't mind the noise and trying ^^.

The Psalm baseline is basically a list of things that aren't fine from Psalms perspective but that we accepted as "works as of now". It only removes entries. So this means, when type hints, suspicious calls with wrong types, potential bugs due to wrong return types and such stuff that is detected by the static code analysis of Psalm is fixed, then those will be removed by the PR. That just makes sure, that fixed things are not reintroduced later again (without noticing).

Does that make it clear what it does?

Ah: Maybe also a little explanation of Psalm is helpful: it is a tool that does static code analysis to detect potential bugs due to wrongly handled data for example. If a variable from a code flow perspective can be int and bool, but the method expects an int, that is usually fine for PHP because it automatically casts. Nevertheless it is seen as unwanted or at least unclear behaviour. In that regard Psalm helps to find those things. Same with not available methods on interfaces but on implementations where the type hint only refers to the interface and such stuff. Full details can be found at https://psalm.dev/

@MorrisJobke MorrisJobke merged commit 0a9a5f0 into master Jun 16, 2021
@MorrisJobke MorrisJobke deleted the enh/noid/change-reviewers branch June 16, 2021 09:07
@artonge
Copy link
Contributor

artonge commented Jun 16, 2021

Ok, thanks for the explanations and context. Much clearer now ! 😄

@blizzz blizzz mentioned this pull request Jun 16, 2021
45 tasks
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants