Skip to content

Fix inherited parameter names - #37543

Merged
come-nc merged 1 commit into
masterfrom
fix/inherited-parameter-names
Apr 3, 2023
Merged

Fix inherited parameter names#37543
come-nc merged 1 commit into
masterfrom
fix/inherited-parameter-names

Conversation

@provokateurin

Copy link
Copy Markdown
Member

Summary

Split out from #37390

Checklist

Signed-off-by: jld3103 <jld3103yt@gmail.com>
@provokateurinprovokateurin added this to the Nextcloud 27 milestone Apr 3, 2023
@provokateurinprovokateurin added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 labels Apr 3, 2023
* @param bool $isAvailable
*/
public function setAvailability($available) {
public function setAvailability($isAvailable) {

Check notice

Code scanning / Psalm

MissingReturnType

Method OCA\Files_Sharing\SharedStorage::setAvailability does not have a return type, expecting void
@come-nc

Copy link
Copy Markdown
Contributor

9 errors fixed

diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 8661726..fa712f3 100644
--- a/build/psalm-baseline.xml+++ b/build/psalm-baseline.xml@@ -976,10 +976,6 @@
<NullableReturnStatement occurrences="1">
<code>$this-&gt;sourceRootInfo</code>
</NullableReturnStatement>
- <ParamNameMismatch occurrences="2">- <code>$available</code>- <code>$target</code>- </ParamNameMismatch>
</file>
<file src="apps/files_sharing/lib/Updater.php">
<UndefinedMethod occurrences="1">
@@ -2091,12 +2087,7 @@
<FalsableReturnStatement occurrences="1">
<code>$data</code>
</FalsableReturnStatement>
- <MoreSpecificImplementedParamType occurrences="1">- <code>$path</code>- </MoreSpecificImplementedParamType>- <ParamNameMismatch occurrences="1">- <code>$path</code>- </ParamNameMismatch>+ <MoreSpecificImplementedParamType occurrences="1"/>
</file>
<file src="lib/private/Files/Cache/Scanner.php">
<InvalidReturnStatement occurrences="1">
@@ -2271,18 +2262,6 @@
<code>$this-&gt;fileInfo</code>
</UndefinedInterfaceMethod>
</file>
- <file src="lib/private/Files/Node/NonExistingFile.php">- <ParamNameMismatch occurrences="1">- <code>$newPath</code>- </ParamNameMismatch>- </file>- <file src="lib/private/Files/Node/NonExistingFolder.php">- <ParamNameMismatch occurrences="3">- <code>$mime</code>- <code>$newPath</code>- <code>$pattern</code>- </ParamNameMismatch>- </file>
<file src="lib/private/Files/Node/Root.php">
<ImplementedReturnTypeMismatch occurrences="1">
<code>Node</code>
@@ -2514,12 +2493,6 @@
</InvalidReturnType>
</file>
<file src="lib/private/Files/Storage/Wrapper/Quota.php">
- <InvalidReturnStatement occurrences="1">- <code>$extension === 'part'</code>- </InvalidReturnStatement>- <InvalidReturnType occurrences="1">- <code>string</code>- </InvalidReturnType>
<InvalidScalarArgument occurrences="1">
<code>$free</code>
</InvalidScalarArgument>

Psalm CI confirms this helps

@provokateurin

Copy link
Copy Markdown
MemberAuthor

@come-nc Do I need to update the baseline file in this PR?

@come-nc

Copy link
Copy Markdown
Contributor

@come-nc Do I need to update the baseline file in this PR?

No the bot will do it in another PR.

@provokateurin

Copy link
Copy Markdown
MemberAuthor

@come-nc@ChristophWurst Can I get a force merge?

@come-nc
come-nc merged commit dbc0d6a into masterApr 3, 2023
@come-nc
come-nc deleted the fix/inherited-parameter-names branch April 3, 2023 13:08
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewstechnical debt🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@provokateurin@come-nc@ChristophWurst@github-advanced-security