Skip to content
This repository
Browse code

Merge pull request #53 from donatj/patch-1

Update accepted/PSR-0.md
  • Loading branch information...
commit cc72fba536ec4a17715c2bcb86349868bff4e771 2 parents 74ef01f + 5f80e82
Paul Dragoonis dragoonis authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  accepted/PSR-0.md
2  accepted/PSR-0.md
Source Rendered
@@ -50,7 +50,7 @@ function autoload($className)
50 50 $className = ltrim($className, '\\');
51 51 $fileName = '';
52 52 $namespace = '';
53   - if ($lastNsPos = strripos($className, '\\')) {
  53 + if ($lastNsPos = strrpos($className, '\\')) {
54 54 $namespace = substr($className, 0, $lastNsPos);
55 55 $className = substr($className, $lastNsPos + 1);
56 56 $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;

0 comments on commit cc72fba

Please sign in to comment.
Something went wrong with that request. Please try again.