Skip to content

Commit 4bfab1c

Browse files
committed
fix: Restore and mark as deprecated forNoHiddenValue()
1 parent 4a49b97 commit 4bfab1c

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

system/Honeypot/Exceptions/HoneypotException.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ public static function forNoNameField()
3737
return new static(lang('Honeypot.noNameField'));
3838
}
3939

40+
/**
41+
* Thrown when the hidden value of config is false.
42+
*
43+
* @return static
44+
*
45+
* @deprecated 4.6.4 Never used.
46+
*/
47+
public static function forNoHiddenValue()
48+
{
49+
return new static(lang('Honeypot.noHiddenValue'));
50+
}
51+
4052
/**
4153
* Thrown when there are no data in the request of honeypot field.
4254
*

user_guide_src/source/changelogs/v4.6.4.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ Changes
2626

2727
- **Config:** Added the ``synchronous`` key for ``Config\Database::$tests``. For SQLite3 driver only.
2828

29-
Exceptions
30-
==========
31-
32-
- The unused ``CodeIgniter\Honeypot\Exceptions\HoneypotException::forNoHiddenValue()`` method has been removed.
33-
3429
************
3530
Deprecations
3631
************
3732

33+
- **Exception:**
34+
- The ``CodeIgniter\Honeypot\Exceptions\HoneypotException::forNoHiddenValue()`` method has been deprecated. Never used.
35+
3836
**********
3937
Bugs Fixed
4038
**********

0 commit comments

Comments
 (0)