Skip to content

Commit

Permalink
Fix - FolderBrowserTask: Accept array type for name_pattern option
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Bouix committed Jan 25, 2021
1 parent c5138e1 commit 3e40b10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Documentation/changelog/CHANGELOG-3.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ v3.1-dev

### Fixes

* FolderBrowserTask: Accept array type for `name_pattern` option

### BC breaks

v3.1.0
Expand Down
2 changes: 1 addition & 1 deletion Task/File/FolderBrowserTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static function (Options $options, $value) {
'empty_log_level' => LogLevel::WARNING,
]
);
$resolver->setAllowedTypes('name_pattern', ['NULL', 'string']);
$resolver->setAllowedTypes('name_pattern', ['NULL', 'string', 'array']);
$resolver->setAllowedValues(
'empty_log_level',
[
Expand Down

0 comments on commit 3e40b10

Please sign in to comment.