Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

php - syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')'

I cloned a project from https://github.com/iluminar/goodwork, and when doing composer install it show error said

ParseError

  syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')'

  at C:UsersVysco ZyzaVideosgoodworkappBaseUtilitiesExtendedLivewireComponentsFinder.php:40
     36▕     }
     37▕
     38▕     protected function getName($class)
     39▕     {
  ?  40▕         $classNamespace = collect(config('livewire.class_namespaces'))->filter(fn ($x) => strpos($class, $x) !== false)->first();
     41▕         $namespace = collect(explode('.', str_replace(['/', '\'], '.', $classNamespace)))
     42▕             ->map([Str::class, 'kebab'])
     43▕             ->implode('.');
     44▕

  1   C:UsersVysco ZyzaVideosgoodworkvendorcomposerClassLoader.php:322
      ComposerAutoloadincludeFile("C:UsersVysco ZyzaVideosgoodworkvendorcomposer/../../app/Base/Utilities/ExtendedLivewireComponentsFinder.php")

  2   [internal]:0
      ComposerAutoloadClassLoader::loadClass("AppBaseUtilitiesExtendedLivewireComponentsFinder")
Script @php artisan livewire:discover --ansi handling the post-autoload-dump event returned with error code 1

what should I do?

question from:https://stackoverflow.com/questions/65915169/syntax-error-unexpected-t-double-arrow-expecting

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...