-
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.
Merge pull request #34 from sunrise-php/release/v3.7.0
v3.7.0
- Loading branch information
Showing
28 changed files
with
386 additions
and
162 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
/** | ||
* It's free open-source software released under the MIT License. | ||
* | ||
* @author Anatoly Nekhay <[email protected]> | ||
* @copyright Copyright (c) 2021, Anatoly Nekhay | ||
* @license https://github.com/sunrise-php/hydrator/blob/master/LICENSE | ||
* @link https://github.com/sunrise-php/hydrator | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Sunrise\Hydrator\Dictionary; | ||
|
||
/** | ||
* Hydration error messages | ||
* | ||
* @since 3.7.0 | ||
*/ | ||
final class ErrorMessage | ||
{ | ||
public const MUST_BE_PROVIDED = 'This value must be provided.'; | ||
public const MUST_NOT_BE_EMPTY = 'This value must not be empty.'; | ||
public const MUST_BE_BOOLEAN = 'This value must be of type boolean.'; | ||
public const MUST_BE_INTEGER = 'This value must be of type integer.'; | ||
public const MUST_BE_NUMBER = 'This value must be of type number.'; | ||
public const MUST_BE_STRING = 'This value must be of type string.'; | ||
public const MUST_BE_ARRAY = 'This value must be of type array.'; | ||
public const ARRAY_OVERFLOW = 'This value is limited to {maximum_elements} elements.'; | ||
public const INVALID_CHOICE = 'This value is not a valid choice; expected values: {expected_values}.'; | ||
public const INVALID_TIMESTAMP = 'This value is not a valid timestamp; expected format: {expected_format}.'; | ||
public const INVALID_TIMEZONE = 'This value is not a valid timezone.'; | ||
public const INVALID_UID = 'This value is not a valid UID.'; | ||
} |
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
Oops, something went wrong.