Use Laravel’s same return types

This commit is contained in:
Lance Pioch
2024-03-19 21:12:27 -04:00
parent f5269e7e5c
commit 29b3debee2
266 changed files with 641 additions and 637 deletions

View File

@@ -15,7 +15,7 @@ class GetStartupAndVariablesTest extends ClientApiIntegrationTestCase
*
* @dataProvider permissionsDataProvider
*/
public function testStartupVariablesAreReturnedForServer(array $permissions)
public function testStartupVariablesAreReturnedForServer(array $permissions): void
{
/** @var \App\Models\Server $server */
[$user, $server] = $this->generateTestAccount($permissions);
@@ -49,7 +49,7 @@ class GetStartupAndVariablesTest extends ClientApiIntegrationTestCase
* Test that a user without the required permission, or who does not have any permission to
* access the server cannot get the startup information for it.
*/
public function testStartupDataIsNotReturnedWithoutPermission()
public function testStartupDataIsNotReturnedWithoutPermission(): void
{
[$user, $server] = $this->generateTestAccount([Permission::ACTION_WEBSOCKET_CONNECT]);
$this->actingAs($user)->getJson($this->link($server) . '/startup')->assertForbidden();