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

Commit 72faf1f

Browse files
committed
adjustString: dont touch non-strings
1 parent 66e849c commit 72faf1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Generator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ private function allocateLocaleArray($path)
6565
*/
6666
private function adjustString($s)
6767
{
68+
if (!is_string($s)) {
69+
return $s;
70+
}
71+
6872
return preg_replace_callback(
6973
'/:\w*/',
7074
function ($matches) {

0 commit comments

Comments
 (0)