behat on php 7.2 vs 7.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned | ||
20.10 |
Fix Released
|
Medium
|
Unassigned | ||
21.04 |
Fix Released
|
Medium
|
Unassigned | ||
21.10 |
Fix Released
|
Medium
|
Unassigned | ||
22.04 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In external/
There are some elements that do not play well with php 7.4, e.g. implode() is now no longer flexible on the order of its attributes and throws an error.
Edits to the files in external/vendor will be overwritten on the next 'make initcomposer'.
To resolve this I have the following suggestion;
diff --git a/external/
index 2cea1b26cb.
--- a/external/
+++ b/external/
@@ -11,12 +11,21 @@
- "symfony/
+ "symfony/
+ "cweagans/
},
"autoload": {
"psr-0": {
}
+ },
+ "config": {
+ "allow-plugins": {
+ "cweagans/
+ }
+ },
+ "extra": {
+ "patches-file": "composer.
}
}
This will pull in cweagans/
external/
{
"patches": {
"behat/mink": {
"Fix implode()": "escaper.patch"
}
}
}
This gives us a single patch file that we will use.
external/
--- a/vendor/
+++ b/vendor/
@@ -47,6 +47,6 @@
}
}
- return sprintf(
+ return sprintf(
}
}
This fixes the implode() statement that causes issues on php 7.4.
Changed in mahara: | |
status: | New → Confirmed |
Changed in mahara: | |
status: | Confirmed → Fix Committed |
milestone: | none → 22.04.0 |
importance: | Undecided → Medium |
Patch for "main" branch: https:/ /reviews. mahara. org/12510