Update PHP-Scoper - #34
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates dependencies and introduces several improvements and fixes to the Guzzle HTTP client codebase, focusing on enhanced protocol support, improved error handling, and better security for sensitive information in error messages. The changes also include updates for compatibility with newer PHP versions and adjustments to package constraints.
Dependency updates and compatibility
humbug/php-scoperdependency version inphp-scoper/composer.jsonfor improved stability.guzzlehttp/promisesandguzzlehttp/psr7version constraints invendor-prefixed/guzzlehttp/guzzle/composer.jsonto require newer versions, and added support for PHP 8.5 in the changelog. [1] [2]Protocol and security improvements
CurlFactory.phpto provide more explicit feedback and support for HTTP/2 and TLS 1.2/1.3, including new helper methods for protocol support detection. [1] [2] [3] [4]SetCookie.phpto correctly process boolean flags likeSecure,Discard, andHttpOnly.Error handling and sensitive data protection
trigger_errorwith throwingRuntimeExceptionfor platform and autoload errors, ensuring better exception handling. [1] [2]CurlFactory.phpandRequestException.phpto redact sensitive user info from URIs and error messages, and removed the old URI obfuscation method. [1] [2] [3]Miscellaneous
autoload.php,autoload_real.php, andautoload_static.php. [1] [2] [3] [4]package-lock.jsonfile for Guzzle.