Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/data_request.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Exceptions/HintedRuntime.php')
-rw-r--r--lib/Exceptions/HintedRuntime.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Exceptions/HintedRuntime.php b/lib/Exceptions/HintedRuntime.php
index 16338ee..bb57671 100644
--- a/lib/Exceptions/HintedRuntime.php
+++ b/lib/Exceptions/HintedRuntime.php
@@ -26,16 +26,14 @@ namespace OCA\DataRequest\Exceptions;
use Throwable;
class HintedRuntime extends \RuntimeException {
+ protected string $hint;
- /** @var string */
- protected $hint;
-
- public function __construct($message = '', $hint = '', $code = 0, Throwable $previous = null) {
+ public function __construct(string $message = '', string $hint = '', int $code = 0, Throwable $previous = null) {
parent::__construct($message, $code, $previous);
$this->hint = $hint;
}
- public function getHint() {
+ public function getHint(): string {
if (empty($this->hint)) {
return $this->message;
}