Skip to content

Commit c6404ee

Browse files
committed
Added types
1 parent b37bd6e commit c6404ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/poldixd/HumanReadableTime/Components/HumanReadableTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(Datetime $datetime, string $humanUntil = '-1 hour',
2424
: $datetime->diffForHumans(now());
2525
}
2626

27-
public function render()
27+
public function render(): string
2828
{
2929
return <<<'blade'
3030
<time {{ $attributes->merge(['datetime' => $datetime->toDateTimeString()]) }}>{{ $output }}</time>

src/poldixd/HumanReadableTime/Providers/HumanReadableTimeServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class HumanReadableTimeServiceProvider extends ServiceProvider
1010
{
11-
public function boot()
11+
public function boot(): void
1212
{
1313
Blade::component('human-readable-time', HumanReadableTime::class);
1414
}

0 commit comments

Comments
 (0)