Skip to content

Commit 4787a81

Browse files
committed
Updated bootstrap as per changes to composer.
1 parent feebe7b commit 4787a81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
if (file_exists(dirname(__DIR__).'/vendor/composer')) {
1010
$map = require dirname(__DIR__).'/vendor/composer/autoload_namespaces.php';
1111
foreach ($map as $path)
12-
$paths[] = $path;
12+
$paths = array_merge($paths, $path);
1313
}
1414

1515
$paths[] = realpath(__DIR__.DIRECTORY_SEPARATOR.'src');
@@ -27,7 +27,7 @@ function($className) {
2727
if (isset($composerClassmap[$className]))
2828
return require $composerClassmap[$className];
2929

30-
$fileParts = explode('\\', ltrim($className, '\\'));
30+
$fileParts = explode('\\', ltrim($className, '\\'));
3131

3232
if (false !== strpos(end($fileParts), '_'))
3333
array_splice($fileParts, -1, 1, explode('_', current($fileParts)));

0 commit comments

Comments
 (0)