Skip to content

Commit 813410b

Browse files
authored
Merge pull request #37 from SMillerDev/patch-1
Update constructor to accept nullable Colors parameter
2 parents 4e669f3 + 9251139 commit 813410b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Options
4040
* @param Colors $colors optional configured color object
4141
* @throws Exception when arguments can't be read
4242
*/
43-
public function __construct(Colors $colors = null)
43+
public function __construct(?Colors $colors = null)
4444
{
4545
if (!is_null($colors)) {
4646
$this->colors = $colors;

0 commit comments

Comments
 (0)