refactor(dto): replace spatie/data-transfer-object with plain readonly class (#46)

The spatie/data-transfer-object package is abandoned. Replace it with a
native PHP 8.4 final readonly class using a static factory method,
removing the dependency entirely.
This commit is contained in:
2026-02-24 21:36:21 +02:00
committed by GitHub
parent a706aac668
commit 728388b473
4 changed files with 30 additions and 85 deletions

View File

@@ -48,7 +48,7 @@ class CheckCommand extends Command
$this->filter = now()->subMonths($months)->day(1)->toDateString();
try {
$pkg = new PackagistApiPackagePayload($payload->json());
$pkg = PackagistApiPackagePayload::fromResponse($payload->json());
$this->info('Found the package. Type: ' . $pkg->type);
$versions = collect($pkg->versions ?? [])