refactor: susun semula struktur folder — Laravel source ke src/
This commit is contained in:
25
vendor/thecodingmachine/safe/generated/8.1/calendar.php
vendored
Normal file
25
vendor/thecodingmachine/safe/generated/8.1/calendar.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Safe;
|
||||
|
||||
use Safe\Exceptions\CalendarException;
|
||||
|
||||
/**
|
||||
* @param int|null $timestamp
|
||||
* @return int
|
||||
* @throws CalendarException
|
||||
*
|
||||
*/
|
||||
function unixtojd(?int $timestamp = null): int
|
||||
{
|
||||
error_clear_last();
|
||||
if ($timestamp !== null) {
|
||||
$safeResult = \unixtojd($timestamp);
|
||||
} else {
|
||||
$safeResult = \unixtojd();
|
||||
}
|
||||
if ($safeResult === false) {
|
||||
throw CalendarException::createFromPhpError();
|
||||
}
|
||||
return $safeResult;
|
||||
}
|
||||
Reference in New Issue
Block a user