-
Notifications
You must be signed in to change notification settings - Fork 242
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
Cannot prophesize interface with final return. #463
Comments
Please share more details about this. A reproducer would help. |
@stof sorry for the lack of detail. it was following a conversation with Ciaran in slack. Turns out this causes the problem: |
We should handle this case explicitly |
Well, we might need to report a better error message indeed. But I don't see a way to avoid forcing to define the return value. If the method call requires returning a value and we cannot return a double, we will always need to require the dev to provide a return value. |
Yeah I just mean an error message that's friendlier |
Prophesizing this class will result in
could not reflect class Symfony\Component\Messenger\Envelope as it is marked final.
cc @ciaranmcnulty
The text was updated successfully, but these errors were encountered: