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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…