Skip to content

Commit 5086577

Browse files
committed
Merge pull request googleapis#349 from ianbarber/master
Fix typo in autoloader
2 parents 2d1dcbd + d0e7380 commit 5086577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function google_api_php_client_autoload($className) {
2222
}
2323
if (count($classPath) > 3) {
2424
// Maximum class file path depth in this project is 3.
25-
$classPath = array_slice($className, 0, 3);
25+
$classPath = array_slice($classPath, 0, 3);
2626
}
2727
$filePath = dirname(__FILE__) . '/src/' . implode('/', $classPath) . '.php';
2828
if (file_exists($filePath)) {

0 commit comments

Comments
 (0)