From 4bf7ea44fe6dc9de4f5866f8622dadb938b017c1 Mon Sep 17 00:00:00 2001 From: The Lost Guy Date: Sun, 6 Oct 2019 19:14:15 +0330 Subject: [PATCH] Bug fix related to issue #1804 --- src/Faker/Provider/ru_RU/Address.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Faker/Provider/ru_RU/Address.php b/src/Faker/Provider/ru_RU/Address.php index aa0d408819..287ee95731 100644 --- a/src/Faker/Provider/ru_RU/Address.php +++ b/src/Faker/Provider/ru_RU/Address.php @@ -84,6 +84,10 @@ class Address extends \Faker\Provider\Address protected static $streetAddressFormats = array( "{{streetPrefix}} {{street}}, {{buildingNumber}}" ); + + protected static $streetNameFormats = array( + '{{streetPrefix}} {{street}}' + ); public static function buildingNumber() { @@ -136,4 +140,11 @@ public static function street() { return static::randomElement(static::$street); } + + public function streetName() + { + $format = static::randomElement(static::$streetNameFormats); + + return $this->generator->parse($format); + } }