Codeception / lib-innerbrowser

InnerBrowser
MIT License
79 stars 19 forks source link

Fix `TypeError` in PHP8 #30

Closed SamMousa closed 3 years ago

SamMousa commented 3 years ago

PHP8 throws a TypeError when we pass an array to preg_match, suppression with @ doesn't work in this scenario. Since preg_match() would never return a truthy value if not passed a string this change shouldn't impact any other cases or PHP versions.

Naktibalda commented 3 years ago

Thanks

Naktibalda commented 3 years ago

Released as 1.4.1