Skip to content

Commit

Permalink
Making sure that offset is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Laviale committed Mar 18, 2014
1 parent 13f4f54 commit bf1ba52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/timezone.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ static public function from($source)
$source = $source->getName();
}

$source = (string) $source;

if (empty(self::$cache[$source]))
{
self::$cache[$source] = new static($source);
Expand Down

0 comments on commit bf1ba52

Please sign in to comment.