Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer Scripts #19951

Closed
kaxias opened this issue Jul 7, 2017 · 4 comments
Closed

Composer Scripts #19951

kaxias opened this issue Jul 7, 2017 · 4 comments

Comments

@kaxias
Copy link

kaxias commented Jul 7, 2017

  • Laravel Version: 5.5-dev
  • Composer Version: 1.4.1
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover


  [Symfony\Component\Debug\Exception\FatalThrowableError]
  Parse error: syntax error, unexpected '\' (T_SL), expecting ']'


Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
@porozhnyy
Copy link
Contributor

Got just that same error

composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover                                            
  [Symfony\Component\Debug\Exception\FatalThrowableError]           
  Parse error: syntax error, unexpected '\' (T_SL), expecting ']'  
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

@brunogaspar
Copy link
Contributor

This #19939 should fix the issue, unless there's another conflict somewhere.

@kaxias
Copy link
Author

kaxias commented Jul 7, 2017

thanks that did fix for me.

@kaxias kaxias closed this as completed Jul 7, 2017
@mohannad1995
Copy link

Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover

In ResourceRegistrar.php line 360:

Object of class Closure could not be converted to string

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
I'm using laravel 5.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants