* [MOD] Use static types.

* [MOD] CORS headers.
* [MOD] Improve Forwarded header lookup.
* [ADD] Create interface for configuration data.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2021-10-12 20:49:18 +02:00
parent 5424084a52
commit 58249da565
638 changed files with 21764 additions and 22315 deletions

View File

@@ -306,9 +306,9 @@ class UserGroupRepositoryTest extends DatabaseTestCase
* @throws ConstraintException
* @throws QueryException
*/
public function testGetByIdBatch()
public function testGetByIdBatch(): void
{
$data = self::$repository->getByIdBatch([1, 2, 10]);
$data = self::$repository->getByIdBatch([1, 2, 10])->getDataAsArray();
$this->assertCount(2, $data);
$this->assertInstanceOf(UserGroupData::class, $data[0]);