[TOOLS] Cleanup PHPStan warnings

This commit is contained in:
2021-12-01 12:07:43 +00:00
committed by Diogo Peralta Cordeiro
parent 0b57b20d38
commit d58483a6ca
5 changed files with 85 additions and 63 deletions

View File

@@ -68,7 +68,7 @@ class AttachmentTest extends GNUsocialTestCase
public function testAttachmentViewNotStored()
{
$client = static::createClient();
$last_attachment = DB::findBy('attachment', [], orderBy: ['id' => 'DESC'], limit: 1)[0];
$last_attachment = DB::findBy('attachment', [], order_by: ['id' => 'DESC'], limit: 1)[0];
$id = $last_attachment->getId() + 1;
$crawler = $client->request('GET', "/attachment/{$id}/view");
$this->assertResponseStatusCodeSame(500); // TODO (exception page) 404