diff --git a/apps/workflowengine/lib/Check/FileMimeType.php b/apps/workflowengine/lib/Check/FileMimeType.php
index 92375d4d3cdf38276cf796f697ed5e746c7130a6..5bebaf9fc01050e29ce432c9415223b67663c257 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 44a39aadfdeaa901fb5abc0b62d89142764b8cad..383c2d4ef5f9c9852bccd94919cf0fe707d66f92 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;
 	}