Skip to content

Commit d4ff472

Browse files
committed
cs
1 parent 0d83a4a commit d4ff472

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Contract/Label.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ public function getMedia(): array;
2929

3030
public function getCharset(): ?Charset;
3131

32-
public function getCommands(?string $language = null): iterable;
32+
public function getCommands(string $language): iterable;
3333
}

src/Label/Element.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class Element
3434
*/
3535
public static function raw($data): Raw
3636
{
37-
return new Raw(...\func_get_args());
37+
return new Raw($data);
3838
}
3939

4040
/**
@@ -47,7 +47,7 @@ public static function raw($data): Raw
4747
*/
4848
public static function clear(?string $field = null): Clear
4949
{
50-
return new Clear(...\func_get_args());
50+
return new Clear($field);
5151
}
5252

5353
public static function bitmap(int $x, int $y, \Imagick $canvas): Bitmap

src/Label/Label.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function getHeight(): ?float
9292
return $this->media['height'] ?? null;
9393
}
9494

95-
public function getCommands(?string $language = null): iterable
95+
public function getCommands(string $language): iterable
9696
{
9797
foreach ($this->commands as $command) {
9898
if ($command instanceof Condition) {

0 commit comments

Comments
 (0)