Skip to content

Commit a9f4c95

Browse files
Fix type hinting
1 parent 73a2f86 commit a9f4c95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BooleanDateAttribute.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class BooleanDateAttribute extends Attribute
1212
public static function for(string $column): static
1313
{
1414
return parent::make(
15-
get: static fn (?string $value, array $attributes): bool => static::getBooleanDate($value, $attributes, $column),
15+
get: static fn (mixed $value, array $attributes): bool => static::getBooleanDate($attributes, $column),
1616
set: static fn (mixed $value, array $attributes): array => static::setBooleanDate($value, $attributes, $column),
1717
);
1818
}
1919

20-
private static function getBooleanDate(mixed $value, array $attributes, string $column): bool
20+
private static function getBooleanDate(array $attributes, string $column): bool
2121
{
2222
return array_key_exists($column, $attributes) && $attributes[$column] !== null;
2323
}

0 commit comments

Comments
 (0)