Skip to content

Commit 4fcc5dc

Browse files
Merge branch 'release/6.0.1'
2 parents e830fa6 + 27a569e commit 4fcc5dc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All Notable changes to `sebastiaanluca/laravel-boolean-dates` will be documented
44

55
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
66

7+
## 6.0.1 (2022-03-17)
8+
9+
### Fixed
10+
11+
- Fixed attribute getter value type hint
12+
713
## 6.0.0 (2022-03-13)
814

915
⚠️ This release is a complete rewrite and changes the way it has to be used. Please consult the [README](README.md) for instructions.

src/BooleanDateAttribute.php

+2-2
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)