optparse icon indicating copy to clipboard operation
optparse copied to clipboard

Code is not E_STRICT clean

Open pkracht opened this issue 12 years ago • 0 comments

Could you please supply the correct parameters in lib / CHH / Optparse.php

eg. insert defaults before line 54ff like:

isset($options["alias"]) OR $options["alias"] = array(); isset($options["default"]) OR $options["default"] = NULL; isset($options["has_value"]) OR $options["has_value"] = FALSE; isset($options["help"]) OR $options["help"] = "";

(and remove the not working "@" since PHP 5.4 with E_STRICT by default)

$this->aliases = array_merge(array("--$name"), (array) $options["alias"]); $this->defaultValue = $options["default"]; $this->hasValue = (bool) $options["has_value"]; $this->help = $options["help"];

Thank you very much... Sincerely yours

pkracht avatar Jul 09 '13 13:07 pkracht