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

Removal of #[\ReturnTypeWillChange] Attribute by Mozart After Scooping #146

Open
mostafasoufi opened this issue Jul 8, 2024 · 2 comments

Comments

@mostafasoufi
Copy link

It appears that after running the Mozart package, the #[\ReturnTypeWillChange] attribute is being removed from the methods in my code.

This attribute is important for maintaining compatibility with certain PHP versions and ensuring the proper functioning of my methods.

Any idea?

@coenjacobs
Copy link
Owner

@mostafasoufi Do you have an example of a package that includes this attribute, that it is removing it from? Or do you use it in your own code and Mozart removes this for you? Can you give me some more context please?

@mostafasoufi
Copy link
Author

Yep! Take a look at this repository https://github.com/wp-statistics/wp-statistics

PS. I added the attribute #[\ReturnTypeWillChange] manually after running mozart compose

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

2 participants