skip to Main Content

the error is :

CarbonCarbon::setLastErrors(): Argument #1 ($lastErrors) must be of type array, bool given, called in 
C:UserstejassurveDocumentscodejobhunt_projectvendornesbotcarbonsrcCarbonTraitsCreator.php on line 98

below is the line where error comes

self::setLastErrors(parent::getLastErrors());

2

Answers


  1. If you can not change your PHP version to 8.1, you can update this line

    File Path

    ./vendor/nesbot/carbon/src/Carbon/Traits/Creator.php

    Line No:

    928

    Old Line
    private static function setLastErrors(array $lastErrors)

    New Line

    private static function setLastErrors($lastErrors)

    it work
    thank you

    Login or Signup to reply.
  2. Just run this command:

    composer update

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search