Skip to content

Commit

Permalink
Use strtolower
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed May 22, 2024
1 parent 6507ba2 commit 8a56070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function cli_autoload( $className ) {
$fileName = '';
$namespace = '';
if ($lastNsPos = strrpos($className, '\\')) {
$namespace = substr($className, 0, $lastNsPos);
$namespace = strtolower(substr($className, 0, $lastNsPos));
$className = substr($className, $lastNsPos + 1);
$fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
}
Expand Down

0 comments on commit 8a56070

Please sign in to comment.