-
Notifications
You must be signed in to change notification settings - Fork 5
Fix implicit nullability deprecation #12
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
Conversation
357653f to
a07f557
Compare
a07f557 to
839e68e
Compare
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 ☂️ |
6fe5250 to
dd775b4
Compare
| "http-interop/http-factory-tests": "^0.5", | ||
| "phpunit/phpunit": "^6.5" | ||
| "http-interop/http-factory-tests": "^0.9", | ||
| "phpunit/phpunit": "^9.5" |
There was a problem hiding this comment.
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.
| <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> |
There was a problem hiding this comment.
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.
| ?int $size = null, | ||
| int $error = \UPLOAD_ERR_OK, | ||
| string $clientFilename = null, | ||
| string $clientMediaType = null | ||
| ?string $clientFilename = null, | ||
| ?string $clientMediaType = null |
There was a problem hiding this comment.
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.
| throw new \RuntimeException( | ||
| sprintf( | ||
| 'Unable to open "%s" using mode "%s": "%s', |
There was a problem hiding this comment.
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.
|
@http-interop/http-factory-contributors will someone please review this? The testing semantics now align with http-factory-guzzle, including:
|
weierophinney
left a comment
There was a problem hiding this 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.
|
Released in v2.0.1 |
Refs http-interop/http-factory-guzzle#22