phingofficial/phing — Issue #13: Mappers broken: missing argument for constructor
Author: mrook
Created: 2012-01-04 14:37:02+00:00
State: closed

Using mappers is currently broken and gives an error message:
''Fatal error: Argument 1 must be an object of class Project in /path/to/phing/2.2.0RC1/classes/phing/types/Mapper.php on line 52''

Mapper seems to be instantiated in {{{Project::createDataType()}}} with {{{$type = new $cls();}}} on line 650. However {{{Mapper::__construct()}}} requires an argument of type Project which is missing here and leads to the error message named above.

Changing the instantiation to {{{$type = new $cls($this);}}} doesn't help as other classes inherited from {{{DataType}}} expect other arguments on their constructor method.