Skip to content

Commit a86dfe9

Browse files
committed
Use ArrayValidator
Signed-off-by: Andrew Welch <andrew@nystudio107.com>
1 parent 8e80bce commit a86dfe9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/models/Settings.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace nystudio107\transcoder\models;
1212

1313
use craft\base\Model;
14+
use craft\validators\ArrayValidator;
1415

1516
/**
1617
* Transcoder Settings model
@@ -245,9 +246,9 @@ public function rules()
245246
['ffprobeOptions', 'safe'],
246247
['transcoderPath', 'string'],
247248
['transcoderPath', 'required'],
248-
['transcoderPaths', 'array'],
249+
['transcoderPaths', ArrayValidator::class],
249250
['transcoderPaths', 'required'],
250-
['transcoderUrls', 'array'],
251+
['transcoderUrls', ArrayValidator::class],
251252
['transcoderUrls', 'required'],
252253
['useHashedNames', 'boolean'],
253254
['useHashedNames', 'default', 'value' => false],

0 commit comments

Comments
 (0)