beyondcode / invoker-community

74 stars 2 forks source link

Symfony\Component\ErrorHandler\Error\FatalError #358

Open xpdeal opened 1 year ago

xpdeal commented 1 year ago

OS: linux Invoker Version: 2.13.2 Laravel Version: 10.20.0 Local project: true PHP Binary: /usr/bin/php Route: /home?project=local-iE4rJbM5mJSrb3T8jMpHuB

Error:

Symfony\Component\ErrorHandler\Error\FatalError 

  Declaration of PhpOffice\PhpSpreadsheet\Collection\Memory\SimpleCache1::get($key, $default = null) must be compatible with Psr\SimpleCache\CacheInterface::get(string $key, mixed $default = null): mixed

  at /home/jordan/Documents/freelas/imob/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Memory/SimpleCache1.php:63
     59▕      * @param mixed  $default
     60▕      *
     61▕      * @return mixed
     62▕      */
  ➜  63▕     public function get($key, $default = null)
     64▕     {
     65▕         if ($this->has($key)) {
     66▕             return $this->cache[$key];
     67▕         }

      +6 vendor frames 

  7   phar:///tmp/.mount_InvokeWtxUIN/resources/invoker_l10.phar/src/ModelLookupService.php:125
      Composer\Autoload\ClassLoader::loadClass("'PhpOffice\\PhpSpreadsheet\\Collection\\Memory\\SimpleCache1'")
  8   phar:///tmp/.mount_InvokeWtxUIN/resources/invoker_l10.phar/src/ModelLookupService.php:125

   Whoops\Exception\ErrorException 

  Declaration of PhpOffice\PhpSpreadsheet\Collection\Memory\SimpleCache1::get($key, $default = null) must be compatible with Psr\SimpleCache\CacheInterface::get(string $key, mixed $default = null): mixed

  at /home/jordan/Documents/freelas/imob/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Memory/SimpleCache1.php:63
     59▕      * @param mixed  $default
     60▕      *
     61▕      * @return mixed
     62▕      */
  ➜  63▕     public function get($key, $default = null)
     64▕     {
     65▕         if ($this->has($key)) {
     66▕             return $this->cache[$key];
     67▕         }

      +1 vendor frames 

  2   [internal]:0
      Whoops\Run::handleShutdown()