title: Laravel Error with str.php in vendor directory
body: <p>For some reason I started getting this error after a few days. I didn't change anything from the time my Laravel application was working to the time it threw this parse error:</p>
  
  <pre><code>Parse error: syntax error, unexpected T_USE, expecting T_FUNCTION in /home/fzystudi/public_html/vendor/laravel/framework/src/Illuminate/Support/Str.php on line 7
  </code></pre>
  
  <p><a href="http://www.fzystudio.com/public/" rel="nofollow">Here</a> is the site live with error.</p>
  
  <p>Here is what I tried for solving the errors:</p>
  
  <ul>
  <li><p>I wiped everything clean and installed laravel again. Same error. So I then did composer update. Still no change. I did composer update again and still no change.</p></li>
  <li><p>I also downloaded the developer version and stable version. Still no difference.</p></li>
  <li><p>I cloned the exact file from str.php and the file is the same on github as it is in my app on my ftp server.</p></li>
  <li><p>I uploaded to hostgator and A2 hosting. Same error on both sites.</p></li>
  <li><p><a href="http://laravel.io/forum/04-18-2014-parse-error-syntax-error-unexpected-t-use-expecting-t-function" rel="nofollow">Here</a> is the thread on the laravel forum I posted. No one has been able to help yet.</p></li>
  </ul>
  
  <p>What seems to be the cause and what is the fix?</p>
  
  <p>This is my controller:</p>
  
  <pre><code>&lt;?php
  
  class SiteController extends BaseController {
  
  public function __construct() {
      //parent::__construct();
      $this-&gt;beforeFilter('csrf', array('on'=&gt;'post'));
  }
  //homepage for our store
  public function getIndex() {
      return View::make('site.index');
  
  }
  }
  </code></pre>
  
  <p>My composer.json:</p>
  
  <pre><code>{
  "name": "laravel/laravel",
  "description": "The Laravel Framework.",
  "keywords": ["framework", "laravel"],
  "license": "MIT",
  "require": {
      "laravel/laravel": "4.1.*"
  },
  "autoload": {
      "classmap": [
          "app/commands",
          "app/controllers",
          "app/models",
          "app/database/migrations",
          "app/database/seeds",
          "app/tests/TestCase.php"
      ]
  },
  "scripts": {
      "post-install-cmd": [
          "php artisan clear-compiled",
          "php artisan optimize"
      ],
      "post-update-cmd": [
          "php artisan clear-compiled",
          "php artisan optimize"
      ],
      "post-create-project-cmd": [
          "php artisan key:generate"
      ]
  },
  "config": {
      "preferred-install": "dist"
  },
  "minimum-stability": "stable"
  }
  </code></pre>