The array and string offset access syntax using curly braces is deprecated.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
d15ad1b5af
commit
1b0f30b1ab
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class Util {
|
||||||
public function hexToRGB($color) {
|
public function hexToRGB($color) {
|
||||||
$hex = preg_replace("/[^0-9A-Fa-f]/", '', $color);
|
$hex = preg_replace("/[^0-9A-Fa-f]/", '', $color);
|
||||||
if (strlen($hex) === 3) {
|
if (strlen($hex) === 3) {
|
||||||
$hex = $hex{0} . $hex{0} . $hex{1} . $hex{1} . $hex{2} . $hex{2};
|
$hex = $hex[0] . $hex[0] . $hex[1] . $hex[1] . $hex[2] . $hex[2];
|
||||||
}
|
}
|
||||||
if (strlen($hex) !== 6) {
|
if (strlen($hex) !== 6) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue