BREAKING CHANGE: Requires PHP 8.5.0RC3 Changes: - Update Docker base image from php:8.4-fpm to php:8.5.0RC3-fpm - Enable ext-uri for native WHATWG URL parsing support - Update composer.json PHP requirement from ^8.4 to ^8.5 - Add ext-uri as required extension in composer.json - Move URL classes from Url.php85/ to Url/ directory (now compatible) - Remove temporary PHP 8.4 compatibility workarounds Benefits: - Native URL parsing with Uri\WhatWg\Url class - Better performance for URL operations - Future-proof with latest PHP features - Eliminates PHP version compatibility issues
43 lines
1.0 KiB
PHP
43 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Framework\ErrorAggregation;
|
|
|
|
use App\Framework\Exception\ErrorHandlerContext;
|
|
use App\Framework\Exception\Core\ErrorSeverity;
|
|
|
|
/**
|
|
* Null Object implementation for ErrorAggregator
|
|
*
|
|
* Used when error aggregation is disabled or unavailable.
|
|
* All operations are no-ops that return empty/default values.
|
|
*/
|
|
final readonly class NullErrorAggregator implements ErrorAggregatorInterface
|
|
{
|
|
public function processError(ErrorHandlerContext $context): void
|
|
{
|
|
// No-op: Error aggregation is disabled
|
|
}
|
|
|
|
public function getStatistics(\DateTimeImmutable $from, \DateTimeImmutable $to): array
|
|
{
|
|
return [
|
|
'total_events' => 0,
|
|
'total_patterns' => 0,
|
|
'by_severity' => [],
|
|
'by_service' => [],
|
|
];
|
|
}
|
|
|
|
public function getActivePatterns(int $limit = 50, int $offset = 0): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function getRecentEvents(int $limit = 100, ?ErrorSeverity $severity = null): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|