MDL-67668 behat: Remove recursion added in transition to trait

This commit is contained in:
Eloy Lafuente (stronk7)
2020-11-23 20:24:25 +01:00
parent 8688e7aff5
commit a757acbc40
+1 -1
View File
@@ -173,7 +173,7 @@ trait behat_session_trait {
if (method_exists('behat_selectors', $transformfunction)) {
// A selector-specific transformation exists.
// Perform initial transformation of the selector within the current container.
$normalised = $this->normalise_selector($selector, $locator, $container ?: $this->getSession()->getPage());
$normalised = behat_selectors::{$transformfunction}($this, $locator, $container ?: $this->getSession()->getPage());
$selector = $normalised['selector'];
$locator = $normalised['locator'];
$container = $normalised['container'];