Bug #4561 PHP error in transformations

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>