MDL-78036 behat: Fix php81 deprecation warning
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user