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

fix austrian postal codes starting with invalid 0 #1545

Merged
merged 1 commit into from
Aug 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/Faker/Provider/de_AT/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down