Skip to content

Commit

Permalink
Small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jan 22, 2017
1 parent 5d561b2 commit def199d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,12 @@ public static function registerAlias($alias, $original, $version = false)
*
* @throws RuntimeException
*
* @note This function will be changed in J4 to support PSR-4 namespace registering.
* @note The default argument of $type will be changed in J4 to be 'psr4'
* @since 12.3
*/
public static function registerNamespace($namespace, $path, $reset = false, $prepend = false, $type = 'psr0')
{
if ($type != 'psr0' && $type != 'psr4')
if ($type !== 'psr0' && $type !== 'psr4')
{
throw new InvalidArgumentException('Type needs to be prs0 or psr4!');
}
Expand Down

0 comments on commit def199d

Please sign in to comment.