Data v4 #703
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)#L31
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)#L31
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/PartialsTreeFromRequestResolver.php#L30
Match arm is unreachable because previous comparison is always true.
|
phpstan:
src/Support/DataContainer.php#L24
Unsafe access to private property Spatie\LaravelData\Support\DataContainer::$instance through static::.
|