I got an exception in ArraySerializer.
For ex.: "local.ERROR: Declaration of Spatie\Fractalistic\ArraySerializer::collection(string $resourceKey, array $data): array must be compatible with League\Fractal\Serializer\ArraySerializer::collection(?string $resourceKey, array $data): array"
In the collection method, you need to add question mark before: "string $resourceKey" which invoke the exception,
because the method changed in "League\Fractal\Serializer\ArraySerializer"
To fix it, you need to add a question mark:
public function collection(?string $resourceKey, array $data): array in
I got an exception in ArraySerializer. For ex.: "local.ERROR: Declaration of Spatie\Fractalistic\ArraySerializer::collection(string $resourceKey, array $data): array must be compatible with League\Fractal\Serializer\ArraySerializer::collection(?string $resourceKey, array $data): array"
In the collection method, you need to add question mark before: "string $resourceKey" which invoke the exception, because the method changed in "League\Fractal\Serializer\ArraySerializer" To fix it, you need to add a question mark:
public function collection(?string $resourceKey, array $data): array
inscreen_1.jpg screen_2.jpg screen_3.jpg screen_4.jpg