chore(deps): secure PHP 8.3 dependency baseline

This commit is contained in:
wchino
2026-07-21 23:41:18 +08:00
parent ba54444979
commit fb15c64d9b
5 changed files with 1812 additions and 404 deletions

View File

@@ -61,7 +61,7 @@ test('api unknown route returns unified not_found json without hitting locale mi
test('player me works with main site jwt when dev bypass is off', function () {
config(['lottery.player_auth.dev_bypass' => false]);
config(['lottery.main_site.sso_jwt_secret' => 'jwt-test-secret']);
config(['lottery.main_site.sso_jwt_secret' => 'jwt-test-secret-at-least-32-bytes-long']);
$player = Player::query()->create([
'site_code' => 'main',
@@ -78,7 +78,7 @@ test('player me works with main site jwt when dev bypass is off', function () {
'site_player_id' => 'jwt-user-1',
'iat' => $now,
'exp' => $now + 300,
], 'jwt-test-secret', 'HS256');
], 'jwt-test-secret-at-least-32-bytes-long', 'HS256');
$this->withHeader('Authorization', 'Bearer '.$jwt)
->getJson('/api/v1/player/me')
@@ -88,7 +88,7 @@ test('player me works with main site jwt when dev bypass is off', function () {
test('jwt first successful login auto-registers player mapping', function () {
config(['lottery.player_auth.dev_bypass' => false]);
config(['lottery.main_site.sso_jwt_secret' => 'jwt-test-secret']);
config(['lottery.main_site.sso_jwt_secret' => 'jwt-test-secret-at-least-32-bytes-long']);
expect(Player::query()->count())->toBe(0);
@@ -98,7 +98,7 @@ test('jwt first successful login auto-registers player mapping', function () {
'site_player_id' => 'brand-new-sso-1',
'iat' => $now,
'exp' => $now + 300,
], 'jwt-test-secret', 'HS256');
], 'jwt-test-secret-at-least-32-bytes-long', 'HS256');
$response = $this->withHeader('Authorization', 'Bearer '.$jwt)
->getJson('/api/v1/player/me')