Skip to content

Commit 28b737c

Browse files
authored
Merge pull request #16823 from raicabogdan/5.0.x-T16822
Fix method checkCipherHashIsAvailable()
2 parents b1dc645 + e8576cb commit 28b737c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG-5.0.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
- Fixed `Phalcon\Http\Request` method `getPostData()` when `Content-Type` header is not set [#16804](https://github.com/phalcon/cphalcon/issues/16804)
1919
- Fixed `Phalcon\Events\ManagerInterface` adding priority property [#16817](https://github.com/phalcon/cphalcon/issues/16817)
2020
- Fixed `Phalcon\Storage\Adapters\Libmemcached::getAdapter()` to correctly merge adapter options [#16818](https://github.com/phalcon/cphalcon/issues/16818)
21-
21+
- Fixed `Phalcon\Encryption\Crypt` method `checkCipherHashIsAvailable(string $cipher, string $type)` to correctly check the `cipher` or `hash` type [#16822](https://github.com/phalcon/cphalcon/issues/16822)
22+
2223
### Removed
2324

2425
## [5.9.3](https://github.com/phalcon/cphalcon/releases/tag/v5.9.3) (2025-04-19)

phalcon/Encryption/Crypt.zep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ class Crypt implements CryptInterface
590590
{
591591
var available, lower, method;
592592

593-
if "hash" === cipher {
593+
if "hash" === type {
594594
let method = "getAvailableHashAlgorithms";
595595
} else {
596596
let method = "getAvailableCiphers";

tests/unit/Encryption/Crypt/GetSetHashAlgorithmCest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class GetSetHashAlgorithmCest
3535
public function encryptionCryptGetSetHashAlgo(UnitTester $I)
3636
{
3737
$I->wantToTest('Encryption\Crypt - getHashAlgorithm() / setHashAlgorithm()');
38-
$I->skipTest('TODO: Check this test with 8.2');
3938

4039
$cipher = 'sha384';
4140
$crypt = new Crypt();

0 commit comments

Comments
 (0)