Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/datetime.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function carbon(string $date, string $format = DATE_TIME_FORMAT_ISO): Carbon\Car
* @return string
* @see https://github.com/spatie-custom/blender/blob/master/app/Foundation/helpers.php
*/
function roman_year(int $year = null): string
function roman_year(?int $year = null): string
{
if (!is_numeric($year)) {
$year = (int)date('Y');
Expand Down
2 changes: 1 addition & 1 deletion src/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function isIntegerFloatingPoint($value, $unsigned = true): bool
&& $value <= PHP_INT_MAX && $value >= PHP_INT_MIN
//big number rouned to int aproximately!
//big number change into exp format
&& ((int)((double)$value) == $value || (int)$value == $value || strpos(strtoupper((string)$value),
&& ((int)((float)$value) == $value || (int)$value == $value || strpos(strtoupper((string)$value),
'E') === false);
Comment on lines +130 to 131
}

Expand Down