-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
11.15 breaks codebase #429
Comments
So you return your model but your model does implement the interface? |
@Gummibeer, Yes, I can confirm. In my own experience, my colleagues and I don't always implement the interface in a model, we just a trait and that's enough for us. Therefore, I suggest to use only phpdoc, at least for now. Type added in b46b3cc18140a54af3ecba7938f58569dcae86d6 |
Thanks for confirmation. I will release a fix that will revert the interface type changes. |
hey @Gummibeer sorry for my late reply and missing background info but I'm glad @Oleksandr-Moik added some more details as that was indeed the scenario. |
Describe the bug
setDefaultLocale(): Return value must be of type Astrotomic\Translatable\Contracts\Translatable, App\Route returned
This happened when upgrading minor version to .15 and to be honest I don't think return type changes should be part of minor version jumps.
background
I'm setting the default locale of a specific model in an observer based on a DB value so that an object is always returned in the language the user forces it in.
The text was updated successfully, but these errors were encountered: