Skip to content

Commit

Permalink
Compatibility with PHP 8.4 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
srjlewis committed Oct 10, 2024
1 parent f21b843 commit 47da3ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/JsonRPC/Exception/ResponseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ResponseException extends RpcCallFailedException
* @param Exception $previous [optional] The previous exception used for the exception chaining. Since 5.3.0
* @param mixed $data [optional] A value that contains additional information about the error.
*/
public function __construct($message = '', $code = 0, Exception $previous = null, $data = null)
public function __construct($message = '', $code = 0, ?Exception $previous = null, $data = null)
{
parent::__construct($message, $code, $previous);
$this->setData($data);
Expand Down
2 changes: 1 addition & 1 deletion src/JsonRPC/ProcedureHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public function getNamedArguments(array $requestParams, array $methodParams)
* @param SmdBuilder $SmdBuilder
* @return array|string
*/
public function getSMD($target, $returnJSON = true, SmdBuilder $SmdBuilder = null) {
public function getSMD($target, $returnJSON = true, ?SmdBuilder $SmdBuilder = null) {
if(!$SmdBuilder) {
$SmdBuilder = new SmdBuilder();
}
Expand Down

0 comments on commit 47da3ff

Please sign in to comment.