compatibility for older versions of php

changed $parameter = [] to $parameter =array();