From ba913539012874b2bc9aabb6a453264c4f25f495 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 7 Mar 2020 00:23:17 +0100 Subject: [PATCH] Type and cs fixes --- Controller/ApiController.php | 2 +- Models/CollectionMapper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 2d5aa38..0aaaecb 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -353,7 +353,7 @@ final class ApiController extends Controller $mediaCollection->setName($name); $mediaCollection->setDescription(Markdown::parse($description)); $mediaCollection->setDescriptionRaw($description); - $mediaCollection->setCreatedBy($account); + $mediaCollection->setCreatedBy(new NullAccount($account)); $mediaCollection->setSources($media); $mediaCollection->setVirtualPath('/Modules/Helper'); $mediaCollection->setPath('/Modules/Helper'); diff --git a/Models/CollectionMapper.php b/Models/CollectionMapper.php index 091d3ee..26d7c56 100644 --- a/Models/CollectionMapper.php +++ b/Models/CollectionMapper.php @@ -27,7 +27,7 @@ final class CollectionMapper extends MediaMapper /** * Has many relation. * - * @var array + * @var array * @since 1.0.0 */ protected static array $hasMany = [