Still won't work, $data is passed as int|null so hinting it as ?int should be fine. However he later accesses this variable as an array. Here is the fixed version. P.S. There is no necessity to .zip the folder!