Explorar o código

[ZF-8880] Zend_Validate:

- allow empty constructur

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20457 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas %!s(int64=16) %!d(string=hai) anos
pai
achega
09e5122c56
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      library/Zend/Validate/PostCode.php

+ 1 - 1
library/Zend/Validate/PostCode.php

@@ -70,7 +70,7 @@ class Zend_Validate_PostCode extends Zend_Validate_Abstract
      *
      * @param string|Zend_Locale|array|Zend_Config $options
      */
-    public function __construct($options)
+    public function __construct($options = null)
     {
         if ($options instanceof Zend_Config) {
             $options = $options->toArray();