Repository navigation
1.5.1
·
10 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Backward Compatibility Restoration (1.5.1)
Version 1.5.0 inadvertently introduced breaking changes to the public PHP API in a minor release (#628), including strict parameter/return type hints on public methods and RequestMethod::submit(), readonly modifiers on Response and RequestParameters, and the removal of the RequestMethod\Curl and RequestMethod\Socket wrapper classes.
What's Changed in 1.5.1
- Restored full
1.4.2public API compatibility (#633 by @SNO7E-G, reviewed by @acoulton):- Restored untyped public method signatures (with PHPDoc annotations) across
ReCaptcha,Response,RequestParameters, andRequestMethod::submit(). - Removed
readonlyfromResponseandRequestParametersso subclasses and test doubles (PHPUnit::createMock()) work as expected. - Restored
RequestMethod\CurlandRequestMethod\Socketwrapper classes and legacy constructor parameter order (new CurlPost(?Curl $curl = null, ?string $siteVerifyUrl = null)andnew SocketPost(?Socket $socket = null, ?string $siteVerifyUrl = null)).
- Restored untyped public method signatures (with PHPDoc annotations) across
- Documentation & Tooling:
- Fixed
ReCaptcha::RESPONSE_KEYconstant name inREADME.md. - Configured PHPStan (
level: 2,treatPhpDocTypesAsCertain: false) for the1.xcompatibility line without requiring a baseline file.
- Fixed
Note on
2.0.0: The strict type hints,readonlyDTOs, and constructor modernizations introduced in1.5.0have been preserved on the2.xbranch and will be released under major version2.0.0.