title: Composer update error: Undefined index: REQUEST_METHOD
body: <p>I try to configure Laravel 5.2 on windows server 2012 and get an error when executing:</p>
  
  <pre><code>composer update
  </code></pre>
  
  <blockquote>
    <p>enter code here php artisan clear-compiled
    <br /> <br/>[ErrorException]<br />Undefined index: REQUEST_METHOD
    <br /> <br/>Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
    [RuntimeException]</p>
    
    <p>Error Output:</p>
    
    <p>update [--prefer-source] [--prefer-dist] [--dry-run] [--dev]
    [--no-dev] [--lock]  [--no-plugins] [--no-custom-installers]
    [--no-autoloader] [--no-scripts] [--no- progress]
    [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]
    [-a|--classmap-authoritative] [--ignore-platform-reqs]
    [--prefer-stable] [--pre fer-lowest] [-i|--interactive] [--root-reqs]
    [--] []....</p>
  </blockquote>
  
  <p>I have also tries other following artisan command and all they give same error.</p>
  
  <pre><code>php artisan clear-compiled
  php artisan update
  </code></pre>
  
  <blockquote>
    <p>Error</p>
    
    <p>[ErrorException]   Undefined index: REQUEST_METHOD</p>
  </blockquote>