diff --git a/composer.json b/composer.json index 2a8f506..5ab2b19 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ }, "require-dev": { "laravel/pint": "^1.14", - "nunomaduro/larastan": "^2.9", + "larastan/larastan": "^2.9", "orchestra/testbench": "^9.0", "pestphp/pest": "^2.34", "phpstan/extension-installer": "^1.3", diff --git a/src/DTO/Documents/DocumentIndex/IndexDetectDTO.php b/src/DTO/Documents/DocumentIndex/IndexDetectDTO.php index 9e56666..861bfc9 100644 --- a/src/DTO/Documents/DocumentIndex/IndexDetectDTO.php +++ b/src/DTO/Documents/DocumentIndex/IndexDetectDTO.php @@ -18,6 +18,7 @@ public static function make(string $name, mixed $value) is_int($value) => IndexNumericDTO::make($name, $value), is_float($value) => IndexDecimalDTO::make($name, $value), $value instanceof Carbon => IndexDateTimeDTO::make($name, $value), + $value instanceof \Carbon\Carbon => IndexDateTimeDTO::make($name, $value), default => null, }; }