1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

php 8 compat

This commit is contained in:
Robin Appelman 2021-02-16 18:35:37 +01:00
commit 47cdcaa00b
9 changed files with 260 additions and 93 deletions

View file

@ -8,6 +8,7 @@ use Demostf\API\Data\Player;
use Demostf\API\Providers\PlayerProvider;
use Demostf\API\Providers\UserProvider;
use Demostf\API\Test\TestCase;
use SteamCondenser\Community\SteamId;
class UserProviderTest extends TestCase {
/** @var UserProvider */
@ -15,7 +16,7 @@ class UserProviderTest extends TestCase {
/** @var PlayerProvider */
private $playerProvider;
/** @var \SteamId */
/** @var SteamId */
private $steamId;
public function setUp(): void {

View file

@ -6,6 +6,7 @@ namespace Demostf\API\Test;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\DriverManager;
use SteamCondenser\Community\SteamId;
abstract class TestCase extends \PHPUnit\Framework\TestCase {
/** @var Connection */
@ -60,6 +61,6 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase {
}
protected function getSteamId($steamId, $_name) {
return new \SteamId($steamId, false);
return new SteamId($steamId);
}
}