Framework: Composer Scripts

Created on 7 Jul 2017  路  4Comments  路  Source: laravel/framework

  • 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

Most helpful comment

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

All 4 comments

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

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

thanks that did fix for me.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shopblocks picture shopblocks  路  3Comments

jackmu95 picture jackmu95  路  3Comments

JamborJan picture JamborJan  路  3Comments

felixsanz picture felixsanz  路  3Comments

CupOfTea696 picture CupOfTea696  路  3Comments