Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding nullable to error info in phpdoc #648

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Adding nullable to error info in phpdoc
  • Loading branch information
qdequippe committed Jul 3, 2024
commit 8c2be639d73e4d74d96e6b0ff67b3469f766ab4e
6 changes: 3 additions & 3 deletions MangoPay/Libraries/ResponseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ResponseException extends Exception

/**
* Error details
* @var Error
* @var Error|null
*/
private $_errorInfo;

Expand All @@ -47,7 +47,7 @@ class ResponseException extends Exception
/**
* Construct
* @param int $code Response code
* @param Error $errorInfo Details with the error
* @param Error|null $errorInfo Details with the error
*/
public function __construct($requestUrl, $code, $errorInfo = null)
{
Expand All @@ -70,7 +70,7 @@ public function __construct($requestUrl, $code, $errorInfo = null)

/**
* Get Error object returned by REST API
* @return Error
* @return Error|null
*/
public function GetErrorDetails()
{
Expand Down