This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 253
Type hints in mailable constructor must be an object #52
Labels
bug
Something isn't working
Comments
Hello @MartijnDB, can please share your mailable, please? |
@Qoraiche, and @MartijnDB. I have had a look at it and initially there isn't a way to account for all the PHP builtin types as the __toString magic method allows for one to react to the Things like the I have a working patch on my local fork of the repo, I will clean it up and push it and you can test it as a PR on the main repo here. Please let me know if this is okay? |
@ReeceM of course, thank you |
ReeceM
added a commit
to ReeceM/laravel-mail-editor
that referenced
this issue
Sep 23, 2019
Merged
Qoraiche
pushed a commit
that referenced
this issue
Sep 28, 2019
HI @MartijnDB, release v1.3.2 should have fixed your issue you were experiencing with the mailables. Please do a composer update and reply back if it has fixed it |
Yes. Works as expected. Thanks. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In my mailable contructor I have a typehint for int and it fails on that:
"Argument 1 passed to App\Mail\XXX::__construct() must be of the type int, object given"
The text was updated successfully, but these errors were encountered: