title: Random errors in artisan
body: <p>Whenever I launch <code>php artisan</code> I get random errors that change after a while even if I don't modify files. Also those errors make no sense to me. For example:</p>
  
  <pre><code>PHP Parse error:  syntax error, unexpected '++' (T_INC), expecting '(' in /.../app/Providers/AuthServiceProvider.php on line 32
  
  PHP Parse error:  syntax error, unexpected '?' in /.../app/Providers/AuthServiceProvider.php on line 32
  
  PHP Parse error:  syntax error, unexpected '' in /.../app/Providers/AuthServiceProvider.php on line 32
  </code></pre>
  
  <p>AuthServiceProvider.php:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Providers;
  
  use Illuminate\Contracts\Auth\Access\Gate as GateContract;
  use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
  
  class AuthServiceProvider extends ServiceProvider
  {
      /**
       * The policy mappings for the application.
       *
       * @var array
       */
      protected $policies = [
          'App\Model' =&gt; 'App\Policies\ModelPolicy',
      ];
  
      /**
       * Register any application authentication / authorization services.
       *
       * @param  \Illuminate\Contracts\Auth\Access\Gate  $gate
       * @return void
       */
      public function boot(GateContract $gate)
      {
          $this-&gt;registerPolicies($gate);
  
          //
      }
  }
  </code></pre>
  
  <p>Line 32 is a newline at the end of file.</p>
  
  <p>Sometimes artisan works successfully (again without me changing any files). What may be happening there?</p>
  
  <p>PHP version 5.6, Laravel 5.2.45</p>