array representation backward compat for php5

This commit is contained in:
Ivan Ganev 2017-11-08 18:32:56 +02:00
commit d5fc9ed9db
3 changed files with 3 additions and 3 deletions

View file

@ -135,7 +135,7 @@ class Audio extends AbstractStreamableMedia
* @param array $colors Array of colors for ffmpeg to use. Color format is #000000 (RGB hex string with #)
* @return Waveform
*/
public function waveform($width = 640, $height = 120, $colors = [Waveform::DEFAULT_COLOR])
public function waveform($width = 640, $height = 120, $colors = array(Waveform::DEFAULT_COLOR))
{
return new Waveform($this, $this->driver, $this->ffprobe, $width, $height, $colors);
}