-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Cleanup comments code #35424
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
Merged
Merged
Cleanup comments code #35424
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
CarlSchwan
commented
Nov 25, 2022
- Fix various psalm issues
- Add as much typing as possible while preserving stable API
98eabd0 to
6ed35a6
Compare
|
|
||
| $event->addEntityCollection('files', function ($name) { | ||
| $nodes = \OC::$server->getUserFolder()->getById((int)$name); | ||
| $event->addEntityCollection('files', function ($name): bool { |
Check notice
Code scanning / Psalm
MissingClosureParamType
Parameter $name has no provided type
| $event->addEntityCollection('files', function ($name) { | ||
| $nodes = \OC::$server->getUserFolder()->getById((int)$name); | ||
| $event->addEntityCollection('files', function ($name): bool { | ||
| $nodes = $this->rootFolder->getUserFolder($this->userId)->getById((int)$name); |
Check notice
Code scanning / Psalm
PossiblyNullArgument
Argument 1 of OCP\Files\IRootFolder::getUserFolder cannot be null, possibly null value provided
blizzz
approved these changes
Nov 25, 2022
come-nc
reviewed
Dec 1, 2022
come-nc
approved these changes
Dec 1, 2022
Contributor
Contributor
Contributor
|
/rebase |
Merged
Merged
Merged
Contributor
|
conflicts :/ |
Merged
Contributor
|
Tests failing |
come-nc
approved these changes
May 22, 2023
| * | ||
| * @param array $mentions | ||
| * @return string[] containing the mentions, e.g. ['alice', 'bob'] | ||
| * @return list<string> containing the mentions, e.g. ['alice', 'bob'] |
Check notice
Code scanning / Psalm
MoreSpecificReturnType
The declared return type 'list<string>' for OCA\Comments\Notification\Listener::extractMentions is more specific than the inferred return type 'list<mixed>'
icewind1991
approved these changes
May 22, 2023
Contributor
|
CI failure... |
Contributor
|
/rebase |
3a7e5f1 to
7ccf065
Compare
Contributor
|
CI failure related afaics |
Contributor
|
/rebase |
7ccf065 to
7fa58da
Compare
come-nc
reviewed
Jun 1, 2023
- Fix various psalm issues - Add as much typing as possible while preserving stable API Signed-off-by: Carl Schwan <[email protected]>
Signed-off-by: Carl Schwan <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
7fa58da to
7aa97dc
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
