Compatibility Issue: hubspot/api-client requires PHP 8.1 due to dependency on symfony/deprecation-contracts
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- backend, build-system
Direzione di ricerca
Inizia riproducendo il fallimento segnalato di composer require hubspot/api-client con PHP 7.4 e verifica il vincolo di dipendenza del pacchetto per symfony/deprecation-contracts. Conferma se un vincolo compatibile con PHP 7.4 consente di risolvere l’installazione oppure se è necessario modificare il requisito PHP documentato; il lavoro è completato quando il comportamento del pacchetto e la documentazione sono coerenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
- Set up a PHP 7.4 environment.
- Run the command: composer require hubspot/api-client
- 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
- Lingua principale
- PHP
- Stelle
- 242
- Fork
- 91
- Merge medio
- 13h 57m
- PR unite (30g)
- 7
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di HubSpot/hubspot-api-php
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
HubSpot/hubspot-api-php#619 · 2 reazioni ·
-
Plans for new API VersionsAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
HubSpot/hubspot-api-php#633 · 7 commenti · 3 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
HubSpot/hubspot-api-php#620 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
HubSpot/hubspot-api-php#617 · 1 commento · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
HubSpot/hubspot-api-php#523 · 1 commento ·
Tutte le issue di HubSpot/hubspot-api-php
Issue simili
-
Issue: ready for confirmation Reported on 2.4.9 Triage: Dev.Experience
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
magento/magento2#41773 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni
-
[BUG] Add bounds validation for numberOfContestants in TeamsGroup::apiCreate()Forse già presa @RAJJADHAV10 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
omegaup/omegaup#10512 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sorocharge/sorocharge-php#14 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
filesender/filesender#2898 ·
I maintainer di solito rispondono entro 1 giorno
-
cleanup
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno