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

⬆️ Provide support for PHP 8. #156

Merged
merged 1 commit into from
Mar 25, 2021
Merged

⬆️ Provide support for PHP 8. #156

merged 1 commit into from
Mar 25, 2021

Conversation

lucasmichot
Copy link
Contributor

@lucasmichot lucasmichot commented Mar 8, 2021

This PR provides much-needed support for PHP 8.

At the moment only PHP versions 7.0 to 7.4 are supported, which is not optimal for client adoption. Indeed, many projects already require PHP version 8 as a platform dependency.

Also, this PR drops support for version below 7.3. As planned within the supported PHP versions timeline, the PHP 7.2 version does not receive security fixes since November 2020.

It is thus safe to deprecate the support of these versions.


Note:

a new major release for this client will have to be published (on Github and Packagist)
/cc @bviolier @rfeiner @CoolGoose

$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessageRegExp('/^Timeout must be an int > 0, got "integer 0".$/');
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Timeout must be an int > 0, got "integer 0"');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expectExceptionMessageRegExp can be safely replaced by expectExceptionMessage as per the phpunit/phpunit package upgrade.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this actually also enforces a stricter assertion 🚀

@lucasmichot
Copy link
Contributor Author

I will rebase this PR and fix the conflicts to get it ready to be merged ASAP @CoolGoose

@rfeiner
Copy link
Contributor

rfeiner commented Mar 9, 2021

@lucasmichot Thanks! Since this is a breaking change, we're assessing our versioning strategy.

@lucasmichot
Copy link
Contributor Author

You're welcome @rfeiner 👌🏽 !

@CoolGoose
Copy link
Contributor

Thank you @lucasmichot

@CoolGoose CoolGoose merged commit fe8e14b into messagebird:master Mar 25, 2021
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

Successfully merging this pull request may close these issues.

None yet

3 participants