Skip to content

Error for PHP 8 : Required parameter $auth_token follows optional parameter $consumer_secret #479

Closed
@mhmiton

Description

@mhmiton

Issue Description

When I use php7.4, that works fine. But after migrate to php8, I get this error -

Required parameter $auth_token follows optional parameter $consumer_secret

Environment Details

  • PHP Version: 8.0.8
  • Parse PHP SDK Version: 1.6
  • Operating System: Ubuntu 20.10

Logs/Traces

ErrorException 

  Required parameter $auth_token follows optional parameter $consumer_secret

  at vendor/parse/php-sdk/src/Parse/ParseUser.php:212
    208|      * @throws ParseException
    209|      *
    210|      * @return ParseUser
    211|      */
  > 212|     public static function logInWithTwitter(
    213|         $id,
    214|         $screen_name,
    215|         $consumer_key,
    216|         $consumer_secret = null,

      +13 vendor frames 
  14  [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()

      +5 vendor frames 
  20  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions