diff --git a/app/Lib/Helpers/ToolboxHelper.php b/app/Lib/Helpers/ToolboxHelper.php index 25b545b..9e02fcf 100644 --- a/app/Lib/Helpers/ToolboxHelper.php +++ b/app/Lib/Helpers/ToolboxHelper.php @@ -113,14 +113,18 @@ class ToolboxHelper /** * Mutltibyte string replace - * @param mixed $search - * @param mixed $replace - * @param mixed $subject - * @param integer $count - * @return mixed + * @param array|string $search + * @param array|string $replace + * @param array|string $subject + * @param integer $count + * @return array|string */ - public static function mbReplace($search, $replace, $subject, int &$count = 0) - { + public static function mbReplace( + array|string $search, + array|string $replace, + array|string $subject, + int &$count = 0 + ): array|string { if (!is_array($search) && is_array($replace)) { return false; } @@ -153,18 +157,18 @@ class ToolboxHelper /** * Asserts that the field is unique * - * @param string $table - * @param string $field - * @param mixed $value - * @param integer|null $id - * @param callable|null $query + * @param string $table + * @param string $field + * @param string|integer|float|boolean|null|array $value + * @param integer|null $id + * @param callable|null $query * @return void * @throws \Illuminate\Validation\ValidationException If the field is not unique. */ public static function assertFieldIsUnique( string $table, string $field, - $value, + string|int|float|bool|null|array $value, ?int $id = null, ?callable $query = null ) {