Skip to content

Commit

Permalink
Merge pull request #24 from stephpy/master
Browse files Browse the repository at this point in the history
setAllowedTypes should have 2 arguments, first is the field, second a…
  • Loading branch information
shouze committed Feb 10, 2016
2 parents 2406cdf + 1979132 commit 4c94904
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Rezzza/Vaultage/Backend/Basic/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ public function build($configuration, array $data)
'passphrase' => false,
'encrypted_extension' => 'crypted',
));
$resolver->setAllowedTypes(array(
'key' => ['string'],
'encrypted_extension' => ['string'],
'files' => ['array'],
));

$resolver->setAllowedTypes('key', 'string');
$resolver->setAllowedTypes('encrypted_extension', 'string');
$resolver->setAllowedTypes('files', 'array');

$data = $resolver->resolve($data);
$key = $data['key'];
Expand Down

0 comments on commit 4c94904

Please sign in to comment.