beyondcode / invoker-community

74 stars 2 forks source link

Failed to open stream: phar error: internal corruption #370

Open albertorsesc opened 9 months ago

albertorsesc commented 9 months ago

OS: darwin Invoker Version: 2.13.2 Laravel Version: 10.33.0 Local project: true PHP Binary: /usr/local/bin/php Route: /project/index?class=App%5CModels%5CProperties%5CProperty&time=1700838963492&project=local-7Ad1XAxpXokWzznMBxakkb

Error:

ErrorException 

  include(phar:///tmp/invoker.phar/vendor/composer/../../src/ActionInvoker.php): Failed to open stream: phar error: internal corruption of phar "/tmp/invoker.phar" (actual filesize mismatch on file "src/ActionInvoker.php")

  at vendor/composer/ClassLoader.php:576
    572▕          * @param  string $file
    573▕          * @return void
    574▕          */
    575▕         self::$includeFile = \Closure::bind(static function($file) {
  ➜ 576▕             include $file;
    577▕         }, null, null);
    578▕     }
    579▕ }
    580▕

      +2 vendor frames 

  3   phar:///tmp/invoker.phar/invoker.php:15
      Composer\Autoload\ClassLoader::loadClass()
  4   /tmp/invoker.phar:12

I'm getting this error when opening a local project, I'm using Laravel Sail and PHP8.1.