ソースを参照

[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 16 年 前
コミット
09e5122c56
1 ファイル変更1 行追加1 行削除
  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();