Skip to content

Commit be0a05d

Browse files
committed
Fix the return type of DateIntervalField::new
1 parent 5dd19c2 commit be0a05d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/EasyAdmin/DateIntervalField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DateIntervalField implements FieldInterface
1010
{
1111
use FieldTrait;
1212

13-
public static function new(string $propertyName, ?string $label = null)
13+
public static function new(string $propertyName, ?string $label = null): self
1414
{
1515
return (new self())
1616
->setProperty($propertyName)

0 commit comments

Comments
 (0)