[TOOLS] Fix errors reported by PHPStan

This commit is contained in:
2022-02-26 14:09:41 +00:00
parent 8c15d21591
commit 5188a473d0
12 changed files with 82 additions and 49 deletions

View File

@@ -50,8 +50,8 @@ use Symfony\Component\HttpFoundation\Request;
class AttachmentCollections extends Plugin
{
use MetaCollectionTrait;
protected string $slug = 'collection';
protected string $plural_slug = 'collections';
protected const SLUG = 'collection';
protected const PLURAL_SLUG = 'collections';
protected function createCollection(Actor $owner, array $vars, string $name)
{
$col = AttachmentCollection::create([