Skip to content

Commit

Permalink
Merge pull request #3 from jarodhayes/master
Browse files Browse the repository at this point in the history
Fixed 'Uninitialized string offset' warning.
  • Loading branch information
kjantzer committed Mar 4, 2015
2 parents a72b77f + ba3c901 commit 0722ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LiquidMetal.php
Expand Up @@ -122,7 +122,7 @@ private static function isUpperCase($string, $index)

private static function isNewWord($string, $index)
{
$c = $string{$index - 1};
$c = $index == 0 ? $c = false : $string{$index - 1};
return $c && (strpos(self::$WORD_SEPARATORS, $c) !== false);
}

Expand Down

0 comments on commit 0722ebd

Please sign in to comment.