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

Commit

Permalink
Merge pull request #1545 from mpge/patch-1
Browse files Browse the repository at this point in the history
fix austrian postal codes starting with invalid 0
  • Loading branch information
localheinz committed Aug 25, 2019
2 parents 1273b5d + 60fa1af commit c89e3f6
Showing 1 changed file with 12 additions and 1 deletion.
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

0 comments on commit c89e3f6

Please sign in to comment.