Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility Issue: hubspot/api-client requires PHP 8.1 due to dependency on symfony/deprecation-contracts #428

Open
nicksleap opened this issue Nov 10, 2024 · 0 comments

Comments

@nicksleap
Copy link

Hello HubSpot API Client team,

I'm encountering a compatibility issue when trying to install hubspot/api-client with PHP 7.4, even though the documentation states that this library supports PHP >= 7.4.

Problem: The issue appears to stem from a dependency on symfony/deprecation-contracts, which, in its latest version (v3.5.0), requires PHP 8.1 or higher. This results in a Composer error, preventing installation on PHP 7.4 environments.

Steps to Reproduce:

  1. Set up a PHP 7.4 environment.
  2. Run the command: composer require hubspot/api-client
  3. Composer returns an error: Package "php" could not be found with constraint "7.4", results below will most likely be incomplete.
    symfony/deprecation-contracts v3.5.0 requires php (>=8.1)

Expected Behavior: The package should install correctly with PHP 7.4, as indicated in the requirements on the documentation page.

Observed Behavior: Composer throws an error, indicating that a dependency (symfony/deprecation-contracts) requires PHP 8.1 or higher.

Potential Solution: To maintain PHP 7.4 compatibility, consider updating the hubspot/api-client package to specify a compatible version constraint for symfony/deprecation-contracts (e.g., ^2.5.0), which supports PHP 7.4 or change the description

Thank you for looking into this issue!

PHP version: 7.4.33
Composer version: 2.7.1 2024-02-09 15:26:28
hubspot/api-client version: latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant