Fix type hinting on setFileInfo
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
d363654132
commit
72a7fe8185
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue