diff --git a/includes/enums/LitCommon.php b/includes/enums/LitCommon.php index d8cab7a3..7eb99e3f 100644 --- a/includes/enums/LitCommon.php +++ b/includes/enums/LitCommon.php @@ -270,7 +270,7 @@ public static function isValid( string $value ) { public static function areValid( array $values ) { $values = array_reduce($values, function( $carry, $key ){ - return strpos($key, ':') ? array_merge( explode(':', $key), $carry ) : array_merge( [ $key ], $carry ); + return strpos($key, ':') ? ( $carry + explode(':', $key) ) : ( [ ...$carry, $key ] ); }, [] ); return empty( array_diff( $values, self::$values ) ); }