Skip to content

Getting type error using the Rating field in Nova #18

@axelitus

Description

@axelitus

I am getting the following error in PHP 8:
Type mixed cannot be marked as nullable since mixed already includes null at ./vendor/nikaia/nova-rating-field/src/Rating.php:43

I checked your file and the constructor signatures is public function __construct(string $name, $attribute = null, ?mixed $resolveCallback = null) and the offending part is ?mixed as mixed already contains null, so no need to add the ?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions