With PHP 5.4 rc7, I got this fatal errot:
Error : Fatal error: Declaration of MigrateSimpleFieldHandler::__construct() must be compatible with MigrateHandler::__construct() in migrate/plugins/destinations/fields.inc on line 161
Proposed fix:
--- a/plugins/destinations/fields.inc
+++ b/plugins/destinations/fields.inc
@@ -128,7 +128,7 @@ abstract class MigrateSimpleFieldHandler extends MigrateFieldHandler {
* - 'value_key' string with the name of the key in the fields value array.
* - 'skip_empty' Boolean indicating that empty values should not be saved.
*/
- public function __construct($options) {
+ public function __construct($options = array()) {
if (isset($options['value_key'])) {
$this->fieldValueKey = $options['value_key'];
}
Comments
Comment #1
mikeryanCommitted to D6 and D7, thanks!
Comment #2.0
(not verified) commentedoups, written in French, my bad!