Skip to content

Commit 49c2703

Browse files
committed
Sync fix example from upstream fork
Updated phpunit and added 8.5 to tests
1 parent 04ff6e0 commit 49c2703

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [8.4]
11+
php: [8.5, 8.4]
1212
dependency-version: [prefer-stable]
1313
os: [ubuntu-latest, windows-latest]
1414

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ reCAPTCHA is a free CAPTCHA service that protects websites from spam and abuse.
1414

1515
### Notice: This is not an officially supported version of the Google Recaptcha package
1616

17-
It appears that Google is no longer interested in supporting their PHP Open Source packages for newer versions of PHP (8.4 and up). This package is an updated version of the original Google package. It has been updated to GitHub Actions and modern PHP standards. Every effort has been made to not change logic or behavior other than conforming to modern PHP standards.
18-
19-
This package will be retired if Google decides to support modern PHP versions.
17+
This package is an updated version of the original Google package to support more modern PHP coding standards and versions of PHP and updated to GitHub Actions. Every effort has been made to not change logic or behavior other than conforming to modern PHP standards.
2018

2119
### Support for earlier versions of PHP
2220

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"php": ">=8.0"
1414
},
1515
"require-dev": {
16-
"phpunit/phpunit": "^11",
16+
"phpunit/phpunit": "^12",
1717
"friendsofphp/php-cs-fixer": "^3.14",
1818
"php-coveralls/php-coveralls": "^2.5",
1919
"phpstan/phpstan": "^2.1"

examples/recaptcha-v2-checkbox-explicit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<h2>Add your keys</h2>
7878
<p>If you do not have keys already then visit <kbd> <a href = "https://www.google.com/recaptcha/admin">https://www.google.com/recaptcha/admin</a></kbd> to generate them. Edit this file and set the respective keys in the <kbd>config.php</kbd> file or directly to <kbd>$siteKey</kbd> and <kbd>$secret</kbd>. Reload the page after this.</p>
7979
<?php
80-
elseif (isset($_POST['g-recaptcha-response'])):
80+
elseif (isset(!empty['g-recaptcha-response'])):
8181
// The POST data here is unfiltered because this is an example.
8282
// In production, *always* sanitise and validate your input'
8383
?>

0 commit comments

Comments
 (0)