diff options
author | Ed Sanders <esanders@wikimedia.org> | 2020-07-22 17:49:12 +0100 |
---|---|---|
committer | Ed Sanders <esanders@wikimedia.org> | 2020-07-22 17:49:12 +0100 |
commit | 0cf40a4f7a79ef73d8f2c187a25159d57bd8c7b0 (patch) | |
tree | 04802d9668cde1c88f4fc37cf5d4a1470977790e /includes/AutoLoader.php | |
parent | 3a1faac3764ecae8dde813bd67a5a8e8f4975a85 (diff) | |
download | mediawikicore-0cf40a4f7a79ef73d8f2c187a25159d57bd8c7b0.tar.gz mediawikicore-0cf40a4f7a79ef73d8f2c187a25159d57bd8c7b0.zip |
Flip Yoda conditionals
Change-Id: Id3495b6f15c267123c89f3a0ace496e6ecbeb58e
Diffstat (limited to 'includes/AutoLoader.php')
-rw-r--r-- | includes/AutoLoader.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index 2dd7c00181ab..831ac0513635 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -76,7 +76,7 @@ class AutoLoader { if ( !$filename && strpos( $className, '\\' ) !== false ) { // This class is namespaced, so try looking at the namespace map $prefix = $className; - while ( false !== $pos = strrpos( $prefix, '\\' ) ) { + while ( ( $pos = strrpos( $prefix, '\\' ) ) !== false ) { // Check to see if this namespace prefix is in the map $prefix = substr( $className, 0, $pos + 1 ); if ( isset( self::$psr4Namespaces[$prefix] ) ) { |