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

PHP 8 upgrade #125

Merged
merged 5 commits into from
Dec 6, 2023
Merged

PHP 8 upgrade #125

merged 5 commits into from
Dec 6, 2023

Conversation

mmcdaris
Copy link
Member

@mmcdaris mmcdaris commented Dec 6, 2023

Upgrade to version 8 of PHPBrake
This is @gbirke's work #122 with the conflicts resolved via rebase and includes new changes for docker tests and CI tests. Tests all pass via CI and when ran via docker:

docker compose run tests

output:

Runtime:       PHP 8.3.0
Configuration: /phpbrake/phpunit.xml.dist

............................................................      60 / 60 (100%)

Time: 00:00.120, Memory: 12.00 MB

OK (60 tests, 95 assertions)

gbirke and others added 5 commits December 6, 2023 12:25
The library was activating `remoteConfig` when it was set to `false`,
giving the user no option to disable it.
Update to 8.0 to be able to run with PHP 8 and installed with composer
on PHP 8, convert tests from old PHPUnit format to PHPUnit 8. Choosing
PHPUnit 8 as an intermediate step that has enough changes, but also has
some deprecations that will be removed in future PHP versions.

The only change to the library is to add a property that formerly was
implicit and to move the constant AIRBRAKE_NOTIFIER_VERSION from
Notifier.php to a separate file that will be autoloaded. This removes
the dependency on "accidentally" autoloading the constant when loading
the Notifier class. In the future we might think about making it a
class constant.

Update php_codesniffer to a version that's compatible with PHP 8
Migrate the configuration file
Make data providers static
Replace renamed assertion
@mmcdaris
Copy link
Member Author

mmcdaris commented Dec 6, 2023

Thanks for the contribution this will be included in the next major release of PHPBRake version 1.0.0

@mmcdaris mmcdaris merged commit 6909a4e into master Dec 6, 2023
1 check passed
mmcdaris added a commit that referenced this pull request Dec 7, 2023
* Require PHP version 8.2 or higher for version 1.0.0
  * #125
* Improved the development workflow of contribution with docker powered tests.
@mmcdaris mmcdaris mentioned this pull request Dec 7, 2023
mmcdaris added a commit that referenced this pull request Dec 7, 2023
* Require PHP version 8.2 or higher for version 1.0.0
  * #125
* Improved the development workflow of contribution with docker powered tests.
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.

2 participants