From 60fa1afd71cc144ae9ddad631a825c597cb11dff Mon Sep 17 00:00:00 2001 From: Matthew Paul Gross <3311227+mpge@users.noreply.github.com> Date: Sat, 11 Aug 2018 03:42:16 -0400 Subject: [PATCH] fix austrian postal codes starting with invalid 0 Temp fix for https://github.com/fzaninotto/Faker/issues/1544 - should probably implement more strict values in the future --- src/Faker/Provider/de_AT/Address.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Faker/Provider/de_AT/Address.php b/src/Faker/Provider/de_AT/Address.php index 861f6fcdda..4a2272ca43 100644 --- a/src/Faker/Provider/de_AT/Address.php +++ b/src/Faker/Provider/de_AT/Address.php @@ -13,7 +13,18 @@ class Address extends \Faker\Provider\Address 'gasse', 'platz', 'ring', 'straße', 'weg', ); - protected static $postcode = array('####'); + // As per https://en.wikipedia.org/wiki/List_of_postal_codes_in_Austria (@todo implement more strict postal code values according to wikipedia) + protected static $postcode = array( + '1###', + '2###', + '3###', + '4###', + '5###', + '6###', + '7###', + '8###', + '9###', + ); protected static $cityNames = array( 'Allentsteig', 'Altheim', 'Althofen', 'Amstetten', 'Ansfelden', 'Attnang-Puchheim',