diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index dc2726c7c37b2..28772efbe640c 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -625,11 +625,6 @@
\Sabre\Uri\split($principal)
-
-
- 'DummyBasic realm="' . $this->realm . '"'
-
-
bool
@@ -1133,7 +1128,6 @@
$position
$position
- $position
boolean
@@ -1237,13 +1231,12 @@
string
-
+
$id
$id
$id
(int)$share['id']
$id
- $id
@@ -1532,24 +1525,41 @@
+
+ IteratorDirectory::wrap($files)
+
+
+ opendir
+ fopen
+
clearBucket
+
+
+ IteratorDirectory::wrap($files)
+
+
+ opendir
+
+
put
+
+ IteratorDirectory::wrap($dirStream)
+
+
+ opendir
+
$source
$target
-
- false
- false
-
$this->handle
$this->handle
@@ -1568,11 +1578,6 @@
-
- false
- false
- false
-
$this->handle
$this->handle
@@ -1591,9 +1596,6 @@
-
- false
-
$files
@@ -1603,8 +1605,13 @@
new CappedMemoryCache()
-
+
+ IteratorDirectory::wrap($names)
+
+
\Icewind\SMB\IFileInfo[]
+ resource|false
+ opendir
$e->getCode()
@@ -1628,10 +1635,16 @@
$object->lastModified
-
+
filetype
- fopen
+
+ IteratorDirectory::wrap($files)
+
+
+ opendir
+ fopen
+
$content
@@ -2398,10 +2411,10 @@
string[]
- $e->getCode()
+ [$attr => $result['values']]
$key
$key
- [$attr => $result['values']]
+ $e->getCode()
$cookie
@@ -3078,6 +3091,7 @@
$this
+ $this
@@ -3363,11 +3377,12 @@
false
-
+
$this->tar->extractInString($path)
-
+
string
+ resource
$this->tar->extractInString($path)
@@ -3378,6 +3393,10 @@
boolean|null
boolean|null
+
+
+ resource
+
@@ -4300,6 +4319,13 @@
+
+ IteratorDirectory::wrap($files)
+
+
+ opendir
+ fopen
+
$source
$target
@@ -4355,6 +4381,12 @@
$this->params['url']
+
+
+
+ resource
+
+
string|false
@@ -4384,6 +4416,9 @@
$this->getStorageCache()->getAvailability()
+
+ $result and ($file = readdir($dh)) !== false
+
@@ -4396,11 +4431,13 @@
getETag
-
+
+ IteratorDirectory::wrap($content)
$response->getBody()
$result
-
+
+ opendir
fopen
int
@@ -4468,11 +4505,14 @@
-
+
$this->flysystem->getTimestamp($this->buildPath($path))
+ IteratorDirectory::wrap($names)
-
+
filemtime
+ opendir
+ fopen
$source
@@ -4487,7 +4527,7 @@
$helper->getFileSize($fullPath)
- file_put_contents($this->getSourcePath($path), $data)
+ $result
$space
@@ -4710,11 +4750,6 @@
-
- false
- false
- false
-
$this->current
$this->current
@@ -5041,11 +5076,6 @@
mixed
-
-
- $lockingCacheClass && class_exists($distributedCacheClass) && $lockingCacheClass::isAvailable()
-
-
method_exists(self::$cache, 'deleteMulti')
@@ -5427,7 +5457,6 @@
-
'OCP\Share::preShare'
'OCP\Share::postShare'
@@ -5441,6 +5470,9 @@
$this->shareApiLinkDefaultExpireDays()
$id
+
+ null
+
dispatch
dispatch
@@ -5962,11 +5994,6 @@
'DateTimeFormatter'
-
-
- $cacheEntry
-
-
$this->request->server
diff --git a/composer.json b/composer.json
index 702b739306e56..05abbb83cdfa5 100644
--- a/composer.json
+++ b/composer.json
@@ -23,6 +23,7 @@
"cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
- "psalm": "psalm"
+ "psalm": "psalm",
+ "psalm:update-baseline": "psalm --update-baseline --set-baseline=build/psalm-baseline.xml"
}
}