mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Modernize to PHP 8.1
This commit is contained in:
parent
ca018c77e3
commit
9e2720cddc
26 changed files with 48 additions and 52 deletions
|
@ -351,7 +351,7 @@ class ConfigControllerTest extends WallabagTestCase
|
|||
);
|
||||
|
||||
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
||||
$content = json_decode($client->getResponse()->getContent(), true);
|
||||
$content = json_decode((string) $client->getResponse()->getContent(), true);
|
||||
$this->assertArrayHasKey('token', $content);
|
||||
}
|
||||
|
||||
|
@ -1296,7 +1296,7 @@ class ConfigControllerTest extends WallabagTestCase
|
|||
$this->assertSame('attachment; filename="tagging_rules_admin.json"', $headers->get('content-disposition'));
|
||||
$this->assertSame('UTF-8', $headers->get('content-transfer-encoding'));
|
||||
|
||||
$content = json_decode($client->getResponse()->getContent(), true);
|
||||
$content = json_decode((string) $client->getResponse()->getContent(), true);
|
||||
|
||||
$this->assertCount(4, $content);
|
||||
$this->assertSame('content matches "spurs"', $content[0]['rule']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue