syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Tuesday, December 7, 2021

syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE)

I am using Laravel 8 and PHP 8.0.13. I just updated my project with composer update. Now when I make a request I have the following error:

{
    "message": "syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE)",
    "exception": "ParseError",
    "file": "/var/www/welrdv/vendor/lcobucci/clock/src/SystemClock.php",
    "line": 13,
    "trace": [
        {
            "file": "/var/www/welrdv/vendor/composer/ClassLoader.php",
            "line": 346,
            "function": "Composer\\Autoload\\includeFile"
        },
        {
            "function": "loadClass",
            "class": "Composer\\Autoload\\ClassLoader",
            "type": "->"
        },
        {
            "file": "/var/www/welrdv/vendor/league/oauth2-server/src/AuthorizationValidators/BearerTokenValidator.php",
            "line": 78,
            "function": "spl_autoload_call"
        },
        {
            "file": "/var/www/welrdv/vendor/league/oauth2-server/src/AuthorizationValidators/BearerTokenValidator.php",
            "line": 63,
            "function": "initJwtConfiguration",
            "class": "League\\OAuth2\\Server\\AuthorizationValidators\\BearerTokenValidator",
            "type": "->"
        },
        {
            "file": "/var/www/welrdv/vendor/league/oauth2-server/src/ResourceServer.php",
            "line": 67,
            "function": "setPublicKey",
            "class": "League\\OAuth2\\Server\\AuthorizationValidators\\BearerTokenValidator",
            "type": "->"
        }
...
    ]
}

here is my composer.json

"require": { "php": "^7.4|^8.0", "barryvdh/laravel-dompdf": "^0.9.0", "bensampo/laravel-enum": "^1.0", "daltcore/lara-pdf-merger": "^2.0", "doctrine/dbal": "^3.1", "egulias/email-validator": "~2.1", "elasticsearch/elasticsearch": "^7.13", "fideloper/proxy": "^4.4", "fruitcake/laravel-cors": "^2.0", "guzzlehttp/guzzle": "^7.0.1", "laravel/framework": "^8.0", "laravel/helpers": "^1.4", "laravel/passport": "^10.1", "laravel/slack-notification-channel": "^2.0", "laravel/tinker": "^2.0", "laravel/ui": "^3.0", "maatwebsite/excel": "^3.1", "nesbot/carbon": "^2.4", "propaganistas/laravel-phone": "^4.0", "pusher/pusher-php-server": "^5.0", "spatie/laravel-permission": "^4.0", "spatie/laravel-webhook-server": "^1.12", "symfony/translation": "^5.2" }

Can you help me please ?



source https://stackoverflow.com/questions/70249895/syntax-error-unexpected-private-t-private-expecting-variable-t-variable

No comments:

Post a Comment