mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 19:51:30 +00:00
updated streamline-setup v2
This commit is contained in:
+2
-3
@@ -21,10 +21,9 @@ final class Styles
|
||||
/**
|
||||
* Creates a new style from the given arguments.
|
||||
*
|
||||
* @param (Closure(StylesValueObject $element, string|int ...$arguments): StylesValueObject)|null $callback
|
||||
* @return Style
|
||||
* @param (Closure(StylesValueObject $element, string|int ...$arguments): StylesValueObject)|null $callback
|
||||
*/
|
||||
public static function create(string $name, Closure $callback = null): Style
|
||||
public static function create(string $name, ?Closure $callback = null): Style
|
||||
{
|
||||
self::$storage[$name] = $style = new Style(
|
||||
$callback ?? static fn (StylesValueObject $styles) => $styles
|
||||
|
||||
Reference in New Issue
Block a user