[TOOLS] Continue raising PHPStan to level 6
This commit is contained in:
@@ -30,13 +30,14 @@ use Plugin\AttachmentCollections\Entity\AttachmentCollection;
|
||||
|
||||
class AttachmentCollections extends MetaCollectionController
|
||||
{
|
||||
public function createCollection(int $owner_id, string $name)
|
||||
public function createCollection(int $owner_id, string $name): bool
|
||||
{
|
||||
DB::persist(AttachmentCollection::create([
|
||||
'name' => $name,
|
||||
'actor_id' => $owner_id,
|
||||
]));
|
||||
}
|
||||
|
||||
public function getCollectionUrl(int $owner_id, ?string $owner_nickname, int $collection_id): string
|
||||
{
|
||||
if (\is_null($owner_nickname)) {
|
||||
|
Reference in New Issue
Block a user