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

Fix php 8 issue #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix php 8 issue #30

wants to merge 2 commits into from

Conversation

MohmmedAshraf
Copy link

This PR fixes #29

@StanMenten99
Copy link

Up.

@@ -14,7 +14,7 @@ class DuplicateField extends Field
*/
public $component = 'duplicate-field';

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to :
`
public function __construct(string $name, ? string $attribute = null, $resolveCallback = null)

`

@jgsamblas
Copy link

Hi,

Do you know if this fix is going to be released soon?

Thanks

@Jaspur
Copy link

Jaspur commented May 12, 2022

@jackabox when released?

@sutcliffe121
Copy link

Any update on a release @jackabox ?

@sutcliffe121
Copy link

I'm not sure its recommended, but I included this commit by updating my composer.json to:
"jackabox/nova-duplicate-field": "dev-master#59d530bb09ad8994f8bc04de5d8868d96dd1fbb3",

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

Successfully merging this pull request may close these issues.

[PHP8] Type mixed cannot be marked as nullable since mixed already includes null
6 participants