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

Issue : Declaration of jsonSerialize() must be compatible #35 #36

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

Cyriljshaz
Copy link
Contributor

@Cyriljshaz Cyriljshaz commented Jun 9, 2023

For the overload (or implementation of an interface) of a method to be valid, the signatures of the methods must be identical. Here, the jsonSerialize() method of the BenjaminHirsh/NovaSlugField/slug class must have the exact same signature as that of the Laravel/Nova/Fields/Field class.

To resolve this error, check the declaration of the jsonSerialize() method in the BenjaminHirsh/NovaSlugField/slug class and ensure that it has the same signature as that of the parent class Laravel/Nova/Fields/Field.

…hode soit valide, les signatures des méthodes doivent être identiques. Ici, la méthode jsonSerialize() de la classe BenjaminHirsh/NovaSlugField/slug doit avoir exactement la même signature que celle de la classe Laravel/Nova/Fields/Field. Pour résoudre cette erreur, il faut vérifier la déclaration de la méthode jsonSerialize() dans la classe BenjaminHirsh/NovaSlugField/slug et s'assurer qu'elle a la même signature que celle de la class parente Laravel/Nova/Fields/Field.
@juergenZeindlinger
Copy link

@tomhatzer Is there a chance that you can merge the pull request?
This would enable the package to be used with Nova v.4.x

Copy link
Owner

@tomhatzer tomhatzer left a comment

Choose a reason for hiding this comment

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

Looks good, thank you very much!

@tomhatzer tomhatzer merged commit 21c9495 into tomhatzer:master Dec 27, 2023
@juergenZeindlinger
Copy link

It's not my pull request but I need the same change and I thought maybe I can speed things up when I ping you directly 😄
Worked 👍
Can you make the release directly 🙏

@juergenZeindlinger
Copy link

@tomhatzer 🙏 please make a new release with that change - would really appreciate it

@tomhatzer
Copy link
Owner

@juergenZeindlinger done!

@juergenZeindlinger
Copy link

Thank you so much

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.

3 participants