Skip to content

Commit a2230b9

Browse files
small update to fix a bug when larval loads the colours it needed to
have a default $bgHex field defined.
1 parent 0ca7522 commit a2230b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SoapBox/Csscolor/csscolor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ class Csscolor {
5252
//==================================================
5353
//==CONSTRUCTOR=====================================
5454
//==================================================
55-
public static function make($bgHex, $fgHex='')
55+
public static function make($bgHex= '', $fgHex='')
5656
{
5757
return new self($bgHex, $fgHex);
5858
}
5959

60-
public function __construct($bgHex, $fgHex='') {
60+
public function __construct($bgHex='', $fgHex='') {
6161
// This is the constructor method for the class,
6262
// which is called when a new object is created.
6363

@@ -68,7 +68,7 @@ public function __construct($bgHex, $fgHex='') {
6868
// Initialize the palette
6969
$this->setPalette($bgHex, $fgHex);
7070
}
71-
71+
7272
/*
7373
function Csscolor($bgHex, $fgHex='') {
7474
// This is the constructor method for the class,
@@ -88,7 +88,7 @@ function Csscolor($bgHex, $fgHex='') {
8888
//==================================================
8989

9090
//--------------------------------------------------
91-
function setPalette($bgHex, $fgHex = '')
91+
function setPalette($bgHex='', $fgHex = '')
9292
{
9393
// Initialize the color palettes
9494

0 commit comments

Comments
 (0)