Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
adjustString: dont touch non-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlindhe committed Nov 9, 2015
1 parent 66e849c commit 72faf1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ private function allocateLocaleArray($path)
*/
private function adjustString($s)
{
if (!is_string($s)) {
return $s;
}

return preg_replace_callback(
'/:\w*/',
function ($matches) {
Expand Down

0 comments on commit 72faf1f

Please sign in to comment.