Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Bahramn opened this issue Jul 13, 2021 · 7 comments
Open

Comments

@Bahramn
Copy link

Bahramn commented Jul 13, 2021

In PHP 8.0

I got this error:
Type mixed cannot be marked as nullable since mixed already includes null

public function __construct(string $name, $attribute = null, ?mixed $resolveCallback = null)

@joaoguilhermels
Copy link

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

@airdev-web
Copy link

Same problem here, can you update ?

@keizah7
Copy link

keizah7 commented Jan 17, 2022

Same problem

@martykan
Copy link

You can use this, same as the parent class Field

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

@zeshan77
Copy link

@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?

@keizah7
Copy link

keizah7 commented Jun 10, 2022

@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/

@sezohessen
Copy link

Same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants