Skip to content

Commit

Permalink
MOBILE-4694 behat: Fix PHP 7.4 compatibility for LMS 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Nov 6, 2024
1 parent d0a89e0 commit 4a091c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local_moodleappbehat/tests/behat/behat_app_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ protected function resize_app_window(int $width = 500, int $height = 720) {
* @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;
Expand Down

0 comments on commit 4a091c5

Please sign in to comment.