From d226e46dd00d0245486bce2fc64f481c23f11e2a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 10 Oct 2021 16:07:06 +0200 Subject: [PATCH] phpstan fixes --- Controller/ApiController.php | 2 +- Models/MediaType.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index df5daff..ac7f964 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -124,7 +124,7 @@ final class ApiController extends Controller * @param int $account Uploader * @param string $basePath Base path. The path which is used for the upload. * @param string $virtualPath virtual path The path which is used to visually structure the files, like directories - * @param string $type Media type (internal/custom media categorization) + * @param int $type Media type (internal/custom media categorization) * The file storage on the system can be different * @param string $password File password. The password to protect the file (only database) * @param string $encryptionKey Encryption key. Used to encrypt the file on the local file storage. diff --git a/Models/MediaType.php b/Models/MediaType.php index 82c59d5..b74d631 100644 --- a/Models/MediaType.php +++ b/Models/MediaType.php @@ -41,7 +41,7 @@ class MediaType implements \JsonSerializable, ArrayableInterface * @var string * @since 1.0.0 */ - protected string $name = ''; + public string $name = ''; /** * Title.