Skip to content

Commit

Permalink
Update deprecated implicitly nullable types
Browse files Browse the repository at this point in the history
These implicit nullable types cause warnings.

See: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • Loading branch information
tom-on-the-internet committed Jan 10, 2025
1 parent 7f1efa7 commit 910fa14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class Database
* @param bool $webpki Use Webpki (default: false)
*/
public function __construct(
string $path = null,
string $url = null,
?string $path = null,
?string $url = null,
#[\SensitiveParameter]
string $authToken = null,
?string $authToken = null,
#[\SensitiveParameter]
?string $encryptionKey = null,
int $syncInterval = 0,
Expand Down
2 changes: 1 addition & 1 deletion src/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class PDO extends \PDO
private Database $db;

public function __construct(
string $dsn = null,
?string $dsn = null,
?string $username = null,
#[\SensitiveParameter] ?string $password = null,
#[\SensitiveParameter] ?array $options = [],
Expand Down

0 comments on commit 910fa14

Please sign in to comment.