Skip to content

Data v4

Data v4 #707

Triggered via pull request January 5, 2024 10:48
Status Failure
Total duration 38s
Artifacts

phpstan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: src/Concerns/BaseData.php (in context of class Spatie/LaravelData/Dto)#L45
Method Spatie\LaravelData\Dto::from() should return static(Spatie\LaravelData\Dto) but returns Spatie\LaravelData\Contracts\BaseData.
phpstan: src/Concerns/BaseData.php (in context of class Spatie/LaravelData/Dto)#L53
Method Spatie\LaravelData\Dto::withoutMagicalCreationFrom() should return static(Spatie\LaravelData\Dto) but returns Spatie\LaravelData\Contracts\BaseData.
phpstan: src/Concerns/BaseData.php (in context of class Spatie/LaravelData/Resource)#L45
Method Spatie\LaravelData\Resource::from() should return static(Spatie\LaravelData\Resource) but returns Spatie\LaravelData\Contracts\BaseData.
phpstan: src/Concerns/BaseData.php (in context of class Spatie/LaravelData/Resource)#L53
Method Spatie\LaravelData\Resource::withoutMagicalCreationFrom() should return static(Spatie\LaravelData\Resource) but returns Spatie\LaravelData\Contracts\BaseData.
phpstan: src/Concerns/TransformableData.php (in context of class Spatie/LaravelData/Data)#L28
Instanceof between *NEVER* and Spatie\LaravelData\Contracts\BaseDataCollectable will always evaluate to false.
phpstan: src/Concerns/TransformableData.php (in context of class Spatie/LaravelData/Resource)#L28
Instanceof between *NEVER* and Spatie\LaravelData\Contracts\BaseDataCollectable will always evaluate to false.
phpstan: src/Concerns/ValidateableData.php (in context of class Spatie/LaravelData/Dto)#L27
Parameter #1 $dataClass of method Spatie\LaravelData\Resolvers\DataValidatorResolver::execute() expects class-string<Spatie\LaravelData\Contracts\DataObject>, class-string<static(Spatie\LaravelData\Dto)> given.
phpstan: src/Dto.php#L12
Non-abstract class Spatie\LaravelData\Dto contains abstract method empty() from interface Spatie\LaravelData\Contracts\BaseData.
phpstan: src/Resolvers/RequestQueryStringPartialsResolver.php#L40
Match arm is unreachable because previous comparison is always true.
phpstan: src/Support/DataClass.php#L111
Call to an undefined static method Spatie\LaravelData\Contracts\BaseData::allowedRequestIncludes().