-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Version 7.3.7 tries to apply events to variadic and untyped functions in the aggregate root #437
Comments
#436 may be related |
Having implemented the change you suggest, the error now appears like the following:
However, I cannot find the class Tried to modify the type of |
Hi @fefo-p, those classes are built-in to PHP, I added backslashes to the example so that should work for you now. |
will try it again. Thx for the follow-up |
Apparently it works fine now. I hope this patch can make it to main/master branch! |
Hi,
The change made in #434 appears to be causing the apply() method to call any methods with variadic or mixed/non-declared types on the aggregate root, as it believes they can handle the event.
I found this because I was using mocks for aggregate roots, and mockery adds a lot of these types of methods. I quickly wrote this which implements a rejection for method that have a variadic parameter, no type, or the type isn't either an interface or is_a the event.
If this is along the right lines I'm happy to tidy it up into a PR?
The text was updated successfully, but these errors were encountered: