Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update accepted/PSR-0.md

`stripos` is extravagant and wasteful.
  • Loading branch information...
commit 5f80e827779acfd9c6150edeadc87424b74166c2 1 parent 74ef01f
@donatj donatj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  accepted/PSR-0.md
View
2  accepted/PSR-0.md
@@ -50,7 +50,7 @@ function autoload($className)
$className = ltrim($className, '\\');
$fileName = '';
$namespace = '';
- if ($lastNsPos = strripos($className, '\\')) {
+ if ($lastNsPos = strrpos($className, '\\')) {
$namespace = substr($className, 0, $lastNsPos);
$className = substr($className, $lastNsPos + 1);
$fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
Please sign in to comment.
Something went wrong with that request. Please try again.