Code style should not follow Yoda style

This commit is contained in:
Adrien Loison committed 2017-10-04 00:53:05 +02:00
1 parent b968513cb9
commit 28c1bea28c
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ class Psr4Autoloader
// work backwards through the namespace names of the fully-qualified
// class name to find a mapped file name
while (false !== $pos = strrpos($prefix, '\\')) {
while (($pos = strrpos($prefix, '\\')) !== false) {
// retain the trailing namespace separator in the prefix
$prefix = substr($class, 0, $pos + 1);