Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [[v0.3.0](https://github.com/The-FireHub-Project/Runtime/compare/v0.2.6...v0.3.0)] – 2026-09-16

### Added
* Add PHP Hash utility wrappers and supporting exceptions by @dieselxxx

## [[v0.2.6](https://github.com/The-FireHub-Project/Runtime/compare/v0.2.5...v0.2.6)] – 2026-09-11

### Changed
Expand Down
113 changes: 71 additions & 42 deletions README.md

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions src/Exception/EmptyHashKeyException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php declare(strict_types = 1);

/**
* This file is part of the FireHub Project ecosystem
*
* @author Danijel Galić <danijel.galic@outlook.com>
* @copyright 2026-present The FireHub Project - All rights reserved
* @license https://opensource.org/license/Apache-2-0 Apache License, Version 2.0
*
* @php-version >=8.3
* @package Runtime
*/

namespace FireHub\Runtime\Exception;

use FireHub\Core\Exception\Runtime\InvalidArgumentException;

/**
* ### Represents an empty hash key provided to an operation that requires a non-empty hash key
* @since 1.0.0
*/
final class EmptyHashKeyException extends InvalidArgumentException {

/**
* @inheritDoc
*
* @since 1.0.0
*/
protected const string DEFAULT_MESSAGE = 'The provided hash key is empty.';

}
31 changes: 31 additions & 0 deletions src/Exception/HashByteLengthException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php declare(strict_types = 1);

/**
* This file is part of the FireHub Project ecosystem
*
* @author Danijel Galić <danijel.galic@outlook.com>
* @copyright 2026-present The FireHub Project - All rights reserved
* @license https://opensource.org/license/Apache-2-0 Apache License, Version 2.0
*
* @php-version >=8.3
* @package Runtime
*/

namespace FireHub\Runtime\Exception;

use FireHub\Core\Exception\Runtime\InvalidArgumentException;

/**
* ### Represents an invalid hash byte length provided to an operation that requires a valid hash byte length
* @since 1.0.0
*/
final class HashByteLengthException extends InvalidArgumentException {

/**
* @inheritDoc
*
* @since 1.0.0
*/
protected const string DEFAULT_MESSAGE = 'The provided hash byte length is invalid.';

}
31 changes: 31 additions & 0 deletions src/Exception/HashIterationException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php declare(strict_types = 1);

/**
* This file is part of the FireHub Project ecosystem
*
* @author Danijel Galić <danijel.galic@outlook.com>
* @copyright 2026-present The FireHub Project - All rights reserved
* @license https://opensource.org/license/Apache-2-0 Apache License, Version 2.0
*
* @php-version >=8.3
* @package Runtime
*/

namespace FireHub\Runtime\Exception;

use FireHub\Core\Exception\Runtime\InvalidArgumentException;

/**
* ### Represents an invalid hash iteration provided to an operation that requires a valid hash iteration
* @since 1.0.0
*/
final class HashIterationException extends InvalidArgumentException {

/**
* @inheritDoc
*
* @since 1.0.0
*/
protected const string DEFAULT_MESSAGE = 'The provided hash iteration is invalid.';

}
Loading
Loading