mirror of
https://github.com/ivuorinen/branch-usage-checker.git
synced 2026-02-25 18:52:37 +00:00
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:
@@ -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 ?? [])
|
||||
|
||||
Reference in New Issue
Block a user