Closed (fixed)
Project:
Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2012 at 13:51 UTC
Updated:
5 Mar 2012 at 22:40 UTC
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!