Make classes readonly when possible

This commit is contained in:
Alejandro Celaya
2024-11-09 09:55:51 +01:00
parent d6b103de83
commit 72f1e243b5
16 changed files with 40 additions and 40 deletions

View File

@@ -13,12 +13,12 @@ use Throwable;
use function sprintf;
class UpdateGeoLiteDb
readonly class UpdateGeoLiteDb
{
public function __construct(
private readonly GeolocationDbUpdaterInterface $dbUpdater,
private readonly LoggerInterface $logger,
private readonly EventDispatcherInterface $eventDispatcher,
private GeolocationDbUpdaterInterface $dbUpdater,
private LoggerInterface $logger,
private EventDispatcherInterface $eventDispatcher,
) {
}