Skip to content
Snippets Groups Projects
Unverified Commit 72a7fe81 authored by Julius Härtl's avatar Julius Härtl
Browse files

Fix type hinting on setFileInfo


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent d3636541
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ class FileMimeType extends AbstractStringCheck implements IFileCheck {
* @param IStorage $storage
* @param string $path
*/
public function setFileInfo(IStorage $storage, $path) {
public function setFileInfo(IStorage $storage, string $path) {
$this->_setFileInfo($storage, $path);
if (!isset($this->mimeType[$this->storage->getId()][$this->path])
|| $this->mimeType[$this->storage->getId()][$this->path] === '') {
......
......@@ -42,7 +42,7 @@ trait TFileCheck {
* @param string $path
* @since 18.0.0
*/
public function setFileInfo(IStorage $storage, $path) {
public function setFileInfo(IStorage $storage, string $path) {
$this->storage = $storage;
$this->path = $path;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment