Skip to content

Commit 0704328

Browse files
committed
Handle a case when excludePaths is a string
1 parent 2227851 commit 0704328

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AspectMock/Kernel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public function init(array $options = [])
1919
{
2020
if (!isset($options['excludePaths'])) {
2121
$options['excludePaths'] = [];
22+
} elseif (!is_array($options['excludePaths'])) {
23+
$options['excludePaths'] = [ $options['excludePaths'] ];
2224
}
2325
$options['debug'] = true;
2426
$options['excludePaths'][] = __DIR__;

0 commit comments

Comments
 (0)