[TESTS] Raise test coverage for App\Controller\Network to 100% and fixup related code

This commit is contained in:
2021-05-23 19:56:45 +00:00
parent c5d4b7ecac
commit 74f477489b
5 changed files with 108 additions and 8 deletions

View File

@@ -247,7 +247,7 @@ class Note extends Entity
*
* @param mixed $a
*/
public function isVisibleTo(/* GSActor|LocalUser */ $a): bool
public function isVisibleTo(GSActor | LocalUser $a): bool
{
$scope = VisibilityScope::create($this->scope);
return $scope->public