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

@ -33,7 +33,7 @@ class Waveform extends AbstractMediaType
*/
protected $colors;
public function __construct(Audio $audio, FFMpegDriver $driver, FFProbe $ffprobe, $width, $height, $colors = [self::DEFAULT_COLOR])
public function __construct(Audio $audio, FFMpegDriver $driver, FFProbe $ffprobe, $width, $height, $colors = array(self::DEFAULT_COLOR))
{
parent::__construct($audio->getPathfile(), $driver, $ffprobe);
$this->audio = $audio;