| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 1.5.1 source code.tar.gz | 2026-09-22 | 28.9 kB | |
| 1.5.1 source code.zip | 2026-09-22 | 41.7 kB | |
| README.md | 2026-09-22 | 1.5 kB | |
| Totals: 3 Items | 72.1 kB | 0 | |
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)). - Documentation & Tooling:
- Fixed
ReCaptcha::RESPONSE_KEYconstant name inREADME.md. - Configured PHPStan (
level: 2,treatPhpDocTypesAsCertain: false) for the1.xcompatibility line without requiring a baseline file.
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.