Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add Arrayable interface to Bsky Labeler response classes

+12 -1
+12 -1
src/Data/Responses/Bsky/Labeler/GetServicesResponse.php
··· 2 2 3 3 namespace SocialDept\AtpClient\Data\Responses\Bsky\Labeler; 4 4 5 + use Illuminate\Contracts\Support\Arrayable; 5 6 use Illuminate\Support\Collection; 6 7 use SocialDept\AtpSchema\Generated\App\Bsky\Labeler\Defs\LabelerView; 7 8 use SocialDept\AtpSchema\Generated\App\Bsky\Labeler\Defs\LabelerViewDetailed; 8 9 9 - class GetServicesResponse 10 + /** 11 + * @implements Arrayable<string, mixed> 12 + */ 13 + class GetServicesResponse implements Arrayable 10 14 { 11 15 /** 12 16 * @param Collection<int, LabelerView|LabelerViewDetailed> $views ··· 24 28 : LabelerView::fromArray($view) 25 29 ), 26 30 ); 31 + } 32 + 33 + public function toArray(): array 34 + { 35 + return [ 36 + 'views' => $this->views->map(fn (LabelerView|LabelerViewDetailed $v) => $v->toArray())->all(), 37 + ]; 27 38 } 28 39 }