Skip to content

Commit f472a37

Browse files
committed
Fix Deprecation error caused by Pdsinterop\Solid\Auth\Exception\Exception::jsonSerialize() not having a return type.
1 parent ba89585 commit f472a37

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Exceptions.inc.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
abstract class Exception extends \Exception implements \JsonSerializable
66
{
7-
final public function jsonSerialize()
7+
final public function jsonSerialize(): array
88
{
99
return [
1010
'code' => $this->getCode(),
@@ -18,5 +18,4 @@ final public function jsonSerialize()
1818
}
1919
}
2020

21-
2221
class LogicException extends Exception {}

0 commit comments

Comments
 (0)