Fix type hinting on setFileInfo

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-09-10 08:52:13 +02:00
parent d363654132
commit 72a7fe8185
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 2 additions and 2 deletions

View File

@ -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] === '') {

View File

@ -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;
}