Skip to content

Commit 7515670

Browse files
committed
Fix: Changed the FormatException and LogException return type to static.
1 parent 0a64294 commit 7515670

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

system/Format/Exceptions/FormatException.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class FormatException extends RuntimeException implements ExceptionInterface
2525
/**
2626
* Thrown when the instantiated class does not exist.
2727
*
28-
* @return FormatException
28+
* @return static
2929
*/
3030
public static function forInvalidFormatter(string $class)
3131
{
@@ -38,7 +38,7 @@ public static function forInvalidFormatter(string $class)
3838
*
3939
* @param string $error
4040
*
41-
* @return FormatException
41+
* @return static
4242
*/
4343
public static function forInvalidJSON(?string $error = null)
4444
{
@@ -49,7 +49,7 @@ public static function forInvalidJSON(?string $error = null)
4949
* Thrown when the supplied MIME type has no
5050
* defined Formatter class.
5151
*
52-
* @return FormatException
52+
* @return static
5353
*/
5454
public static function forInvalidMime(string $mime)
5555
{
@@ -60,7 +60,7 @@ public static function forInvalidMime(string $mime)
6060
* Thrown on XMLFormatter when the `simplexml` extension
6161
* is not installed.
6262
*
63-
* @return FormatException
63+
* @return static
6464
*
6565
* @codeCoverageIgnore
6666
*/

system/Log/Exceptions/LogException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
class LogException extends FrameworkException
1717
{
1818
/**
19-
* @return LogException
19+
* @return static
2020
*/
2121
public static function forInvalidLogLevel(string $level)
2222
{
2323
return new static(lang('Log.invalidLogLevel', [$level]));
2424
}
2525

2626
/**
27-
* @return LogException
27+
* @return static
2828
*/
2929
public static function forInvalidMessageType(string $messageType)
3030
{

0 commit comments

Comments
 (0)