You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @ghnp5 -- you're not wrong, getEmail is part of AddressHeader which is what's returned if you call getHeader('From') -- a class that implements IHeader.
I don't know what makes the most sense here, maybe in documentation I can specify all the concrete classes returned so IDEs are happy. Another option could be to put a docblock before the $from line, or actually specify all classes that could be returned in the function's signature. Open to suggestions if anyone has any.
getHeader
returnsIHeader
, butIHeader
does not containgetEmail
.The code works, but my IDE complains :)
Thanks!
The text was updated successfully, but these errors were encountered: