Skip to content

Conversation

TavoNiievez
Copy link
Member

Now that $expectedCount is typed ?int, it is no longer necessary:

	if (!is_int($expectedCount) && !is_null($expectedCount)) { }

and if grabCollector is used, it is not necessary:

	if (($profile = $this->getProfile()) === null) { }
	if (!$profile->hasCollector($mailer)) { }

since that method includes these validations.

I remove an unused function declaration, and fix a conditional for the error message verb.

@TavoNiievez TavoNiievez modified the milestones: 1.6.0, 9.9.9 Dec 13, 2020
@TavoNiievez TavoNiievez merged commit cab80ca into Codeception:master Dec 15, 2020
@TavoNiievez TavoNiievez deleted the seeEmailIsSent branch December 15, 2020 00:50
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.

1 participant