Skip to content

Commit

Permalink
Fix PHP 8.4 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
acbramley committed Jan 23, 2025
1 parent aee2347 commit 365e6e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private function __construct()
*/
public static function checksum(
string|ReadonlyFile $filePath,
Key $key = null,
?Key $key = null,
bool|string $encoding = Halite::ENCODE_BASE64URLSAFE
): string {
if ($filePath instanceof ReadOnlyFile) {
Expand Down Expand Up @@ -593,7 +593,7 @@ public static function verify(
*/
protected static function checksumData(
StreamInterface $fileStream,
Key $key = null,
?Key $key = null,
string|bool $encoding = Halite::ENCODE_BASE64URLSAFE
): string {
$config = self::getConfig(
Expand Down
2 changes: 1 addition & 1 deletion src/Stream/ReadOnlyFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ReadOnlyFile implements StreamInterface
* @throws TypeError
* @psalm-suppress RedundantConditionGivenDocblockType
*/
public function __construct($file, Key $key = null)
public function __construct($file, ?Key $key = null)
{
if (is_string($file)) {
if (!is_readable($file)) {
Expand Down

0 comments on commit 365e6e7

Please # to comment.