Merge pull request #4229 from crazyserver/MOBILE-4694

MOBILE-4694 behat: Fix PHP 7.4 compatibility for LMS 4.1
main
Dani Palou 2024-11-06 11:54:37 +01:00 committed by GitHub
commit 07a1509b70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -740,7 +740,7 @@ EOF;
* @param string $text
* @return string|string[] Transformed text.
*/
protected function transform_time_to_string(string $text): string|array {
protected function transform_time_to_string(string $text) {
if (!preg_match('/##(.*)##/', $text, $matches)) {
// No time found, return the original text.
return $text;

View File

@ -7,7 +7,7 @@
defined('MOODLE_INTERNAL') || die;
$plugin->version = {{ pluginVersion }};
$plugin->requires = 2016052300;
$plugin->requires = 2018051700;
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '{{ appVersion }}';
$plugin->component = 'local_moodleappbehat';

View File

@ -21,7 +21,7 @@ Feature: Test accepting pending policies on signup
But I should not be able to press "Continue" in the app
And I should not be able to press "User account" in the app
When I press "Link to site policy agreement" in the app
When I press "Site policy agreement" "a" in the app
And I press "OK" in the app
Then the app should have opened a browser tab with url "moodle.org"