Skip to content

Commit df677f3

Browse files
committed
Update Color.php
Fix error 'Declaration of Image_Canvas_Color::getRange() should be compatible with Image_Color::getRange($degrees = 2)'
1 parent e6a1ae2 commit df677f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Image/Canvas/Color.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function color2RGB($color)
150150
* @return array Array of all the colors, one element for each color.
151151
* @access public
152152
*/
153-
function getRange ($degrees)
153+
function getRange ($degrees = 2)
154154
{
155155
$tempColors = parent::getRange($degrees);
156156

@@ -184,4 +184,4 @@ function _setColors ( $col1, $col2 )
184184
$this->color2 = Image_Canvas_Color::color2RGB($col2);
185185
}
186186
}
187-
?>
187+
?>

0 commit comments

Comments
 (0)