Skip to content

Commit 32c1b2a

Browse files
committed
fix methods return type in exceptions
1 parent 84dfdfb commit 32c1b2a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/exceptions/FileDoesNotExistsException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function __construct(string $message, int $statusCode = 500, $previous =
1111
parent::__construct($message, $statusCode, $previous);
1212
}
1313

14-
public function __toString()
14+
public function __toString(): string
1515
{
1616
return __CLASS__ . ' : ' . $this->message;
1717
}

src/exceptions/LanguageFileIsNotArrayException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function __construct(string $message, int $statusCode = 500, $previous =
1111
parent::__construct($message, $statusCode, $previous);
1212
}
1313

14-
public function __toString()
14+
public function __toString(): string
1515
{
1616
return __CLASS__ . ' : ' . $this->message;
1717
}

src/exceptions/UrlIsNotValidException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function __construct(string $message, int $statusCode = 500, $previous =
1111
parent::__construct($message, $statusCode, $previous);
1212
}
1313

14-
public function __toString()
14+
public function __toString(): string
1515
{
1616
return __CLASS__ . ' : ' . $this->message;
1717
}

0 commit comments

Comments
 (0)