Skip to content

Conversation

@shadowhand
Copy link
Collaborator

@shadowhand shadowhand force-pushed the chore/implicit-nullable branch 2 times, most recently from 357653f to a07f557 Compare December 15, 2025 11:44
@shadowhand shadowhand force-pushed the chore/implicit-nullable branch from a07f557 to 839e68e Compare December 15, 2025 11:45
@codecov
Copy link

codecov bot commented Dec 15, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@shadowhand shadowhand force-pushed the chore/implicit-nullable branch from 6fe5250 to dd775b4 Compare December 15, 2025 11:59
"http-interop/http-factory-tests": "^0.5",
"phpunit/phpunit": "^6.5"
"http-interop/http-factory-tests": "^0.9",
"phpunit/phpunit": "^9.5"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Need to use a PHPUnit version that is compatible with PHP 7.x and 8.x.

Comment on lines +2 to +20
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="true"
bootstrap="vendor/autoload.php"
colors="true">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/coverage"/>
<text outputFile="php://stdout"/>
</report>
</coverage>
<logging>
<junit outputFile="build/phpunit/junit.xml"/>
</logging>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These changes align with http-factory-guzzle.

Comment on lines +14 to +17
?int $size = null,
int $error = \UPLOAD_ERR_OK,
string $clientFilename = null,
string $clientMediaType = null
?string $clientFilename = null,
?string $clientMediaType = null
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Original fix in PR: correcting implicit nullable deprecations in PHP 8.x.

Comment on lines +25 to +27
throw new \RuntimeException(
sprintf(
'Unable to open "%s" using mode "%s": "%s',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

New test requirements in http-factory-tests, this method MUST throw a RuntimeException if fopen fails. Exception message copied from Guzzle utils.

@shadowhand
Copy link
Collaborator Author

@http-interop/http-factory-contributors will someone please review this?

The testing semantics now align with http-factory-guzzle, including:

  • Updated tests for new requirements in http-factory-tests
  • Updated PHP support to 7.3+
  • Using GitHub Actions instead of Travis

Copy link

@weierophinney weierophinney left a comment

Choose a reason for hiding this comment

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

Changes look good to me.

@shadowhand shadowhand merged commit 6c271c1 into master Dec 16, 2025
12 checks passed
@shadowhand
Copy link
Collaborator Author

shadowhand commented Dec 16, 2025

Released in v2.0.1

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.

3 participants