Carbon\Carbon::setUnit(): Argument #2 ($value) must be of type Carbon\Month|int|float|null, string given, called in /var/task/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 2880
2496 * @param Month|int $value new value for given unit
2497 */
2498* public function setUnit(string $unit, Month|int|float|null $value = null): static
2499 {
2500 if (\is_float($value)) {
TypeError
Carbon\Carbon::setUnit(): Argument #2 ($value) must be of type Carbon\Month|int|float|null, string given, called in /var/task/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 2880
🎯 Carbon\Carbon::setUnit 📄 /vendor/nesbot/carbon/src/Carbon/Traits/Date.php
Open in Flare