Laravel error vendor/facade/ignition/src/SolutionProviders/MergeConflictSolutionProvider. Hi all. I have a running app which I get this error when run php artisan tinker command.
vendor/facade/ignition/src/SolutionProviders/MergeConflictSolutionProvider.
Any suggestion why?
@tisuchi Thanks, but I checked this one already but now luck :(
@suteam Can you provide more details of your error?
@tisuchi thanks. here is the output
Carbon\Carbon::setLastErrors(): Argument #1 ($lastErrors) must be of type array, false given, called in .../vendor/nesbot/carbon/src/Carbon/Traits/Creator.php on line 98
at vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:928
924▕ * @param array $lastErrors
925▕ *
926▕ * @return void
927▕ */
➜ 928▕ private static function setLastErrors(array $lastErrors)
929▕ {
930▕ static::$lastErrors = $lastErrors;
931▕ }
932▕
Whoops\Exception\ErrorException
Using ${var} in strings is deprecated, use {$var} instead
at vendor/facade/ignition/src/SolutionProviders/MergeConflictSolutionProvider.php:52
48▕ }
49▕
50▕ protected function getCurrentBranch(string $directory): string
51▕ {
➜ 52▕ $branch = "'".trim(shell_exec("cd ${directory}; git branch | grep \\* | cut -d ' ' -f2"))."'";
53▕
54▕ if (! isset($branch) || $branch === "''") {
55▕ $branch = 'current branch';
56▕ }
@tisuchi you save my day sir. I was strugging for long time for that. Yes, it's related to the php version. the project was on 7.4 and i am on 8.1. Thank you again for your support.
Please sign in or create an account to participate in this conversation.