Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
esyede authored Jul 22, 2024
1 parent fae5158 commit 85f1778
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/carbon.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ public static function hasTestNow()

public static function hasRelativeKeywords($time)
{
if (preg_match('/[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}/', $time) !== 1) {
if (preg_match('/[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}/', (string) $time) !== 1) {
foreach (static::$relatives as $keyword) {
if (stripos($time, $keyword) !== false) {
if (stripos((string) $time, $keyword) !== false) {
return true;
}
}
Expand Down

0 comments on commit 85f1778

Please sign in to comment.