The below line
$result[‘0’][‘totalSumSqft’] = array_sum(array_column($query,‘totalSqft’));
returns an error " number_format() expects parameter 1 to be float, string given" in my yii2 project
When I changed this line to
$result[‘0’][‘totalSumSqft’] = “0.0000”; the error disappeared.
How can resolve this issue?