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

Refactor, bump minimum required PHP version to 8.2 and support 8.4 #27

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented Oct 31, 2024

This bumps the minimum required PHP version to 8.2.

PHPSpec is remover in favor of PHPUnit.

Scrutinizer CI is removed because we no longer have coverage.

@ruudk
Copy link
Contributor Author

ruudk commented Oct 31, 2024

@dbu Please approve the workflow.

@ruudk ruudk force-pushed the refactor branch 2 times, most recently from 59d1a5e to d7e62aa Compare October 31, 2024 12:34
@ruudk ruudk changed the title Refactor Refactor, bump minimum required PHP version to 8.2 and support 8.4 Oct 31, 2024
@ruudk ruudk mentioned this pull request Oct 31, 2024
Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

thanks a lot for this!

src/LoggerPlugin.php Outdated Show resolved Hide resolved
tests/LoggerPluginTest.php Outdated Show resolved Hide resolved
@dbu
Copy link
Contributor

dbu commented Oct 31, 2024

not sure about that code coverage complaint from phpunit. if we can disable the check that would make sense to me. we have 1 class in the codebase, no need to specify what we cover.

This bumps the minimum required PHP version to 8.2.

PHPSpec is remover in favor of PHPUnit.

Scrutinizer CI is removed because we no longer have coverage.
@ruudk
Copy link
Contributor Author

ruudk commented Oct 31, 2024

@dbu Pushed again, please approve workflow.

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

nice, thanks. i was pondering if we want to make a new major version, but there is actually only the removal of BC code in the class, the other changes are all about the test.

as we drop legacy versions, i suggest we do it as a new minor version. (thats more flexible in case we for some reason really want to fix something for php 8.1 or older)

$this->assertSame("Sending request:\nGET http://example.com/ 1.1", $this->logger->logMessages[0]['info']);
// Ensure there's an error log for the exception
$this->assertStringContainsString("Error:\nNot Found", $this->logger->logMessages[1]['error']);
throw $exception;
Copy link
Contributor

Choose a reason for hiding this comment

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

i usually would have done a $this->fail(...) inside the try block, on the line after )->wait(); but this works as well.

composer.json Outdated Show resolved Hide resolved
@ruudk
Copy link
Contributor Author

ruudk commented Oct 31, 2024

do it as a new minor version

Good idea!

@dbu dbu merged commit 94b58b9 into php-http:1.x Oct 31, 2024
7 checks passed
@dbu
Copy link
Contributor

dbu commented Oct 31, 2024

thanks a lot, tagging a release now

@ruudk ruudk deleted the refactor branch October 31, 2024 14:49
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