Skip to content

Commit ce78d1d

Browse files
committed
proceedSeeInField casts value to string before comparison
because assertContains compares strictly in PHPUnit 9
1 parent fcac62c commit ce78d1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Lib/InnerBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ protected function proceedSeeInField(Crawler $fields, $value)
753753
}
754754
return [
755755
'Contains',
756-
$value,
756+
(string)$value,
757757
$testValues,
758758
sprintf(
759759
'Failed asserting that `%s` is in %s\'s value: %s',

0 commit comments

Comments
 (0)