elcobvg / laravel-opcache

Custom OPcache Cache Driver for Laravel. Faster than Redis, Memcache or APC.
MIT License
44 stars 12 forks source link

Package installed in php 8 version instead my version (php7.4) #19

Open Sahandi81 opened 2 years ago

Sahandi81 commented 2 years ago

Hey guys,

I installed this package on ubuntu 18.04, PHP 7.4, and Laravel 8.1.

everything is ok except for one thing. when I want to run the PHP artisan opcache:compile command line says

# php artisan opcache:compile
Compiling scripts...

   Illuminate\Http\Client\RequestException

  HTTP request returned status code 500:
<!doctype html>
<html class="theme-light">
<!--
ParseError: syntax error, unexpected 'private' (T_PRIVATE), expecting va (truncated...)

  at vendor/laravel/framework/src/Illuminate/Http/Client/Response.php:288
    284▕      */
    285▕     public function toException()
    286▕     {
    287▕         if ($this->failed()) {
  ➜ 288▕             return new RequestException($this);
    289▕         }
    290▕     }
    291▕
    292▕     /**

      +15 vendor frames
  16  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()

I checked the contained file and realized OMG this is the PHP 8.* syntax.

Sahandi81 commented 2 years ago

Any helps ?!