Skip to content

Avoid TypeError in preg_match() #91

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

Merged
merged 1 commit into from
Jan 23, 2022
Merged

Avoid TypeError in preg_match() #91

merged 1 commit into from
Jan 23, 2022

Conversation

olexp
Copy link
Contributor

@olexp olexp commented Jan 17, 2022

Using non-string locator in grabTextFrom() leads to "[TypeError] preg_match() expects parameter 1 to be string, array given" error. This error appeared after adding strict types declaration to src/Codeception/Module/WebDriver.php.

@Naktibalda Naktibalda merged commit 57e2d83 into Codeception:master Jan 23, 2022
@Naktibalda
Copy link
Member

Released as 2.0.2

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