We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e80bce commit a86dfe9Copy full SHA for a86dfe9
src/models/Settings.php
@@ -11,6 +11,7 @@
11
namespace nystudio107\transcoder\models;
12
13
use craft\base\Model;
14
+use craft\validators\ArrayValidator;
15
16
/**
17
* Transcoder Settings model
@@ -245,9 +246,9 @@ public function rules()
245
246
['ffprobeOptions', 'safe'],
247
['transcoderPath', 'string'],
248
['transcoderPath', 'required'],
- ['transcoderPaths', 'array'],
249
+ ['transcoderPaths', ArrayValidator::class],
250
['transcoderPaths', 'required'],
- ['transcoderUrls', 'array'],
251
+ ['transcoderUrls', ArrayValidator::class],
252
['transcoderUrls', 'required'],
253
['useHashedNames', 'boolean'],
254
['useHashedNames', 'default', 'value' => false],
0 commit comments