Do not call mb_strpos on non-string arguments
MODIFY
src/Behat/Behat/HelperContainer/Argument/ServicesResolver.php
src/Behat/Behat/HelperContainer/Argument/ServicesResolver.php
@@ -63,7 +63,7 @@ final class ServicesResolver implements ArgumentResolver
*/
private function resolveArgument($value)
{
- if (0 === mb_strpos($value, '@')) {
+ if (is_string($value) && 0 === mb_strpos($value, '@')) {
return $this->container->get(mb_substr($value, 1));
}

Do not call mb_strpos on non-string arguments