Skip to content

Commit

Permalink
Fix PHP 8.3 deprecation warning in ApiException
Browse files Browse the repository at this point in the history
Optional parameter $message declared before required parameter $response is implicitly treated as a required parameter in /home/runner/work/gw2api/gw2api/src/Exception/ApiException.php on line 12
  • Loading branch information
darthmaim committed Feb 7, 2024
1 parent 8713c40 commit 0a528d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exception/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ApiException extends Exception {
/** @var ResponseInterface $response */
protected $response;

public function __construct( $message = "", ResponseInterface $response ) {
public function __construct( $message, ResponseInterface $response ) {
$this->response = $response;

parent::__construct( $message, $response->getStatusCode() );
Expand Down

0 comments on commit 0a528d0

Please sign in to comment.