[TOOLS] Fix all issues found by PHPStan level 2
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
|
||||
namespace Plugin\ActivityStreamsTwo\Util\Model\EntityToType;
|
||||
|
||||
use App\Core\Entity;
|
||||
use Plugin\ActivityStreamsTwo\Util\Type;
|
||||
|
||||
abstract class EntityToType
|
||||
{
|
||||
/**
|
||||
* @param $entity
|
||||
* @param Entity $entity
|
||||
*
|
||||
* @throws \Exception
|
||||
*
|
||||
@@ -25,4 +26,4 @@ abstract class EntityToType
|
||||
return Type::create($map);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -10,7 +10,7 @@ use Plugin\ActivityStreamsTwo\Util\Type;
|
||||
class NoteToType
|
||||
{
|
||||
/**
|
||||
* @param $entity
|
||||
* @param Note $note
|
||||
*
|
||||
* @throws \Exception
|
||||
*
|
||||
@@ -30,4 +30,4 @@ class NoteToType
|
||||
];
|
||||
return Type::create(type: 'Note', attributes: $attr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user