Skip to content

Change the dependencies guzzlehttp/promises and symfony/options-resolver in favor of php 8 support - #1144

Merged
ste93cry merged 6 commits into
getsentry:php8-supportfrom
chris-doehring:feature/php8-dependency-updates
Nov 28, 2020
Merged

ste93cry merged 6 commits into
getsentry:php8-supportfrom
chris-doehring:feature/php8-dependency-updates

Conversation

@chris-doehring

@chris-doehring chris-doehring commented Nov 27, 2020 •

Copy link
Copy Markdown

I'm still trying to help regarding php 8 support, so I checked the remaining CI issues and found two dependency issues when installing under lowest compatibility that this PR will address.

guzzlehttp/promises: ^1.3 => ^1.4

In #1079 the promise new FulfilledPromise(true); has been added to several Transport classes, which is theoretically valid, but due to a lax check of data types, this causes an error under guzzlehttp/promises 1.3.*, since it will be assumed that the parameter is an object or string without checking. in 1.4.0 there is an additional is_object check which prevents that from happening
(guzzle/promises@3976c7d).

symfony/options-resolver: ^3.4.4|^4.0|^5.0 => ^3.4.43|^4.4.11|^5.0.11

Several reflection methods have been deprecated or changed in php 8 and therefor the Symfony Team adjusted the package accordingly to make options-resolver compatible to php 8. The latest changes are available in version constraint ^3.4.43|^4.4.11|^5.0.11:
https://github.com/symfony/options-resolver/releases/tag/v3.4.43
https://github.com/symfony/options-resolver/releases/tag/v4.4.11
https://github.com/symfony/options-resolver/releases/tag/v5.0.11

These two changes have no impact on the lowest php version support of this package. After this PR, it seems only the Segmentation faults are still blocking the support for php 8.

EDIT: I had to change the symfony version constraint again. In the first version I assumed no php 8 compatibility for Symfony 3.

@chris-doehring
chris-doehring marked this pull request as ready for review November 27, 2020 23:02
@chris-doehring chris-doehring mentioned this pull request Nov 27, 2020
@chris-doehring chris-doehring changed the title Change the dependencies guzzlehttp/promises and symfony/options-resolve in favor of php 8 support Change the dependencies guzzlehttp/promises and symfony/options-resolver in favor of php 8 support Nov 27, 2020
Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants