Skip to content

Conversation

ThomasLandauer
Copy link

Otherwise I'm getting:

[Error] Typed property Codeception\Module\Mailpit::$unreadInbox must not be accessed before initialization

Otherwise I'm getting:
> [Error] Typed property Codeception\Module\Mailpit::$unreadInbox must not be accessed before initialization
@koehnlein
Copy link
Owner

Are you sure, you executed $I->fetchEmails() ?

@ThomasLandauer
Copy link
Author

Oops, you're right, I didn't ;-)
But anyway, getting an exception for not calling some $I->... function is somewhat surprising...

Would it be possible to remove the need for $I->fetchEmails()? (Just asked the same at #9 :-) Would this be a performance drawback if you'd just integrate it at the beginning of each "real" function?

@koehnlein
Copy link
Owner

Same question - same answer ;-)

This package was created as 1:1 replacement of https://github.com/ericmartel/codeception-email-mailhog where this method always existed, so I never touched it. Of course it would be possible to refactor the functionality, but I do not see a reason to introduce such a major change.

@koehnlein koehnlein closed this Dec 14, 2024
@ThomasLandauer ThomasLandauer deleted the patch-1 branch December 14, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants