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

Fail to install version 1.1.1 on Laravel 8.10 #17

Open
longthanhtran opened this issue Oct 16, 2020 · 1 comment
Open

Fail to install version 1.1.1 on Laravel 8.10 #17

longthanhtran opened this issue Oct 16, 2020 · 1 comment
Labels

Comments

@longthanhtran
Copy link

When I first install goaop/goaop-laravel-bridge with composer, the process stops with following log

Using version ^1.1 for goaop/goaop-laravel-bridge
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
  - Installing goaop/parser-reflection (2.1.2): Loading from cache
  - Installing doctrine/cache (1.10.2): Loading from cache
  - Installing doctrine/annotations (1.10.4): Loading from cache
  - Installing jakubledl/dissect (v1.0.1): Loading from cache
  - Installing goaop/framework (2.3.4): Loading from cache
  - Installing goaop/goaop-laravel-bridge (1.1.1): Loading from cache
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   ParseError 

  syntax error, unexpected 'include_once' (T_INCLUDE_ONCE), expecting ';' or ','

  at app/Http/Controllers/Controller.php:9
      5▕ use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
      6▕ use Illuminate\Foundation\Bus\DispatchesJobs;
      7▕ use Illuminate\Foundation\Validation\ValidatesRequests;
      8▕ use Illuminate\Routing\Controller as BaseController;
  ➜   9▕ 
     10▕ class Controller extends BaseController
     11▕ {
     12▕     use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
     13▕ }

  1   [internal]:0
      Go\Instrument\ClassLoading\AopComposerLoader::loadClass("App\Http\Controllers\Controller")

  2   app/Http/Controllers/LibraryController.php:9
      spl_autoload_call("App\Http\Controllers\Controller")
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json to its original content.

so I also unable to continue with situation until completely remove vendor folder and reinstall everything from scratch.

Could you take a look and please let me know what wrong with the steps. Thanks

@longthanhtran
Copy link
Author

It seems this problem relates to PHP 7.4 which I use for Laravel 8.10. Because when I try to add a ; to the line 9 of the controller then the installation process goes success but later steps to setup aspect raises different errrors, randomly.

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

No branches or pull requests

2 participants