title: FatalErrorException in Inflector.php line 265: syntax error, unexpected ':', expecting ';' or '{'
body: <p>I went to update composer using </p>
  
  <pre><code>composer update
  </code></pre>
  
  <p>after update having the following error:</p>
  
  <blockquote>
    <p>FatalErrorException in Inflector.php line 265: syntax error,
    unexpected ':', expecting ';' or '{'</p>
  </blockquote>
  
  <p>Please assist</p>
  
  <p>Thanks in advance</p>
  
  <p>Using Laravel Framework version 5.2.45</p>
  
  <p>here is the composer code</p>
  
  <pre><code>{
      "name": "laravel/laravel",
      "description": "The Laravel Framework.",
      "keywords": ["framework", "laravel"],
      "license": "MIT",
      "type": "project",
      "require": {
          "php": "&gt;=5.5.9",
          "laravel/framework": "5.2.*",
          "laravelcollective/html": "*.*"
      },
      "require-dev": {
          "fzaninotto/faker": "~1.4",
          "mockery/mockery": "0.9.*",
          "phpunit/phpunit": "~4.0",
          "symfony/css-selector": "2.8.*|3.0.*",
          "symfony/dom-crawler": "2.8.*|3.0.*"
      },
      "autoload": {
          "classmap": [
              "database"
          ],
          "psr-4": {
              "App\\": "app/"
          },
          "files": [
              "app/Libraries/Functions.php"
          ]
      },
      "autoload-dev": {
          "classmap": [
              "tests/TestCase.php"
          ]
      },
      "scripts": {
          "post-root-package-install": [
              "php -r \"copy('.env.example', '.env');\""
          ],
          "post-create-project-cmd": [
              "php artisan key:generate"
          ],
          "post-install-cmd": [
              "Illuminate\\Foundation\\ComposerScripts::postInstall",
              "php artisan optimize"
          ],
          "post-update-cmd": [
              "Illuminate\\Foundation\\ComposerScripts::postUpdate",
              "php artisan optimize"
          ]
      },
      "config": {
          "preferred-install": "dist"
      }
  }
  </code></pre>
  
  <p>Please see the function of inflector.php where error occures</p>
  
  <pre><code>public static function tableize(string $word) : string
      {
          return strtolower(preg_replace('~(?&lt;=\\w)([A-Z])~', '_$1', $word));
      }
  </code></pre>