From 72a7fe81854f5a76208e76ebcc127912283f94cd Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 10 Sep 2019 08:52:13 +0200 Subject: Fix type hinting on setFileInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/workflowengine/lib/Check/FileMimeType.php | 2 +- apps/workflowengine/lib/Check/TFileCheck.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/workflowengine/lib') diff --git a/apps/workflowengine/lib/Check/FileMimeType.php b/apps/workflowengine/lib/Check/FileMimeType.php index 92375d4d3cd..5bebaf9fc01 100644 --- a/apps/workflowengine/lib/Check/FileMimeType.php +++ b/apps/workflowengine/lib/Check/FileMimeType.php @@ -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] === '') { diff --git a/apps/workflowengine/lib/Check/TFileCheck.php b/apps/workflowengine/lib/Check/TFileCheck.php index 44a39aadfde..383c2d4ef5f 100644 --- a/apps/workflowengine/lib/Check/TFileCheck.php +++ b/apps/workflowengine/lib/Check/TFileCheck.php @@ -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; } -- cgit v1.2.3