parse-community / parse-php-sdk

The PHP SDK for Parse Platform
https://parseplatform.org/
Other
812 stars 346 forks source link

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

Closed mhmiton closed 1 year ago

mhmiton commented 2 years ago

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

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()