MDL-78036 behat: Fix php81 deprecation warning

This commit is contained in:
Eloy Lafuente (stronk7)
2023-05-26 18:04:18 +02:00
parent 6b8884e13b
commit d20cf16533
@@ -60,7 +60,7 @@ TPL;
$search = $this->searchcriterion;
// If there is a specific type (given, when or then) required.
if (strpos($search, '&&') !== false) {
if ($search && strpos($search, '&&') !== false) {
list($search, $type) = explode('&&', $search);
}