ZF-8880: Zend_Validate_PostCode __construct method should have default $options = null

Description

The construct method of Zend_Validate_PostCode is missing a default value for the $options parameter, seeing as it checks if (null === $options) I would suggest adding '= null' to the constructor so that nothing needs to be passed over if you intend to fetch the locale from the registry.

  • public function __construct($options)

    • public function __construct($options = null)

Comments

I totally agree on this issue, in addition I have created a patch file.

Fixed with r20458