[TOOLS] Fix errors reported by PHPStan at level 4

This commit is contained in:
2021-12-26 22:17:26 +00:00
parent edd996d281
commit b84315c95b
19 changed files with 75 additions and 66 deletions

View File

@@ -26,7 +26,6 @@ namespace App\Tests\Controller;
use App\Controller\Feeds;
use App\Core\DB\DB;
use App\Core\Security;
use App\Core\VisibilityScope;
use App\Entity\Note;
use App\Util\Common;
use App\Util\Exception\ClientException;
@@ -86,7 +85,7 @@ class FeedsTest extends GNUsocialTestCase
$notes = Common::flattenNoteArray($result['notes']);
foreach ($notes as $n) {
static::assertTrue(\get_class($n) == Note::class);
$vis = VisibilityScope::create($n->getScope());
$vis = $n->getScope();
static::assertTrue($visibility($vis));
}
}