nova-rating-field icon indicating copy to clipboard operation
nova-rating-field copied to clipboard

Type mixed cannot be marked as nullable since mixed already includes null

Open Bahramn opened this issue 3 years ago • 7 comments

In PHP 8.0

I got this error: Type mixed cannot be marked as nullable since mixed already includes null https://github.com/nikaia/nova-rating-field/blob/6db4fdf4fc1177af401645149cda814f1fce27c3/src/Rating.php#L43

Bahramn avatar Jul 13 '21 06:07 Bahramn

I just removed the question mark before mixed and it worked.

joaoguilhermels avatar Aug 02 '21 18:08 joaoguilhermels

Same problem here, can you update ?

airdev-web avatar Jan 11 '22 13:01 airdev-web

Same problem

keizah7 avatar Jan 17 '22 11:01 keizah7

You can use this, same as the parent class Field

public function __construct($name, $attribute = null, callable $resolveCallback = null)

martykan avatar Apr 29 '22 18:04 martykan

@martykan How? We can't make changes in the package's source code so where do you mean to put that line in order to resolve the problem?

zeshan77 avatar Jun 10 '22 09:06 zeshan77

@martykan How? We can't make changes in the package's source code so where do you mean to put that line in order to resolve the problem?

https://tomasvotruba.com/blog/2020/07/02/how-to-patch-package-in-vendor-yet-allow-its-updates/

keizah7 avatar Jun 10 '22 11:06 keizah7

Same problem

sezohessen avatar Mar 07 '23 18:03 sezohessen