Currently we are working on a project running on sage 10. When deploying to one of our servers, we are getting Undefined variable error messages. We’ve tried to find the issue, if we run composer dump-autoload, the issue seems to be solved. But each time we deploy, the error comes back again. It looks like the variables inside of our composers are not getting created.
We are making use of the Roots\Acorn\ComposerScripts::postAutoloadDump, and the correct markup for our composer (protected static $views and public function with). Does anyone have experience with this problem and knows how to fix it?