Fixes for merge #700
Annotations
10 errors
Run 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.
|
Run 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.
|
Run 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.
|
Run 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.
|
Run 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.
|
Run 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.
|
Run 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.
|
Run PHPStan:
src/Dto.php#L12
Non-abstract class Spatie\LaravelData\Dto contains abstract method empty() from interface Spatie\LaravelData\Contracts\BaseData.
|
Run PHPStan:
src/Resolvers/PartialsTreeFromRequestResolver.php#L30
Match arm is unreachable because previous comparison is always true.
|
Run PHPStan:
src/Support/DataContainer.php#L24
Unsafe access to private property Spatie\LaravelData\Support\DataContainer::$instance through static::.
|
The logs for this run have expired and are no longer available.
Loading