-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(captcha): Use a patch to remove deprecated warning in PHP 8.4 (#27)
* fix(gregwar): Use patch to fix gregwar deprecated issue in PHP 8.4 * fix(gregwar): Allow patch for coding tools
- Loading branch information
1 parent
01c20ea
commit 95b37a5
Showing
5 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/Gregwar/Captcha/CaptchaBuilder.php b/src/Gregwar/Captcha/CaptchaBuilder.php | ||
index ab8d93f..67e77cf 100644 | ||
--- a/src/Gregwar/Captcha/CaptchaBuilder.php | ||
+++ b/src/Gregwar/Captcha/CaptchaBuilder.php | ||
@@ -133,7 +133,7 @@ class CaptchaBuilder implements CaptchaBuilderInterface | ||
*/ | ||
public $tempDir = 'temp/'; | ||
|
||
- public function __construct($phrase = null, PhraseBuilderInterface $builder = null) | ||
+ public function __construct($phrase = null, ?PhraseBuilderInterface $builder = null) | ||
{ | ||
if ($builder === null) { | ||
$this->builder = new PhraseBuilder; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,10 @@ | |
"type": "path", | ||
"url": "../../" | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"cweagans/composer-patches": true | ||
} | ||
} | ||
} | ||
} |