Skip to content

Commit baa2f17

Browse files
author
Bram
authored
Allow for -> syntax to be used in parsing (#423)
LGTM!
1 parent a830a49 commit baa2f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Faker/Generator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ public function parse($string)
736736
return $this->format($matches[1]);
737737
};
738738

739-
return preg_replace_callback('/\{\{\s?(\w+)\s?\}\}/u', $callback, $string);
739+
return preg_replace_callback('/{{\s?(\w+|[\w\\\]+->\w+?)\s?}}/u', $callback, $string);
740740
}
741741

742742
/**

0 commit comments

Comments
 (0)