Problem/Motivation

While releasing new major version releases of Social Post Twitter for Drupal 9, and because Drupal 9 now supports PHP 8 (and recommends only PHP 7.4 or PHP 8.0, and drops support below PHP 7.3), we really should switch to recent releases of the underlying TwitterOauth library.

Steps to reproduce

Try to install Twitter Oauth with Composer while using PHP 8:

project [drupal9]$ composer update

Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies                                 
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - abraham/twitteroauth[0.7.0, ..., 0.7.4] require php ^5.6 || ^7.0 -> your php version (8.0.11) does not satisfy that requirement.
    - abraham/twitteroauth[0.9.0, ..., 0.9.2] require php ^5.6 || ^7.0 || ^7.1 || ^7.2 -> your php version (8.0.11) does not satisfy that requirement.
    - drupal/social_post_twitter 3.x-dev is an alias of drupal/social_post_twitter dev-3.x and thus requires it to be installed too.
    - drupal/social_post_twitter dev-3.x requires abraham/twitteroauth ~0.7 -> satisfiable by abraham/twitteroauth[0.7.0, ..., 0.9.2].
    - Root composer.json requires drupal/social_post_twitter 3.x-dev@dev -> satisfiable by drupal/social_post_twitter[3.x-dev (alias of dev-3.x)].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
composer [update] failed, composer command failed: exit status 2. stderr=

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mlncn created an issue. See original summary.

Anonymous’s picture

Hi, Is this issue planned to be fixed? We're currently unable to get Social Post Twitter to work with PHP 8 (recommended for Drupal 9) without this fix. Thanks.

saidatom made their first commit to this issue’s fork.

saidatom’s picture

Status: Active » Needs review

wells made their first commit to this issue’s fork.

  • wells committed 38c1630 on 3.x authored by saidatom
    Issue #3251417 by mlncn, saidatom: Switch to abraham/twitteroauth ^2...
wells’s picture

Thanks for the report and MR! This change is in the 3.0.0-beta3 release.

wells’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.