Skip to content

Add phpdoc to TransformableData.php #1155

Add phpdoc to TransformableData.php

Add phpdoc to TransformableData.php #1155

Triggered via pull request January 18, 2025 13:37
Status Failure
Total duration 37s
Artifacts

phpstan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 warning
phpstan: src/Concerns/TransformableData.php (in context of class Spatie/LaravelData/CursorPaginatedDataCollection)#L55
Return type mixed of method Spatie\LaravelData\CursorPaginatedDataCollection::toArray() is not covariant with return type array of method Spatie\LaravelData\Contracts\TransformableData::toArray().
phpstan: src/Concerns/TransformableData.php (in context of class Spatie/LaravelData/Data)#L55
Return type mixed of method Spatie\LaravelData\Data::toArray() is not covariant with return type array of method Spatie\LaravelData\Contracts\TransformableData::toArray().
phpstan: src/Concerns/TransformableData.php (in context of class Spatie/LaravelData/DataCollection)#L55
Return type mixed of method Spatie\LaravelData\DataCollection::toArray() is not covariant with return type array of method Spatie\LaravelData\Contracts\TransformableData::toArray().
phpstan: src/Concerns/TransformableData.php (in context of class Spatie/LaravelData/PaginatedDataCollection)#L55
Return type mixed of method Spatie\LaravelData\PaginatedDataCollection::toArray() is not covariant with return type array of method Spatie\LaravelData\Contracts\TransformableData::toArray().
phpstan: src/Concerns/TransformableData.php (in context of class Spatie/LaravelData/Resource)#L55
Return type mixed of method Spatie\LaravelData\Resource::toArray() is not covariant with return type array of method Spatie\LaravelData\Contracts\TransformableData::toArray().
phpstan
Process completed with exit code 1.
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636