Skip to content

Data v4

Data v4 #581

Triggered via pull request June 21, 2023 14:24
Status Failure
Total duration 56s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

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)#L30
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)#L30
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/Resolvers/PartialsTreeFromRequestResolver.php#L30
Match arm is unreachable because previous comparison is always true.
phpstan: src/Support/DataType.php#L1
Ignored error pattern #^Readonly property Spatie\\LaravelData\\Support\\DataType\:\:\$acceptedTypes is already assigned\.$# in path /home/runner/work/laravel-data/laravel-data/src/Support/DataType.php was not matched in reported errors.
phpstan: src/Support/DataType.php#L1
Ignored error pattern #^Readonly property Spatie\\LaravelData\\Support\\DataType\:\:\$dataClass is already assigned\.$# in path /home/runner/work/laravel-data/laravel-data/src/Support/DataType.php was not matched in reported errors.