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

mikeryan’s picture

Status: Needs review » Fixed

Committed to D6 and D7, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

oups, written in French, my bad!