title: While running @php artisan package:discover --ansi i'm getting the error code 255
body: <p>Currently while I am trying to update the dependencies of my project, I got hit with the issue that the build process fail due to the error: <code>Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255</code>.</p>
  
  <p>This error occurs only when I try to update the sentry/laravel 1.5.0 package to the version 1.6.1. I do not have the issue with other dependencies. I have tried to do the same as in <a href="https://stackoverflow.com/questions/50840960/script-php-artisan-packagediscover-handling-the-post-autoload-dump-event-retur">Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255</a> but none of solutions helped me.</p>
  
  <p>Full response:</p>
  
  <pre><code>#!/bin/bash -eo pipefail
  composer install -n --prefer-dist --ignore-platform-reqs
  Loading composer repositories with package information
  Installing dependencies (including require-dev) from lock file
  Nothing to install or update
  Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use 
  laminas/laminas-diactoros instead.
  Generating optimized autoload files
  &gt; Illuminate\Foundation\ComposerScripts::postAutoloadDump
  &gt; @php artisan package:discover --ansi
  Script @php artisan package:discover --ansi handling the post-autoload-dump event returned 
  with error code 255
  
  Exited with code exit status 255
  </code></pre>
  
  <p>Of course I could keep using the version 1.5.0 but I prefer having my dependencies up to date. Is there something I maybe miss?</p>
  
  <p>Thank you in advance for help.</p>