previewict / gchartphp

Automatically exported from code.google.com/p/gchartphp
0 stars 0 forks source link

PHP Strict standards #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Declaration of gMapChart::setColors() should be compatible with that of 
gChart::setColors()

I'm using gchartphp with Nette framework and it has strict policy against 
every possi So my log is full of error messages and even though app 
working fine it's annoying.

So, here's method gMapChart::setColors that makes second argument 
invisible and is compatible with gChart::setColors

public function setColors($defaultColor) {
        $gradientColors = (func_num_args() > 1) ? func_get_arg
(2) : array('0000FF', 'FF0000');
        $this -> setProperty('chco', $this->encodeData(array_merge
(array($defaultColor), $gradientColors), ','));
    }

Original issue reported on code.google.com by kaj...@k47.cz on 31 May 2010 at 7:39

GoogleCodeExporter commented 9 years ago
Thank you for the submission.

Your code was added in r42.

Let me know if the changed fixes your issue.

Original comment by bardellie on 31 May 2010 at 10:52