Skip to content

Commit 1c464e1

Browse files
committed
BUGFIX: Fix bugs in composer json and and an undefined variable detected by phpstan
1 parent 15b5c47 commit 1c464e1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Eel/ColorBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function hex(string $hex): ?ColorHelper
6161
return new ColorHelper(
6262
new RgbaColor($red, $green, $blue, $alpha)
6363
);
64-
} elseif (preg_match(self::PATTERN_HEX_LONG, $colorString, $matches)) {
64+
} elseif (preg_match(self::PATTERN_HEX_LONG, $hex, $matches)) {
6565
$red = hexdec($matches['red']);
6666
$green = hexdec($matches['green']);
6767
$blue = hexdec($matches['blue']);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"Build/Travis/bin/phpunit --verbose -c Build/Travis/unit-tests.xml"
3131
],
3232
"test": [
33-
"composer test:unit",
33+
"composer test:unit"
3434
]
3535
}
3636
}

0 commit comments

Comments
 (0)