Skip to content

Commit

Permalink
Merge pull request #407 from Art4/fix-php84-deprecation-warnings
Browse files Browse the repository at this point in the history
PHP 8.4 Fix implicitly nullable parameter declarations deprecations
  • Loading branch information
Art4 authored Jun 27, 2024
2 parents 31768d5 + cc14f15 commit be7c256
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Redmine/Client/NativeCurlClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class NativeCurlClient implements Client, HttpClient
public function __construct(
string $url,
string $apikeyOrUsername,
string $password = null
?string $password = null
) {
$this->url = $url;
$this->apikeyOrUsername = $apikeyOrUsername;
Expand Down
2 changes: 1 addition & 1 deletion src/Redmine/Client/Psr18Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
StreamFactoryInterface $streamFactory,
string $url,
string $apikeyOrUsername,
string $password = null
?string $password = null
) {
if (! $requestFactory instanceof RequestFactoryInterface && $requestFactory instanceof ServerRequestFactoryInterface) {
@trigger_error(
Expand Down
2 changes: 1 addition & 1 deletion src/Redmine/Exception/UnexpectedResponseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ final class UnexpectedResponseException extends RuntimeException implements Redm
*/
private $response = null;

public static function create(Response $response, Throwable $prev = null): self
public static function create(Response $response, ?Throwable $prev = null): self
{
$e = new self(
'The Redmine server replied with an unexpected response.',
Expand Down

0 comments on commit be7c256

Please sign in to comment.