Skip to content

Commit

Permalink
Fixes docblock.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Mar 3, 2019
1 parent d28043b commit 02f12a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ function assetic(string $file, string $buildDirectory = 'build'): string
/**
* Parse string to Carbon instance.
*
* @param string|null $datetime
* @param string $timezone
* @param mixed $datetime
* @param string $timezone
*
* @return \Illuminate\Support\Carbon|null
* @return \Carbon\CarbonInterface|null
*/
function carbonize($datetime, string $timezone = 'UTC')
function carbonize($datetime, string $timezone = 'UTC'): ?CarbonInterface
{
try {
if ($datetime instanceof CarbonInterface) {
Expand Down

0 comments on commit 02f12a0

Please sign in to comment.