fix(Infrastructure): correct PHP 8.0+ parameter order and interface signatures

- MinIoClient: Move required parameters before optional ones
  - Fixes PHP 8.0+ deprecation warning
  - Required deps (RandomGenerator, HmacService, HttpClient) now before optional ($region, $usePathStyle)

- ErrorAggregatorInterface: Align signature with implementation
  - Changed from ErrorHandlerContext to Throwable + ExceptionContextProvider pattern
  - Matches existing ErrorAggregator implementation
  - Maintains flexibility with isDebug flag
This commit is contained in:
2025-11-05 03:51:20 +01:00
parent f9b8cf9f33
commit e23c5ce12f
2 changed files with 6 additions and 6 deletions

View File

@@ -37,11 +37,11 @@ final readonly class MinIoClient
string $endpoint,
private string $accessKey,
private string $secretKey,
private string $region = 'us-east-1',
private bool $usePathStyle = true,
private RandomGenerator $randomGenerator,
private HmacService $hmacService,
private CurlHttpClient $httpClient
private CurlHttpClient $httpClient,
private string $region = 'us-east-1',
private bool $usePathStyle = true
) {
// Normalize endpoint (remove trailing slash)
$this->endpoint = rtrim($endpoint, '/');